Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
share|improve this question
1  
Use the logs, lush. See /var/log/httpd/error.log and see if there is a more detailed reason for Apache crash. If not, try httpd -D and see what happens. Also please be more specific; did you recently upgrade your server software? Anything else happened? Did this server work before and only recently stopped working? No matter how gurus we are here at Server Fault, it's hard to answer if the whole question is around 5 lines. –  Janne Pikkarainen Nov 14 '11 at 8:27
1  
It could be many things, off the top of my head I would check the architecture of the apache binary vs the arch of your machine. Run file /usr/sbin/httpd and compare the type of binary to the output of uname -m. If they match I would then do an strace of the start commands. –  d34dh0r53 Nov 14 '11 at 8:30
    
@JannePikkarainen You're right, I have provided more details. I have not upgraded any software recently and made any other changes. One day I have just noticed Apache is down. The server was working fine. –  Andrew Nov 14 '11 at 8:40
    
@d34dh0r53 You see the output of both commands match. I did do strace but unfortunately my qualification does not allow me to read it. –  Andrew Nov 14 '11 at 8:42
1  
The best way is make it generate a core dump and debug with gdb: cyberciti.biz/tips/…. –  quanta Nov 14 '11 at 8:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.