Home  >  Article  >  Backend Development  >  程序员 - 为什么我把Apache和PHP都安装到了D磁盘,在phpinfo()里面却发现配置文件在c:windows 里面

程序员 - 为什么我把Apache和PHP都安装到了D磁盘,在phpinfo()里面却发现配置文件在c:windows 里面

WBOY
WBOYOriginal
2016-06-06 20:41:131003browse

为什么我把Apache和PHP都安装到了D磁盘,在phpinfo()里面却发现配置文件在c:\windows 里面

回复内容:

为什么我把Apache和PHP都安装到了D磁盘,在phpinfo()里面却发现配置文件在c:\windows 里面

httpd.conf(或者apache.conf?)里面添加一个PHPIniDir,给出你的php.ini所在目录路径即可。

http://php.net/manual/zh/faq.installation.php#faq.installation.phpini
你可以看看配置中的php.ini是哪里的

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