PDA

View Full Version : httpd ~ no virtualhosts



Wynand
06-08-2009, 08:38 AM
Hi,

Stopping httpd: [FAILED]
Starting httpd: [Mon Jun 08 17:21:56 2009] [warn] NameVirtualHost 94*.*.*:80 has no VirtualHosts
[Mon Jun 08 17:21:56 2009] [warn] NameVirtualHost 94.*.*.*:443 has no VirtualHosts

This is the result of service httpd start. The fun thing is that the only thing I did in the meanwhile (had to reboot after the box hung from a mysql check) was checking some tables.

The links to the virtual hosts files in the httpd.conf from DA are intact, putting a domain manually in <virtualhosts> tags doesn't work.
Host OS is Centos 5.2, Apache 2.2, reboots won't work.

Any suggestions?

mr.applesauce
06-08-2009, 09:36 AM
warnings do not cause apache not to start

Wynand
06-08-2009, 09:54 AM
It's a fact anyway.

[root@server ~]# service httpd start
Starting httpd: [Mon Jun 08 18:37:47 2009] [warn] NameVirtualHost 94.75.207.173:80 has no VirtualHosts
[Mon Jun 08 18:37:47 2009] [warn] NameVirtualHost 94.75.207.173:443 has no VirtualHosts

[root@server ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Mon Jun 08 18:37:59 2009] [warn] NameVirtualHost 94.75.207.173:80 has no VirtualHosts
[Mon Jun 08 18:37:59 2009] [warn] NameVirtualHost 94.75.207.173:443 has no VirtualHosts

[root@server ~]# service httpd status
httpd is stopped
[root@server ~]#

mr.applesauce
06-08-2009, 11:39 AM
No its not a fact you need to look in your error log to why its not starting.

Or run:

httpd -X -e debug

to run in debug mode.

Wynand
06-08-2009, 11:46 AM
[Mon Jun 08 20:30:13 2009] [error] (17)File exists: Cannot create
SSLMutex with file `/var/log/httpd/ssl_mutex'
Configuration Failed

Is visable a ton of times in the error_log file, but google isn't much of a help here. Suggestions?

mr.applesauce
06-08-2009, 11:58 AM
If you google for "Cannot create SSLMutex with file" you can find alot of results. Most of them pointing to a full disk drive. Make sure none of your harddrives are full.

Wynand
06-08-2009, 12:05 PM
It's not exactly full, as df shows.
[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 452G 32G 396G 8% /
/dev/sda1 99M 18M 77M 19% /boot
tmpfs 1.7G 0 1.7G 0% /dev/shm

Wynand
06-11-2009, 12:48 PM
$ rm -rfv /var/log/httpd/ssl_mutex
Did the trick.