錯誤: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!