1

我使用的是 Ubuntu 12.04,最近我的 localhost 在尝试访问我的 wordpress 文件时开始无法正常工作。http://localhost本身可以工作并显示默认页面,但http://localhost/wordpress不能。相反,它向我显示了这个错误:Firefox can't find the server at www.localhost.com

然后它向我显示 ubuntu 中的错误报告屏幕以提交报告,但随后显示错误报告由于填充而无法提交。

现在,当我检查我的 apache 日志时,我得到了这个:[Sat Sep 07 14:02:21 2013] [notice] child pid 16225 exit signal Segmentation fault (11), possible coredump in /etc/apache2

我不知道如何解决这个问题,或者我做错了什么,或者它只是一个错误。几天前它开始不起作用。我的系统已更新,但问题仍然存在。我只使用 Ubuntu 几个月,所以我不明白它所说的分段错误。

我该如何解决这个问题?

提前致谢。

4

2 回答 2

1

我遇到了这个问题并更改LogLevel warnLogLevel debug在 apache 配置中。重新启动时,它似乎在 mod_deflate 之后出现了段错误。

在 debian/ubuntu 中关闭 mod_deflate 应该只是sudo a2dismod deflate

于 2013-09-25T01:25:26.387 回答
0

Have a look at the following article. I don't know if it will help but it's worth a try. According to the author, the problem is that your system core file size is set to 0. http://sysadmin.carlusgg.com/?p=197

That top part seems to be half the solution. The rest of the solution is to create a folder for Core Dumps and add the directory to httpd.conf

Follow this tutorial: http://www.cyberciti.biz/tips/configure-apache-web-server-for-core-dump.html

Edit: None of the above solutions have solved it for me, actually. Maybe it will work for you.

I recently tried changing the owner of the /etc/apache2 folder to www-data. It's lessened the number of signal segmentation faults, but hasn't solved it.

Edit from 2020: The above (changing the /etc/apache2 folder owner to www-data) is not a good idea in practice.

Have you tried using gdb to trace the problem. See the following thread: "[notice] child pid XXXX exit signal Segmentation fault (11)" in apache error.log

Edit: I placed Nginx in front of Apache and I am no longer receiving segmentation faults in the Apache error log. I also think the configuration is a better implementation then Apache on its own. I know it's not a direct solution to the problem but if the segmentation faults are difficult to trace and causing problems, it may be worth implementing this solution.

于 2013-09-15T17:21:24.690 回答