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.
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
Open the directory where the Apache configuration file is located
Found in Apache, LoadModule About the PHP module
##Use PHPIniDir to specify the path to the PHP configuration fileSave the Apache configuration file and restart the service Check the PHP environment again and the PHP configuration file has been successfully loaded according to the specified path NotesThis 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!