View Full Version : Apache failed
Hi,
Apache on my server is currently failed. :(
When I type this:
/usr/local/apache/bin/apachectl configtest
It gives me the following error message:
[Fri Jun 29 11:19:06 2001] [warn] NameVirtualHost XXX.XX.XX.XX:80 has no VirtualHosts
for about 150 times.
Anybody knows why I get the warning?
Thanks for your reply.
Anto.
PS:
I'm using WHM/CPanel.
davidb 06-29-2001, 05:17 PM Ok, namevirtualhost is used when you want to bind multiple domains to 1 ip. IF you have ONE domain per ip or NO domains on that ip, you will get that error. To solve it, remove the line namevirtualhost
I would suggest commenting it out, instead of removing it.
To comment something out just place a # in front of it.
hostingNIS 11-21-2004, 01:48 PM Where would one enter the # to prevent this error
Steven 11-21-2004, 01:59 PM Ignore the error, if you comment them out and then try to add a domain using that ip it will not work since you wont have name based hosting enabled for that ip.
YUPAPA 11-21-2004, 02:06 PM Is that the only error you have?
It is just a warning and I don't think this would cause apache down ~ :fairy:
The warning is because you have NameVirtualHost XXX.XX.XX.XX:80 and for that particular IP address, you have no virtualhost ~ :penguin:
hostingNIS 11-21-2004, 02:16 PM where is the httpd.conf located?
My apache keeps failing
YUPAPA 11-21-2004, 02:17 PM /etc/httpd/conf/httpd.conf probably ~
hostingNIS 11-21-2004, 02:24 PM im getting this error:
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] NameVirtualHost xx.xx.xxx.xx:80 has no VirtualHosts
[Sun Nov 21 11:19:22 2004] [warn] pid file /usr/local/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Sun Nov 21 11:19:22 2004] [emerg] (28)No space left on device: could not call shmget
YUPAPA 11-21-2004, 02:29 PM Are you running out of space? :confused:
Do: service httpd stop; service httpd start
hostingNIS 11-21-2004, 03:15 PM i dont think so.. right now im doing fix quoats to see
Steven 11-21-2004, 03:28 PM your /usr partition is out of space
hostingNIS 11-21-2004, 03:31 PM I dont think thats the problem either:
Disk hda2 (/) DMA+ 3 %
Disk hda1 (/boot) DMA+ 18 %
Disk hda8 (/home) DMA+ 26 %
Disk hda7 (/tmp) DMA+ 10 %
Disk hda5 (/var) DMA+ 38 %
Disk hda6 (/usr) DMA+ 52 %
AhmedFouad 11-21-2004, 03:41 PM Hmm
Where is /dev/shm ??
Did you do any recent changes to it ?
It could cause this shared memory error.
Please check that it is mounted and ensure that it has an entry in /etc/fstab.
hostingNIS 11-21-2004, 03:52 PM /dev/hda1 /boot ext3 defaults 1 1
/dev/hda2 / ext3 defaults,usrquota $
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda8 /home ext3 defaults,usrquota 1$
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda7 /tmp ext3 defaults 1 2
/dev/hda5 /var ext3 defaults,usrquota $
/dev/hda6 /usr ext3 defaults,usrquota $
/dev/hda3 swap swap defaults 0 0
I have this
YUPAPA 11-21-2004, 03:57 PM Do a httpd -t and check if the syntax is correct ~
AhmedFouad 11-21-2004, 03:57 PM Run
# df -h /dev/shm and paste the result.
hostingNIS 11-21-2004, 03:58 PM Filesystem Size Used Avail Use% Mounted on
none 505M 4.0K 505M 1% /dev/shm
hostingNIS 11-21-2004, 04:01 PM /usr/local/apache/bin/apachectl configtest
shmget() failed: No space left on device
Warning: DocumentRoot [/home/hosting/public_html/ns1] does not exist
Warning: DocumentRoot [/home/hosting/public_html/ns2] does not exist
Warning: DocumentRoot [/home/hosting/public_html/ns3] does not exist
Warning: DocumentRoot [/home/itsbryn/public_html/5-4cars.com] does not exist
Warning: DocumentRoot [/home/roy2k/public_html/rates] does not exist
Warning: DocumentRoot [/home/warezbr/public_html/forum] does not exist
Warning: DocumentRoot [/home/lucked/public_html/lotto] does not exist
Warning: DocumentRoot [/home/warezbr/public_html/members] does not exist
Warning: DocumentRoot [/home/gflores/public_html/tony] does not exist
Warning: DocumentRoot [/home/gflores/public_html/haxs] does not exist
Warning: DocumentRoot [/home/warezbr/public_html/axx] does not exist
Warning: DocumentRoot [/home/****vri/public_html/taka] does not exist
Warning: DocumentRoot [/home/warezbr/public_html/ddl] does not exist
Warning: DocumentRoot [/home/****vri/public_html/toshiki] does not exist
Warning: DocumentRoot [/home/warezbr/public_html/serials] does not exist
Warning: DocumentRoot [/dev/null] does not exist
Warning: DocumentRoot [/home/lw/public_html] does not exist
Warning: DocumentRoot [/home/pengpeng/public_html] does not exist
Syntax OK
YUPAPA 11-21-2004, 04:21 PM I think the problem is on /dev/shm ~
AhmedFouad 11-21-2004, 04:35 PM Well there is no FATAL error in httpd.conf that cause apache to not get started and /dev/shm is free !!
The only thing i can think of now is the kernel.
Did you upgrade your kernel recently and if so , please ensure that CONFIG_SYSVIPC is Y in the kernel config file.
|