Apache 错误及解决方法

错误:

1.安装时出现错误:

D:\Apache\Apache24\bin>httpd.exe -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.
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address [::]:443
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。  : AH00072: make_sock: could not bind to address 0.0.0.0:443
AH00451: no listening sockets available, shutting down
AH00015: Unable to open logs

 解决方法:由于443端口被占用无法进行正常安装,可以 使用命令

netstat -aon|findstr "443" 

查看哪个进程占用443端口,然后结束当前进程后进行安装。(一般的占用都是因为和vmware-hostd.exe冲突,安装VMware导致)

或者选择修改配置文件的443端口改为其他空闲端口。

一般建议直接结束vmware-hostd.exe的进程,此进程是VMware的远程控制功能,一般用不到。将他改为手动启动

此电脑点击右键->服务

点击服务和应用程序     然后点击服务

双击此服务进行停止,启动类型改为手动

vmware-hostd.exe与443端口的一些解答:参考链接

 2.安装时出现错误

ServerRoot must be a valid directory,Cannot load modules/mod_actions.so into server:

解决方法:
在apache安装目录下面找到conf/httpd.conf 代码的第38行修改SRVROOT路径为你的apache服务器路径即可。
如下图

 

发布了204 篇原创文章 · 获赞 11 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/error311/article/details/104094137