Resolve Apache php mysql default installation paths in centos
- 2020-06-19 10:01:12
- OfStack
apache:
If the RPM package is installed, 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 using the source code installation, 1 general default installation in the /usr/local/apache2 directory
php:
If the RPM package is installed, the installation path should be in the /etc/ directory
php profile :/etc/ php.ini
If using the source code installation, 1 general default installation in /usr/local/lib directory
php configuration file: / usr/local/lib/php ini
Or/usr local/php/etc/php ini
mysql:
If the RPM package is installed, the installation path should be in the /usr/share/mysql directory
mysqldump file location: /usr/bin/mysqldump
mysqli profile:
/ etc/my cnf or/usr/share/mysql/my cnf
The mysql data directory is under the /var/lib/mysql directory
If using the source code installation, 1 general default installation in the /usr/local/mysql directory