I have been compiling and installing myself, and the installation directory is clearly allocated. Today I saw a friend who did not know me. I checked that it was installed by default,
I am not familiar with the default installed directory structure. I found it on the Internet. Some friends listed it clearly and extracted it myself. It is convenient to keep it for use ~
Apache:
If the RPM package is used for 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
IfSource codeInstalled in the/usr/local/apache2 directory by default.
PHP:
If the RPM package is used for installation, the installation path should be in the/etc/directory.
PHP configuration file:/etc/PHP. ini
If the sourceCodeInstallation. 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 the RPM package is used for installation, 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 source code is used for installation, it is usually installed in the/usr/local/MySQL directory by default.