Home >Backend Development >PHP Tutorial >Windows下PHP5.20+Apache2.2.3配置有关问题

Windows下PHP5.20+Apache2.2.3配置有关问题

WBOY
WBOYOriginal
2016-06-13 10:00:03847browse

Windows下PHP5.20+Apache2.2.3配置问题
PHP安装目录为D:\php5.2.0
httpd.conf中的相关PHP的设置信息为:
LoadModule   php5_module   "d:/php5.2.0/php5apache2.dll "
PHPIniDir   "d:/php5.2.0/ "

可怎么老是不成功,把两行注释之后,又可以正常启动....
高手帮帮帮忙,我刚学PHP

------解决方案--------------------
LoadModule php5_module "d:\php5.2.0\php5apache2.dll "
PHPIniDir "d:\php5.2.0\php.ini "
先确认php.ini存在该目录之下,更改httpd.conf再试一下.
------解决方案--------------------
LoadModule php5_module "%PATH%/php/php5apache2_2.dll "

AddType application/x-httpd-php .php
PHPIniDir "%PATH%/php "


%PATH% 换成你的实际路径

看好apache的版本 是 2.0 还是 2.2的

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