Apache fails to start

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,398
Location
London UK
Own a little VPS for personal stuff, woke up to find Apache down:
Code:
systemd[1]: httpd.service: Main process exited, code=killed, status=11/SEGV
kill[2211]: kill: failed to parse argument: '': No such file or directory
systemd[1]: httpd.service: Control process exited, code=exited status=1
systemd[1]: httpd.service: Unit entered failed state.
systemd[1]: httpd.service: Failed with result 'signal'.
Even after a reboot, rebuild apache, rebuild confs..... Still same outcome...

I have free disk space
Code:
/dev/sda1        79G   15G   61G  20% /

Code:
#ipcs -s
------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x00000000 0          zabbix     600        14


I'm really thinking of quitting the hosting industry.
 
What does the apache error log say?
Nothing at all, well, the normal warnings about the ssl for localhost, shared[.]domains, etc, and
Code:
[lbmethod_heartbeat:notice] [pid 6120:tid 139843505745856] AH02282: No slotmem from mod_heartmonitor
 
journalctl -xe gives
Code:
 kernel: httpd[8469]: segfault at 0 ip 00007fe72255a53a sp 00007ffc5881f538 error 4 in libc-2.24.so[7fe7224cb000+195000]
 
Spent nearly all day trying to sort this........

Did a backtrace
(gdb) run -X -d /etc/httpd
Code:
Starting program: /usr/sbin/httpd -X -d /etc/httpd
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff61fd53a in ?? () from /lib/x86_64-linux-gnu/libc.so.6
I would reinstall libc, but it might turn out worse....
 
Last edited:
The segfault has me concerned. Its like something incompatible got installed. I think libc is installed by custombuild. I have seen things like this happen when the DA license does not match the OS. But I am at a loss as to what else it could be if you have not made any changes.
 
I always use the cron to get notified if there's custombuild upgrades then upgrade....... and I always run system (apt/yum) upgrades manually.
 
Is mod_php set as PHP mode? If yes, may you try PHP-FPM? To make sure it's not the PHP module making Apache segfault.
 
thinking of quitting the hosting industry.
nah you're hanging in there..

DId you save all your data yet? I would do that.

Then when is the last time you ran a full ./build all

Seems to be pointing to something in Apache or PHP. Have you ./build those yet?
 
Maybe you have some 3rd party modules loaded in apache? To have less outage, until you find a fix, you may switch to another webserver.
 
I just do not understand what would go wrong when I have not touched anything....... Well, I did use apt-get to update the system, that's all I've done recently.....
 
In the amount of time you have tried to fix it you could have rebuilt it. If it were me I would backup everything and rebuild it.
 
I've decided to approach @smtalk 's company for assistance........ Yes, I could start fresh, but that'll be my last choice.... and I do not personally feel too well.
 
Back
Top