windows8出现httpd-info.conf:32: <Location> was not closed.这种问题解决办法
E:\phpnow>init.cmd
____________________________________________________________| || ###### PHPnow.org - 绿色免费 PHP 环境套件 ###### ||____________________________________________________________|____________________________________________________________| || 开始文件处理 ... |已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。已复制 1 个文件。| 文件处理完成; ||____________________________________________________________|____________________________________________________________| || 正在安装 Apache ... |Installing the Apache_pn serviceThe Apache_pn service is successfully installed.Testing httpd.conf....Errors reported here must be corrected before the service can be started.httpd.exe: Syntax error on line 452 of E:/phpnow/Apache/conf/httpd.conf: Syntaxerror on line 32 of E:/phpnow/Apache/conf/extra/httpd-info.conf: E:/phpnow/Apache/conf/extra/httpd-info.conf:32: <Location> was not closed.| 安装 Apache 服务失败! || 上面出现的信息是问题的原因. ||____________________________________________________________|Removing the Apache_pn serviceThe Apache_pn service has been removed successfully.- 按任意键继续...
解决办法:
e/phpnow/Apache/conf/extra/httpd-info.conf
找到httpd-info.conf文件暂时删除31行至35行 安装完成后请恢复
<Location /server-info>
SetHandler server-info
Order deny,allow
Deny from all
Allow from 127.0.0.1
然后cmd 重新运行安装命令
E:\phpnow>init.cmd
即安装完成,您看到这篇文章希望能解决问题,解决问题请回复一下,留个言吧!
已有 794 位网友参与,快来吐槽:
发表评论