LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Can not start HTTPD under RHE 3.0 (https://www.linuxquestions.org/questions/linux-networking-3/can-not-start-httpd-under-rhe-3-0-a-181432/)

setska 05-14-2004 10:59 AM

Can not start HTTPD under RHE 3.0
 
That is what it is giving me:

Fri May 14 10:51:10 2004] [error] (EAI 2)Name or service not known: Cannot resolve host name example.com --- ignoring!
httpd not running, trying to start
(99)Cannot assign requested address: make_sock: could not bind to address 66.41.187.34:80
no listening sockets available, shutting down
Unable to open logs!

what might it mean? I'm new to linux, so sorry for maybe dumm question.
thanks for any help.

LuggerHouse 05-14-2004 11:14 AM

Hello,
please try
/etc/init.d/httpd restart
and send back that part of log...

Why ? Because I jsut think the log you sent is something else trying to connect to a not started web server :-)

setska 05-14-2004 11:32 AM

[root@www root]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Fri May 14 11:29:14 2004] [error] (EAI 2)Name or service not known: Cannot resolve host name example.com --- ignoring!
(99)Cannot assign requested address: make_sock: could not bind to address 66.41.187.34:80
no listening sockets available, shutting down
Unable to open logs!
[FAILED]

:0(
I dont know, that is all I'm geting. :0|

setska 05-14-2004 11:34 AM

might it be because my DNS is not set up?
thanks

LuggerHouse 05-14-2004 12:06 PM

Dont think so, but if you want to see you DNS setting ( probably passed by Your ISP ) you can
cat /etc/resolv

You did post what you see when restarting httpd but can you also post the couple last lines of the logs...

tail -n 10 /var/log/messages

That would be helpfull

THanks!

setska 05-14-2004 12:10 PM

[root@www root]# tail -n 10 /var/log/messages
May 14 11:28:53 www httpd: (99)Cannot assign requested address: make_sock: could not bind to address 66.41.187.34:80
May 14 11:28:53 www httpd: no listening sockets available, shutting down
May 14 11:28:53 www httpd: Unable to open logs!
May 14 11:28:53 www httpd: httpd startup failed
May 14 11:28:53 www httpd: httpd shutdown failed
May 14 11:29:14 www httpd: [Fri May 14 11:29:14 2004] [error] (EAI 2)Name or service not known: Cannot resolve host name example.com --- ignoring!
May 14 11:29:14 www httpd: (99)Cannot assign requested address: make_sock: could not bind to address 66.41.187.34:80
May 14 11:29:14 www httpd: no listening sockets available, shutting down
May 14 11:29:14 www httpd: Unable to open logs!
May 14 11:29:14 www httpd: httpd startup failed
[root@www root]#

:0|

LuggerHouse 05-14-2004 12:34 PM

Heurk... Sorry about that...

Try changing

for Listen 66.41.187.34:80

Listen 80

In your apache.conf...

For furthure help, send your config file at

support@genieciel.com

so I can try it...

setska 05-14-2004 01:55 PM

Great, thanks, that was a case, changed to
Listen *:80
and it worked, thanks again.
and this is what I got :
[root@www root]# /etc/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Fri May 14 13:36:30 2004] [error] (EAI 2)Name or service not known: Cannot resolve host name example.com --- ignoring!
[ OK ]
[root@www root]#

and this error IMO is because of DNS( am I right? ), i'll work on it later today.
many thanks.

LuggerHouse 05-14-2004 02:00 PM

Again an error in the httpd.conf..

I would seach for example.com and rem (#) every entries...

IMHO I would look into VirtualDomain section... But anyway, every lines refering to such domain can be remed

Glad I was usefull, but remember that YOU where the one who had the guts to try it :-)

Keep up the good work!

bartsimpsong 11-29-2007 07:08 PM

Thank you very much
 
Thank you very mucho for your help. I was not able to start httpd and for a moment I was about to reinstall the whole OS. thank you very much again


All times are GMT -5. The time now is 02:15 AM.