Home > Backend Development > PHP Problem > Where is the default installation path of php under linux?

Where is the default installation path of php under linux?

王林
Release: 2023-03-03 17:28:01
Original
5555 people have browsed it

If you use RPM package to install php under Linux, its default installation path is under "/etc/", and the php configuration file is under "/etc/php.ini". If you use source code to install php, its default installation path is under "/usr/local/lib".

Where is the default installation path of php under linux?

If you use RPM package to install php, the default installation path should be in the /etc/ directory.

(Recommended tutorial: php graphic tutorial)

The path to the PHP configuration file at this time is:

/etc/php.ini
Copy after login

If you use source code to install php , then it is generally installed in the /usr/local/lib directory by default.

(Video tutorial recommendation: php video tutorial)

The path to the PHP configuration file at this time is:

/usr/local/lib/php.ini
Copy after login

or

/usr/local/php/etc/php.ini
Copy after login

The above is the detailed content of Where is the default installation path of php under 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