Where is the installation location of php under linux?

王林
Release: 2023-03-02 19:08:01
Original
3643 people have browsed it

The installation location of php under Linux is in the [/etc/] directory. At this time, php is installed using the RPM package method. If PHP is installed using source code, it is generally installed in the [/usr/local/lib] directory by default.

Where is the installation location of php under linux?

The installation path of php is divided into the following two situations:

(recommended tutorial: php tutorial)

1. If php is installed using RPM package, then its installation path should be in the /etc/ directory.

At this time, the configuration file path of php is /etc/php.ini.

2. If php is installed using source code, it is generally installed in the /usr/local/lib directory by default.

At this time, the configuration file path of php is: /usr/local/lib/php.ini or /usr/local/php/etc/php.ini.

The above is the detailed content of Where is the installation location 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!