Home > Article > Backend Development > How to check the php environment installation path in linux
This article mainly shares with you how to check the installation path of the PHP environment in Linux. I hope it can help you.
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 /usr/ by default
#php in the local/apache2 directory:
If you use the 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 the 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
Mysql data directory is in the /var/lib/mysql directory
If you use source code installation, it is usually installed in the /usr/local/mysql directory by default
Related recommendations:
PHP environment installation kit: Quickly install LAMP environment_PHP tutorial
PHP environment installation-phpstudy for linux version
The above is the detailed content of How to check the php environment installation path in linux. For more information, please follow other related articles on the PHP Chinese website!