Httpd and sshd crashing constantly

Nutz

Verified User
Joined
Sep 13, 2005
Messages
11
Just updated to the newest Apache I also have PHP 5.1 (recently updated ) and the newest SSL (recently updated)

This server does not have any traffic really as its just been sitting idle for the past year as I havent had time to do any set up on it.

It has the newest version of DA. Which also seems to crash when running the upgrade scripts.

System info:
------------------------------------------------
OS - Fedora Core 4
rocessor Name Intel(R) Pentium(R) 4 CPU 3.00GHz
Vendor ID GenuineIntel
Processor Speed (MHz) 2993.250
Processor Name Intel(R) Pentium(R) 4 CPU 3.00GHz
Vendor ID GenuineIntel
Processor Speed (MHz) 2993.250
Total Memory 1032964 kB
Free Memory 457104 kB
Total Swap Memory 1052248 kB
Free Swap Memory 1052248 kB
System Uptime 0 Days, 3 Hours and 8 Minutes
Apache 2.2.4 Running
DirectAdmin 1.28.6 Running
Exim 4.60 Running
MySQL 4.1.12 Running
Named 9.3.1 Running
ProFTPd 1.2.10 Running
sshd Running
vm-Pop3d 1.1.7f-DA-2 Running

-------------------------------------------

You can see here httpd needs constants restarting. sshd goes down almost as frequently...


-----------------------------------------------------
2007:01:14-07:49:01: service httpd wasn't running, starting it
2007:01:14-07:49:01: Error starting service httpd : uid 0 gid 0 : /sbin/service httpd start >>/dev/null 2>>/dev/null
2007:01:14-07:49:11: service httpd didn't start, re-starting it
2007:01:14-07:49:11: Error restarting service httpd : uid 0 gid 0 : /sbin/service httpd restart >>/dev/null 2>>/dev/null
2007:01:14-07:50:01: service httpd wasn't running, starting it
2007:01:14-07:50:01: Error starting service httpd : uid 0 gid 0 : /sbin/service httpd start >>/dev/null 2>>/dev/null
2007:01:14-07:50:11: service httpd didn't start, re-starting it
2007:01:14-07:50:12: Error restarting service httpd : uid 0 gid 0 : /sbin/service httpd restart >>/dev/null 2>>/dev/null
2007:01:14-07:51:01: service httpd wasn't running, starting it
2007:01:14-07:51:01: Error starting service httpd : uid 0 gid 0 : /sbin/service httpd start >>/dev/null 2>>/dev/null
2007:01:14-07:51:11: service httpd didn't start, re-starting it
2007:01:14-07:51:11: Error restarting service httpd : uid 0 gid 0 : /sbin/service httpd restart >>/dev/null 2>>/dev/null
2007:01:14-07:52:01: service httpd wasn't running, starting it
2007:01:14-07:52:01: Error starting service httpd : uid 0 gid 0 : /sbin/service httpd start >>/dev/null 2>>/dev/null
2007:01:14-07:52:11: service httpd didn't start, re-starting it
2007:01:14-07:52:11: Error restarting service httpd : uid 0 gid 0 : /sbin/service httpd restart >>/dev/null 2>>/dev/null
2007:01:14-07:53:01: service httpd wasn't running, starting it
--------------------------------------

The IP I am masking is mine.... and I am not using an invalid username. I have always gotten it on the first try so what gives?

---------------------------------------------------
007:01:11-23:21:40: *** 66.xxx.xxx.xx has tried to login with an invalid username: '(null)' ***
2007:01:11-23:21:42: *** 66.xxx.xxx.xx has tried to login with an invalid username: '' ***
2007:01:12-00:34:24: *** 66.xxx.xxx.xx has tried to login with an invalid username: '(null)' ***
2007:01:12-01:34:18: *** 66.xxx.xxx.xx has tried to login with an invalid username: '' ***
2007:01:12-01:38:31: *** 66.xxx.xxx.xx has tried to login with an invalid username: '(null)' ***
2007:01:12-01:38:32: *** 66.xxx.xxx.xx has tried to login with an invalid username: '(null)' ***
2007:01:12-04:54:25: *** 66.xxx.xxx.xx has tried to login with an invalid username: '(null)' ***

-----------------------------------------------


