How to modify the php.ini file path: 1. Open the system environment variable settings; 2. Add the php.ini file path to the PATH environment variable; 3. Create a new environment variable named PHPRC and add The directory where the php.ini file is located; 4. Restart the computer to make the environment variables take effect.
How to modify the location of the php.ini file:
(Recommended tutorial: php tutorial)
Need to modify windows environment variables.
1. Right-click on the computer and select Properties, Advanced System Settings, and Environment Variables;
2. Add the value d:\www\php54 (with; sign) to the system’s PATH environment variable separated from the previous value);
3. Create a new environment variable, the "variable name" is "PHPRC", and the "variable value" is d:\www\php54 (the directory where the php.ini file is located) ;
4. Restart the computer to make the environment variables take effect.
The above is the detailed content of How to modify the php.ini file path. For more information, please follow other related articles on the PHP Chinese website!