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

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

WBOY
Release: 2016-06-06 20:41:13
Original
1079 people have browsed it

为什么我把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是哪里的

Related labels:
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