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.
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
Print out phpinfo(), and then you can see it, as follows:
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!