Home  >  Article  >  Operation and Maintenance  >  How to modify the php configuration file path under linux

How to modify the php configuration file path under linux

王林
王林Original
2020-10-19 11:16:273470browse

How to modify the php configuration file path under Linux: First execute the [php --ini] command to print phpinfo(); then check the php configuration file path; finally execute [vim /usr/local/php7/lib/ php.ini] command to modify the configuration file path.

How to modify the php configuration file path under linux

Modify PHP configuration file

(Recommended tutorial: linux video tutorial)

vim /usr/local/php7/lib/php.ini

If If you don’t know the path of the php configuration file, you can use the following method to check it.

Execute the command

php --ini

How to modify the php configuration file path under linux

Print out phpinfo(), and then you can see it, as follows:

How to modify the php configuration file path under linux

Related recommendations: linux tutorial

The above is the detailed content of How to modify the php configuration file path under 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