Help - Search - Members - Calendar
Full Version: httpd dead but subsys locked - please help
The Planet Forums > Control Panels > Plesk
zzzmarcus1
I just upgraded to 7.5.2 from the plesk updater on Redhat 9. Everything seemed to go fine (license is installed etc) but I cannot start apache.

httpd dead but subsys locked

I've upgraded (and tried disabling) both Zend Optimizer and Ioncube Loader, both to no avail.

I have also tried deleting the subsys lock... nothing. Rebooting... still won't start!

This is the httpd error log:

[Tue Mar 15 04:35:21 2005] [warn] module frontpage_module is already loaded, skipping
[Tue Mar 15 04:35:21 2005] [warn] module frontpage_module is already loaded, skipping
[Tue Mar 15 04:41:22 2005] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Mar 15 04:41:22 2005] [warn] RSA server certificate CommonName (CN) `plesk' does NOT match server name!?
ideasmultiples
first test reboot server
zzzmarcus1
Thank you for the suggestion, but like I mentioned, I've tried rebooting already.
x007
Have you check the log size ?

you dont have anyting else in the log ?

any error when

/etc/init.d/httpd stop
/etc/init.d/httpd start

?
NightStorm
Doing some digging, I think I may have found the solution.
Track down the pid file for httpd, and remove it as root.
Likely, its in /var/run
From everything I can find, the subsys locked error means the service shut down/died, but the pid filedid not clear out like normal, so the service can not create a new pid.
Try:
rm -f /var/run/httpd.pid
service httpd restart
zzzmarcus1
The pid file is deleted, but httpd still does not start.

There is no error when restarting, only when checking the status which is when I get the
httpd dead but subsys locked message.

The log error_log file is only 262k.

This is what RS support found:
QUOTE
httpd is segfaulting upon start up:

read(114, "127.0.0.1 localhost.localdomain "..., 4096) = 92
close(114) = 0
munmap(0x4001d000, 4096) = 0
time(NULL) = 1110893605
getpid() = 9389
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

Unfortunatley I am unable to determine the cause of the segfault from the various straces I've performed, but the results are consistent. I would suggest rolling back the version of httpd, or possibly reinstalling the current version. Unfortunately we cannot provide support for issues that arise from erroneous installations/upgrades...

Regards,
EV1 Servers Support

I have tried rolling back the httpd rpm, --force installing it... still does not restart.

I'm at a total loss and have been down for almost 24 extremely stressful hours. Any other suggestions much appreciated.

The only other lines in the error log are:
[Tue Mar 15 09:23:24 2005] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 15 09:23:29 2005] [warn] module frontpage_module is already loaded, skipping
x007
may try this at your point.....

stopall psa service
make a backup of your apache directory, better having a copy of it, in case you need it..

Uninstall apache completly "rpm -e"
re-install clean apache
then restartall psa service

then see the result.. not sure what the result but if you have no other clue...
zzzmarcus1
I uninstalled httpd, installed it then tried starting it. It gave an error of:

QUOTE
Starting httpd: Syntax error on line 13 of /home/httpd/vhosts/somedomain.com/conf/httpd.include:
Invalid command 'SuexecUserGroup', perhaps mis-spelled or defined by a module not included in the server configuration

I figured this was probably due to the fact that httpd was installed after Plesk... so, I force reinstalled Plesk. Plesk works great now, but I'm back to getting the same httpd errors.
QUOTE
httpd dead but subsys locked

Again, your help is appreciated. I don't know where to go from here.
x007
QUOTE
Originally posted by zzzmarcus1
I uninstalled httpd, installed it then tried starting it. It gave an error of:

 
I figured this was probably due to the fact that httpd was installed after Plesk... so, I force reinstalled Plesk.  Plesk works great now, but I'm back to getting the same httpd errors.
 
Again, your help is appreciated. I don't know where to go from here.


I'm not a pro but have you asked ev1 to give some test on the hardware ?

I found weird that nothing apear on the log...

its the standard apache rpm ? I suppose Progeny one since you tell you are on RH9?
zzzmarcus1
Plesk (sw-soft) finally got around to looking at it... this is what they found:

QUOTE
I've found out why apache couldn't start -- there are some problems with php-snmp module. I've turned it off (by moving /etc/php.d/snmp.ini into /root) and httpd started fine. It seems that snmp module tried to find out config files (/etc/snmp/snmp.conf) but haven't found them and failed to load. This have caused apache's segmentation fault.

To resolve this issue you need configure snmp service on your server.


Thanks to those who tried to lend assistance. Hopefully this will help someone else...
kak delavak
hello reader,
it happened to me the same (apache didn't restart and his status was "httpd dead but subsys locked") just when I upgraded ZendOptimizer to v2.5.10 in my RedHat-plesk7.5.3.

The problem resided on ionCube bundled with the php-v4.3.10 I had installed in the box. I guessed that was the reason and followed graceful help in prior post: I toke out ioncube.ini from /etc/php.d/ and I could restart apache successfully.

Regards
kak
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.