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

Where is the configuration file of php in linux?

尚
Original
2019-12-31 17:00:114385browse

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

As shown

Where is the configuration file of php in linux?

3. Usually php default configuration location

 /usr/local/php/etc/php.ini

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!

Statement:
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