解决Apache Web Server的几个错误

一、安装好Apache后服务里没有Apache服务

    命令行进入Apache文件下bin文件,输入命令  
httpd.exe -k install -n Apache2.4
(Apache版本)

二、Apache web server Cannot load modules/mod_access_compat.so into server

       进入conf文件夹下httpd.conf文件,将ServerRoot和DocumentRoot修改为放置Apache文件的正确路径即可

三、Apache启动错误 AH00558: httpd.exe: Could not reliably determine the server's fully qualified domain name, using fe80::c9ed:e949:2ce6:5045. Set the 'ServerName' directive globally to suppress this message

       将 apache 的配置文件httpd.conf中的 ServerName 改成可用域名或如下配置

       ServerName localhost:80

       注意: 注释去掉

通过浏览器访问 http://localhost:80 ,如果页面显示 “It works!” ,即表示apache已安装并启动成功。

       



猜你喜欢

转载自www.cnblogs.com/LinghanHsu/p/9069846.html