Home > Operation and Maintenance > Linux Operation and Maintenance > Where is the configuration file of php in linux?

Where is the configuration file of php in linux?

Release: 2019-12-31 17:00:11
Original
4459 people have browsed it

Where is the configuration file of php in linux?

1. You can print phpinfo();

Configuration location as shown in the picture:

Where is the configuration file of php in linux?Where is the configuration file of php in linux?

2. php -info will output the content equivalent to executing the phpinfo() function on the page. Filter out the text containing the configuration file php.ini to see the relevant path information.

php -info | grep php.ini
Copy after login

As shown

Where is the configuration file of php in linux?

3. Usually php default configuration location

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

Free online video tutorial sharing: linux video tutorial

The above is the detailed content of Where is the configuration file of php 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