Home > Article > Backend Development > Analyze the default installation paths of Apache, php, and mysql in centos_PHP tutorial
apache:
If you use RPM package to install, the installation path should be in the /etc/httpd directory
apache configuration file: /etc/httpd/conf/ httpd.conf
Apache module path: /usr/sbin/apachectl
web directory:/var/www/html
If you use source code to install, it is generally installed in the /usr/local/apache2 directory by default
php:
If you use RPM package to install, the installation path should be in the /etc/ directory
php configuration file: /etc/php.ini
If you use source code installation, it is generally installed in the /usr/local/lib directory by default
php configuration file: /usr/local/lib/php.ini
or /usr/local/php/etc/ php.ini
mysql:
If you use RPM package to install, the installation path should be in the /usr/share/mysql directory
mysqldump file location: /usr/bin/ mysqldump
Mysqli configuration file:
/etc/my.cnf or /usr/share/mysql/my.cnf
The mysql data directory is in the /var/lib/mysql directory
If the source code is used Installation, generally installed in the /usr/local/mysql directory by default