Home  >  Article  >  Backend Development  >  How to modify the php.ini file path

How to modify the php.ini file path

王林
王林Original
2020-07-10 13:20:184297browse

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 php.ini file path

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!

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