apache segmentation error

Posted by lush on Server Fault See other posts from Server Fault or by lush
Published on 2011-11-14T08:22:22Z Indexed on 2011/11/14 9:56 UTC
Read the original article Hit count: 227

Filed under:

I can't start Apache with the following errors:

[root@web]# /etc/init.d/httpd start
Starting httpd: /bin/bash: line 1: 19232 Segmentation fault      /usr/sbin/httpd
[root@web]# /usr/sbin/apachectl -k start
/usr/sbin/apachectl: line 102: 19919 Segmentation fault      $HTTPD $OPTIONS $ARGV

I use webmin control panel and I've already tried re-installing Apache from scratch. Can someone advise what else I should try to do? Many thanks.

UPDATE:

The only line is always written in the error logs which seems not to be very important:

[Mon Nov 14 19:00:09 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)

UPDATE 2:

I've recently had the error below in the logs. Looks like some modules are incompatible, so I've just disabled these extensions: fileinfo and mcrypt in my php.ini. I should be able to start the web server without them.

PHP Warning:  PHP Startup: fileinfo: Unable to initialize module\nModule compiled with module API=20050922, debug=0, thread-safety=0\nPHP    compiled with module API=20060613, debug=0, thread-safety=0\nThese options need to match\n in Unknown on line 0
PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0

UPDATE 3:

[root@web]# file /usr/sbin/httpd
/usr/sbin/httpd: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, stripped
[root@web]# uname -m
x86_64

© Server Fault or respective owner

Related posts about apache2