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

WBOY
Release: 2016-07-25 08:58:53
Original
1715 people have browsed it
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.



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!