Apache2, PHP and MySQL configuration files

By Cris, October 7, 2016
Last updated: October 8, 2016
Edit

Each component in a LAMP stack has its own configuration file. Apache 2 also has configuration files for virtual hosts (one for each site hosted), modules and additional configurations. In Ubuntu, the default installation locations are as follows:

Apache 2 configuration file locations

/etc/apache2/apache2.conf
/etc/apache2/apache2/sites-available/
/etc/apache2/apache2/mods-available

 

PHP 5 configuration file location

/etc/php5/apache2/php.ini

MySQL 5 configuration file location

/etc/mysql/my.cnf

What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.