Home  >  Article  >  Backend Development  >  Analyze the default installation paths of Apache, php, and mysql in centos_PHP tutorial

Analyze the default installation paths of Apache, php, and mysql in centos_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 15:03:231003browse

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

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/327850.htmlTechArticleapache: 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/...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn