无法启动httpd:apachectl中的分段错误

时间:2016-03-21 14:09:32

标签: apache httpd.conf httpserver

当我尝试运行httpd时,我收到以下错误。

[root@localhost bin]# ./apachectl -k start
./apachectl: line 78: 22059 Segmentation fault      (core dumped) $HTTPD $ARGV

这是apachectl启动脚本行如下:

74 if [ "x$ARGV" = "x" ] ; then
 75     ARGV="-h"
 76 fi
 77 
 78 case $ARGV in
 79 start|stop|restart|graceful|graceful-stop)
 80     $HTTPD -k $ARGV
 81     ERROR=$?
 82     ;;
 83 startssl|sslstart|start-SSL)
 84     echo The startssl option is no longer supported.
 85     echo Please edit httpd.conf to include the SSL configuration settings
 86     echo and then use "apachectl start".
 87     ERROR=2
 88     ;;

检查/ var / log

上的消息
Mar 21 09:45:11 localhost kernel: httpd[22059]: segfault at 8 ip 00000039d360b453 sp 00007fff7e5e80a0 error 4 in ld-2.12.so[39d3600000+20000]
Mar 21 09:45:11 localhost abrtd: Directory 'ccpp-2016-03-21-09:45:11-22059' creation detected
Mar 21 09:45:11 localhost abrt[22060]: Saved core dump of pid 22059 (/apps/httpd-2.2.22/bin/httpd) to /var/spool/abrt/ccpp-2016-03-21-09:45:11-22059 (1904640 bytes)
Mar 21 09:45:11 localhost abrtd: Executable '/apps/httpd-2.2.22/bin/httpd' doesn't belong to any package
Mar 21 09:45:11 localhost abrtd: 'post-create' on '/var/spool/abrt/ccpp-2016-03-21-09:45:11-22059' exited with 1
Mar 21 09:45:11 localhost abrtd: Corrupted or bad directory '/var/spool/abrt/ccpp-2016-03-21-09:45:11-22059', deleting

我是否需要安装适用于"可执行文件' /apps/httpd-2.2.22/bin/httpd'不属于任何包裹"错误?对不起,我是httpd和linux安装的新手。

2 个答案:

答案 0 :(得分:0)

能够解决这个问题。我在httpd.conf

中评论了这一行
Include conf/mod-jk.conf

并没有看到任何错误。检查mod-jk.conf有mod_jk.so的条目。尝试改变mod_jk.so并且事情很好。 似乎mod_jk.so的版本是错误的。

答案 1 :(得分:0)

我也遇到了同样的错误,但是我的操作系统是ubuntu。我检查了/ var / log / syslog中的错误日志,发现libphp5.6.so出现如下错误。

2月7日11:57:45 Varun内核:[698.096661] apache2 [3897]:libphp5.6.so中的841f4f ip segfault ip 00007f979593f3ae sp 00007ffca776ac40错误4 [7f97956d5000 + 3b3000]

Apache普通日志文件未显示上述错误。 所以我通过sudo a2dismod php5.6 && sudo service apache2 reload禁用了php5.6 在那之后,Apache工作正常。

相关问题