How to modify the php configuration file path under linux

王林
Release: 2020-10-19 11:16:27
Original
3448 people have browsed it

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
Copy after login

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
Copy after login

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!

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
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!