[Sun Jan 14 08:21:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:21:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:21:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:21:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:21:25 2007] [warn] Init: SSL server IP/port conflict: www.forums.MyDomainName.com:443 (/usr/local/directadmin/data/users/resisted/httpd.conf:166) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:21:25 2007] [warn] Init: SSL server IP/port conflict: www.dkp.MyDomainName.com:443 (/usr/local/directadmin/data/users/resisted/httpd.conf:103) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:21:25 2007] [warn] Init: SSL server IP/port conflict: www.MyDomainName.com:443 (/usr/local/directadmin/data/users/resisted/httpd.conf:41) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:21:25 2007] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/httpd.conf:353) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:21:25 2007] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Jan 14 08:21:25 2007] [notice] Apache/2.2.4 (Unix) mod_perl/1.99_17-dev Perl/v5.8.6 mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.1.4 configured -- resuming normal operations
[Sun Jan 14 08:22:24 2007] [notice] Graceful restart requested, doing restart
[Sun Jan 14 08:22:24 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:24 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jan 14 08:22:24 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Jan 14 08:22:24 2007] [warn] NameVirtualHost 72.232.17.27:80 has no VirtualHosts
[Sun Jan 14 08:22:24 2007] [warn] NameVirtualHost 72.232.17.27:443 has no VirtualHosts
[Sun Jan 14 08:22:24 2007] [warn] NameVirtualHost 72.232.17.28:443 has no VirtualHosts
[Sun Jan 14 08:22:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:22:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:22:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:22:25 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Sun Jan 14 08:22:25 2007] [warn] Init: SSL server IP/port conflict: www.forums.MyDomainName.com:443 (/usr/local/directadmin/data/users/resisted/httpd.conf:166) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:22:25 2007] [warn] Init: SSL server IP/port conflict: www.dkp.MyDomainName.com:443 (/usr/local/directadmin/data/users/resisted/httpd.conf:103) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:22:25 2007] [warn] Init: SSL server IP/port conflict: www.MyDomainName.com:443 (/usr/local/directadmin/data/users/resisted/httpd.conf:41) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:22:25 2007] [warn] Init: SSL server IP/port conflict: localhost:443 (/etc/httpd/conf/httpd.conf:353) vs. www.secure.MyDomainName.com:443 (/usr/local/directadmin/data/users/secure/httpd.conf:41)
[Sun Jan 14 08:22:25 2007] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Sun Jan 14 08:22:25 2007] [notice] Apache/2.2.4 (Unix) mod_perl/1.99_17-dev Perl/v5.8.6 mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.1.4 configured -- resuming normal operations
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml
[Sun Jan 14 08:22:25 2007] [error] [client 127.0.0.1] File does not exist: /var/www/htdocs/400.shtml


---------------------------------------------


I was screwing around earlier trying to get SSL to work so I must have changed the last 2 virtual hosts in httpd.conf... none the less those are only warnings not reasons for httpd and sshd to crash every minute.
 
update..

Getting php 5.2 and the newest ssh and the newest MySQL seems to have helped some. I havent had a restart since 11:30 but I still dont think this problem is fixed and my ssh still likes to die on me.
 
I've got this exact issue on ONE server

PHP 5.2.1 (cli)
# httpd -v
Server version: Apache/2.2.4 (Unix)
Server built: Apr 28 2007 23:55:59


Anyone got any ideas, I'm plum outta ideas right now and a server full of customers down
 
Anyone with this problem, please run the following command, from the shell, as root:
Code:
/sbin/service httpd restart
and paste the output here.

Jeff
 
I've got the exact same problem.


My httpd just stops automatically, and I don't see much traffic either.


My error log had read the same problem mentioned in this topic.
When i performed /sbin/service httpd restart using shell, i get the following.

/home/reseller/domains/domain.com/ public_html/auditions-shoes] does not exist
Warning: DocumentRoot [/home/reseller/domains/domain.com/public_html/foor smart] does not exist
Warning: DocumentRoot [/home/reseller1/domains/domain1.com/public_html/Keen-Kids ] does not exist
Warning: DocumentRoot [/home/reseller1/domains/domain1.com/public_html/dr.Scholl s] does not exist
Warning: DocumentRoot [/home/reseller1/domains/domain1.com/public_html/dr.marten s] does not exist
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:80 has no VirtualH osts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.29.24.**:443 has no Virtual Hosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.246.1**.47:80 has no Virtua lHosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.246.1**.47:443 has no Virtu alHosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.246.1**.43:80 has no Virtua lHosts
[Mon Aug 06 03:14:02 2007] [warn] NameVirtualHost **.246.1**.43:443 has no Virtu alHosts
 
This looks normal; you'll have to have someone look at your server.

Jeff
 
I have the same problem!

