If you came across to this error while installing apache2, well, heres the fix.
Goto your apache installation folder its usually at:
C:\Program Files\Apache Group\Apache2\bin
Execute this command:
Apache.exe -k install -n "Apache2"
-k install -- tells apache to install an Apache service
-n "Apache2" -- sets its service name to be Apache2
-k start -- Start Apache server
-k restart -- Tells Apache to do a restart
You can then test your installation by typing in http://localhost/ to your browser address bar.
文章標籤
全站熱搜

我在執行這個apache.exe -k install -n apache2時,失敗 會出現下面訊息 installing the apache2 service存取被拒。fail to open the winnt service menager
仍然開不了php的index.html
我沒有你說的情況,不過google後在這http://hi.baidu.com/pengpeng5047/blog/item/8a2a1ff4f9983e2cbc310910.html 看到下面方法,可以試試~ 软件安装时与windows7的“用户账户控制”(UAC)冲突,只要先关闭UAC(控制面板-用户账户和家庭安全-系统和安全-行动中心,里面有“更改用户账户控制设置”,改成从不通知,完成后会提示重启,此时需要重启一下)再安装就没问题了,安装完后可以再修改回来。