Apache:
If using RPM package installation, 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 the source code is installed, it is usually installed in the /usr/local/apache2 directory by default.
Php:
If using RPM package installation, the installation path should be in the /etc/ directory
PHP configuration file:/etc/php.ini
If the source code is installed, it is usually 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 using RPM package installation, the installation path should be in the /usr/share/mysql directory
Mysqldump file location:/usr/bin/mysqldump
MySQL configuration file:
/etc/my.cnf or /usr/share/mysql/my.cnf
MySQL Data directory in /var/lib/mysql Directory
If the source code is installed, it is usually installed in the /usr/local/mysql directory by default.
Apache, PHP, mysql default installation path under Linux