Code:
[Thu Dec 27 00:11:45 2007] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Thu Dec 27 00:11:45 2007] [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.8b DAV/2 PHP/5.2.3 configured -- resuming normal operations
[Thu Dec 27 05:20:30 2007] [error] [client 74.6.19.114] File does not exist: /var/www/html/robots.txt
[Thu Dec 27 09:26:20 2007] [error] [client 68.142.212.170] File does not exist: /var/www/html/robots.txt
[Thu Dec 27 09:27:15 2007] [error] [client 121.7.136.138] File does not exist: /home/mydirectory/public_html/forum/favicon.ico
[Thu Dec 27 10:10:01 2007] [notice] caught SIGTERM, shutting down
[Thu Dec 27 10:10:43 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Thu Dec 27 10:10:43 2007] [warn] RSA server certificate CommonName (CN) `www.snakeoil.dom' does NOT match server name!?
[Thu Dec 27 10:10:43 2007] [warn] Init: SSL server IP/port conflict: www.user1.net:443 (/usr/local/directadmin/data/users/user1/httpd.conf:48) vs. www.user2.net:443 (/usr/local/directadmin/data/users/user2/httpd.conf:48)

It looks like its some snakeoil.com problem. How do I solve it?

Using a service httpd restart gets me :
Code:
[root@soundwave httpd]# /sbin/service httpd restart
Stopping httpd:                                            [  OK  ]
Remaining processes: 14606 14614 14615 14616 14617 14618 14619 14620 14621
Stopping httpd:                                            [FAILED]
Remaining processes: 14606 14614 14615 14616 14617 14618 14619 14620 14621
Stopping httpd:                                            [FAILED]
Remaining processes: 14606 14614 14615 14616 14617 14618 14619 14620 14621
Stopping httpd:                                            [FAILED]
Remaining processes: 14606 14614 14615 14616 14617 14618 14619 14620 14621
Stopping httpd:                                            [FAILED]
Remaining processes: 14606 14614 14615 14616 14617 14618 14619 14620 14621
*and it keeps on looping like this till I ctrl-C *

But I can run httpd manually, with service start httpd.
 
Last edited:
David, your probably looks quite different. It looks as if you've got too many processes running; perhaps you're undergoing a DOS attack.

Starting httpd again before you've shut down all the processes is probably a bad idea.

To shutdown all the httpd processes when you have this problem:
Code:
# killall httpd
# killall -9 httpd
Then restart:
Code:
# service httpd restart
Jeff
 
Code:
[root@soundwave davidc]# killall httpd
[root@soundwave davidc]# killall -9 httpd
httpd: no process killed
[root@soundwave davidc]# service httpd restart
bash: service: command not found
[root@soundwave davidc]# /sbin/service httpd restart
Stopping httpd:                                            [  OK  ]
Remaining processes: 8926 8934 8935 8936 8937 8938 8939 8940 8941
Stopping httpd:                                            [FAILED]
Remaining processes: 8926 8934 8935 8936 8937 8938 8939 8940 8941
Stopping httpd:                                            [FAILED]
Remaining processes: 8926 8934 8935 8936 8937 8938 8939 8940 8941
Stopping httpd:                                            [FAILED]

Still the same.

No its not a DDOS for sure. And my problem is that my httpd will be down for about 1-10 seconds ocassionally and then it will go back up without any user intervention. The error logs I've posted 2 post up, is what happened during that period of downtime.
 
Code:
Remaining processes: 8926 8934 8935 8936 8937 8938 8939 8940 8941
Stopping httpd:                                            [FAILED]

Still the same.
First, you need to clean up httpd.conf file and make sure the directives and syntax are correct. When you do that, I suggest you re-compile Apache. If the problem presists, I suggest you seek professional help.
 
my httpd.conf looks normal.

Will recompiling cause any problem to existing sites and configurations?
 
What OS Distribution are you using? it either doesn't have the service command or it puts it some other location.

Jeff
 
This is a quote from post #10, from you, in this thread:
Code:
[root@soundwave davidc]# service httpd restart
bash: service: command not found
Your server doesn't find the service command.

Jeff
 
/sbin/service works.

and service works if I log on as root.

Its just a path issue.
 
You say it works when logged in as root, but your post (see my paste-in of it above) says it doesn't.

When bash says it's not found, that means it's not working.

Jeff
 
it works when I do a su -

and what does this path issue have anything to do with the problem on hand?
 
Nothing ... I missed that you'd rerun the service command with the correct path after you got the error. I read and respond to many posts daily, and this is just simply something I missed.

If your restart is failing to stop all the processes it will continue to loop until it does. Perhaps your httpd start/stop/restart script needs to be updated; I don't know how it's attempting to restart the code.

Does the service stop command work?

Jeff
 
Actually, I don't even know if this restart thing is causing the problem.

The real main problem is that my httpd seems to crash occassionally for no reason and then gets back online within 10-30 seconds later.

The error_log I've pasted a few posts back is the log that I get when one such crash happened.
 
Back
Top