错误:apache
从页面http://www.apachelounge.com/download/浏览器
下载最新版本:httpd-2.4.9-win32-VC11.zipdom
可是不清楚安装服务时为何提示:不是有效的32位应用程序。this
一、从页面:http://www.apachelounge.com/download/win32/spa
下载:httpd-2.4.9-win32-ssl_0.9.8.zipserver
我已经把它放到了这里:http://pan.baidu.com/s/1qWEyhqsip
解压缩到D:\Apache24ssl
二、修改文件:D:\Apache24\conf\httpd.confget
将:c:/Apache24 替换为:d:/Apache24cmd
三、修改文件:D:\Apache24\conf\extra\httpd-vhosts.conf
将:c:/Apache24 替换为:d:/Apache24
四、打开cmd窗口,进入:d:\Apache24\bin,运行命令:httpd -k install
出现提示:
Installing the Apache2.4 service
The Apache2.4 service is successfully installed.
Testing httpd.conf....
Errors reported here must be corrected before the service can be started.
AH00558: httpd: Could not reliably determine the server's fully qualified domain
name, using 192.168.1.106. Set the 'ServerName' directive globally to suppress
this message
五、进入服务列表,看到Apache2.4服务在列表中。启动它试试,成功。
六、浏览器浏览网址:http://localhost/
显示:It works!