Forum Moderators: phranque

Message Too Old, No Replies

cannot restart server

restarting apache after electric shutdown

         

mikel4u

12:51 am on Jan 6, 2005 (gmt 0)

10+ Year Member



Hi guys, i'm kind a new with this so maybe it's a silly question but i can't figure it out mi problem, i had an electric shutdown so my server went down i have redhat 8.0 webmin 1.020 and apache 2.049 any way after the shutdown when i tried to start the apache server via webmin i got this error message:

Failed to start apache :
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
(98)Address already in use: make_sock: could not bind to address 200.xx.224.7:80
no listening sockets available, shutting down
Unable to open logs

please help i don't know what to do.

thanks in advanced.
Mikel

[edited by: jdMorgan at 1:44 am (utc) on Jan. 6, 2005]
[edit reason] Obscured specifics. [/edit]

moltar

1:40 am on Jan 6, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WW, mikel4u!

Are you sure it is not started already? Seems like it's already running... When I access your IP (which you should have not posted BTW), I see the apache installation working as it should.

Also your IP could have changed after restart and Apache can't find it now.

mikel4u

2:51 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



Thanks for the tip Moltar i didn`t realize that my IP was in the error code, the thing is that when i go to the apache server module of the webmin i've just got the options of start apache and module config and it's when i get the error. the IP is static so it's the same before and after the shutdown.

kalos

9:50 am on Jan 9, 2005 (gmt 0)

10+ Year Member



Manually edit your httpd.conf file and look for the section that reads as follows:


# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
ServerName domain.com:80

Just below that should be whatever you set up as your server name (domain.tld). If this is not correct, is blank or otherwise something that would make your server barf, fix it. You can put almost anything in there as long as it is valid (meaning you are actually on that named server, not just making something up -- no stealing microsoft.com or anything).

From the latter half of your error message it appears that either your Apache server is trying to be told to run twice or something else is running on port 80 before Apache is told to start. Are you running another webserver, a proxy server or anything else that may have taken over that port?

mikel4u

6:54 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



Thanks Kalos, I already check the file and it's blank below that just like you said, i'll make that change thanks again.

mikel4u

7:05 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



Hi Kalos, after i did that when i start the server now i get this error:

Failed to start apache :
(98)Address already in use: make_sock: could not bind to address 200.#*$!.224.7:80
no listening sockets available, shutting down
Unable to open logs