View Full Version : apache22 is not running
flamingsteam
December 20th, 2009, 03:12
i started the apache22 and it says
"Syntax OK
Starting apache22"
but when i checked the status, apache22 is not running... it says
"apache22 is not running."
why is it? can somebody help me on this problem?
DutchDaemon
December 20th, 2009, 03:33
Have you looked at your error log (/var/log/httpd-error.log)? If yes, what's in there, and if no, why not?
dennylin93
December 22nd, 2009, 15:04
There was a similar case before. Check if the hostname is set properly.
potobenka
January 9th, 2010, 02:55
i have the same problem. log error:
[Thu Jan 07 01:41:51 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "nothing.com"
Configuration Failed
[Thu Jan 07 01:47:05 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jan 07 01:47:05 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "nothing.com"
Configuration Failed
[Thu Jan 07 01:51:24 2010] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Thu Jan 07 01:51:24 2010] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "nothing.com"
Configuration Failed
potobenka
January 9th, 2010, 02:56
any help?:(
SirDice
January 9th, 2010, 03:09
Check if the hostname is set properly. Not only in your httpd.conf but also in rc.conf. Double check to make sure name resolving works.
potobenka
January 9th, 2010, 09:50
i've checked all the files already(hosts, httpd.conf, rc.conf, host.conf) to no avail. :(
potobenka
January 9th, 2010, 10:14
I tried running apache22 as regular(not root)user. I got this:
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
could this be causing the problem?
sixtydoses
January 9th, 2010, 10:23
I tried running apache22 as regular(not root)user. I got this:
cout this be causing the problem???
Only root can bind to privileged ports (< 1024).
semprix
January 9th, 2010, 10:24
I tried running apache22 as regular(not root)user. I got this:
cout this be causing the problem???
No this isn't causing the problem, non-root user dont have the permission to bind sockets.
sixtydoses
January 9th, 2010, 10:42
AFAIK if you run httpd as root, it'll fall back to a user and group specified in the httpd.conf (by default it's 'nobody', I think). If you still want to run it as a non-root user, use port above 1024.
BeautifulFish
January 11th, 2010, 13:04
how about disabling mod_unique_id in httpd.conf?
ahankinson
January 15th, 2010, 16:43
Either disable mod_unique_id in your httpd.conf file or make sure "nothing.com" resolves to your local machine.
I think you can get around that by putting your machine's IP address in the hostname section of your httpd.conf file.
SirDice
January 15th, 2010, 17:54
non-root user dont have the permission to bind sockets.
Yes, they do. As long as the port is above 1024.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.