Ubuntu LAMP cheat sheet

Posted on the November 9th, 2009 under Cheat Sheets,Ubuntu by Stephen

LAMP: the server software bundle consists of Linux – Apache – MySQL – PHP; Linux: operating system; Apache: http server; MySQL: database software; PHP: scripting language

 

Location, configuration file:

 
Apache configuration file:

/etc/apache2/apache2.conf

 
PHP php.ini file:

/etc/php5/apache2/php.ini

 
MySQL configuration file:

/etc/mysql/my.cnf

 
Default (initial) web location:

/var/www

 
Web browser address:

http://localhost/

 

Restarting:

 
How to restart apache:

sudo /etc/init.d/apache2 restart

 
How to restart MySQL:

sudo /etc/init.d/mysql restart

 


Share this page:
  • Facebook
  • Twitter
  • StumbleUpon
  • Slashdot
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Live
  • MySpace
  • Technorati
  • LinkedIn
  • Reddit
Related Posts:
  1. Iptables cheat sheet
  2. RPM cheat sheet
  3. Screen cheat sheet
  4. Unix FIND command cheat sheet
  5. How to add custom Apache config under cPanel easyapache3?

Leave a Comment