Home >Backend Development >PHP Tutorial >How to change the loading path of php.ini under windows

How to change the loading path of php.ini under windows

WBOY
WBOYOriginal
2016-07-25 08:58:532127browse
This article introduces how to change the loading path of the php.ini file in the Windows environment. Friends in need can refer to it.

Under Windows, to change the php.ini loading path, just add a piece of code to the WEB server configuration file.

Take the apache server as an example, find the apache configuration file http.conf, search for "ServerRoot "E:/phpserver/apahce"", change the line, and add: PhpIniDir “E:/phpserver/php”

Restart apache and check the phpinfo() function. You can see the loading path on line 7.

It’s so simple, haha.



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