Home>Article>Backend Development> How to set the php configuration file path

How to set the php configuration file path

藏色散人
藏色散人 Original
2020-10-30 10:02:57 3446browse

How to set the php file path: first check the current configuration file path; then open the directory where the Apache configuration file is located; then use PHPIniDir to specify the path to the PHP configuration file; finally save the Apache configuration file and restart the service That’s it.

How to set the php configuration file path

Recommended: "PHP Video Tutorial"

Specify the path to the PHP configuration file

Before specifying the PHP configuration file path, check the following current configuration file path

How to set the php configuration file path

Open the directory where the Apache configuration file is located

How to set the php configuration file path

Found in Apache, LoadModule About the PHP module

How to set the php configuration file path

##Use PHPIniDir to specify the path to the PHP configuration file

How to set the php configuration file path

Save the Apache configuration file and restart the service

How to set the php configuration file path

Check the PHP environment again and the PHP configuration file has been successfully loaded according to the specified path

How to set the php configuration file path

Notes

This method is specified using PHPiniDir in the Apache configuration file

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