Home > Backend Development > PHP Tutorial > How to check the php environment installation path in linux

How to check the php environment installation path in linux

小云云
Release: 2023-03-22 11:10:02
Original
35852 people have browsed it

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

How to install the PHP development environment?php environment installation configuration_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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template