Click to See Complete Forum and Search --> : Apache problem in Debian 2.2r5


HOJUbobo
03-20-2002, 11:53 PM
I'm pretty new to linux, so bear with me.

I'm just trying to get Apache working basically right now, I'm running Debian 2.2r5 as the subject says, and I can't even get it to start...

I apt-get install apache, and it installs fine. But when I try to start apache it says
"apache: cannot determine local host name.
Use the ServerName directive to set it manually"

I'm assuming that means the ServerName set in the httpd.conf file. I'm not sure what to set this to, even if I just put my IP address, or even localhost in there, I get the error
"httpd could not be started"

I can't seem to figure this out, and haven't been able to find anything by searching through existing threads, so if anyone could help I'd greatly appreciate it.

-thanks

[ 20 March 2002: Message edited by: HOJUbobo ]

HOJUbobo
03-21-2002, 10:45 AM
Anyone?

HOJUbobo
03-21-2002, 02:42 PM
Is this something no one has encountered?

Maybe this isn't the best section to post this question in...

Does anyone wanna say anything :)

Strike
03-21-2002, 04:08 PM
Here's what my httpd.conf (and yours, probably) says about setting ServerName -

# ServerName: allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.

HOJUbobo
03-21-2002, 05:20 PM
Originally posted by Strike:
<STRONG>Here's what my httpd.conf (and yours, probably) says about setting ServerName -

# ServerName: allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
#
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
</STRONG>

Okay..
I had already mentioned that I set ServerName to my IP address, and that I was getting the error
"httpd could not be started"

so that quote from httpd.conf doesn't really help...

How do I determine why httpd couldn't be started?

-thanks

HOJUbobo
03-21-2002, 11:54 PM
Well.... anyways,
I figured it out, I had to have the ServerName in the httpd.conf file set to the host name of my computer..

And then I set up dns2go on it, and everything seems to run pretty good.

thanks for all the help :)