1.启动Apache遇到加载不到的模块
httpd: Syntax error on line 153 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/svn/libexec/mod_dav_svn.so into server: /usr/local/svn/libexec/mod_dav_svn.so: undefined symbol: dav_do_find_liveprop
在apache/conf/httpd.conf 里面查找到加载到这两个模块,注释掉
2.启动Apache遇到端口占用问题
(98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
AH00015: Unable to open logs
这是服务器里面还有进程占用了Apache监听的80端口,
解决办法:
1.ps - ef | grep 80 或者 netstat -ano 看下是哪个进程占用了80端口或者监听冲突
kill 掉这个进程
2.更换Apache的监听端口
vi httpd.conf 文件修改Listen
3.启动Apache遇到没有监听端口的问题
no listening sockets available, shutting down
AH00015: Unable to open logs
大意失荆州,配置的时候一定要仔细看!!!
这是由于注释掉了Listen 80 ,Apache再启动的时候找不到监听的端口。