Ubuntu LAMP cheat sheet

by Stephen on November 9, 2009

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

 

Leave a Comment

Previous post:

Next post: