View previous topic :: View next topic |
Author |
Message |
DerekLucas n00b
Joined: 27 Jun 2004 Posts: 17
|
Posted: Tue Aug 03, 2004 6:35 pm Post subject: Apache2 won't start (could not determine the servers FQDN) |
|
|
A quick question, I have Gentoo installed & set up on a Pentium MMX 200~mhz (read: ancient) box, and i was hoping to use it to serve a website or two. anyway, after emerging apache2, i ran
Code: | /etc/init.d/apache2 start |
hoping for success (this is without messing with configs) & i recieved this output:
Code: | * Starting apache2...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [!!] |
well, that's interesting.. but not new (for some reason i've gotten comments about the FQDN before, perhaps i set it up wrong (or not at all?).. if so, how would i set it up?)
so, i tested it.. "links -g http://localhost:80/"
no go.
alright, so i tried "links -g http://127.0.0.1:80/"
nothing.
eventually, i tried stopping apache2..
apparently, i never started it... though it said it would run using 127.0.0.1 for the ServerName..
now, for a start, which config do i need to play with? I looked through Apache's and saw no mention of the FQDN.. a few things looked like they *could* have had to do with it, so i played with them.. it's still not working.
do i need to set up the FQDN (again, possibly)? and if so, how? (note: i'm checking the "gentoo handbook" for this, i think it's in there.)
i already searched the forums, and came up with nothing.. and all of the Apache howto's (on here and elsewhere) didn't help.
thank you for looking!
- Derek |
|
Back to top |
|
|
Houdini Apprentice
Joined: 14 Jun 2002 Posts: 224 Location: New Mexico Tech, Socorro, NM
|
Posted: Tue Aug 03, 2004 6:44 pm Post subject: |
|
|
Quote: |
i already searched the forums, and came up with nothing.. and all of the Apache howto's (on here and elsewhere) didn't help.
|
You should really hit google before asking the forums. Google's first link for "could not determine the servers FQDN apache" is http://www.networkclue.com/internet/HTTP/Apache/ , which has the answer.
Anyway, two answers.
The quick fix is setting ServerName in your apache2.conf. Make sure to set it to what your machine's DNS name is.
The better fix is to set up your /etc/hosts to have an entry for your IP with the proper name in it. If you're on dialup (or some other dynamic DNS system), that's not as easy to do, and you might want to do the above. _________________ ^]:wq |
|
Back to top |
|
|
DerekLucas n00b
Joined: 27 Jun 2004 Posts: 17
|
Posted: Tue Aug 03, 2004 8:19 pm Post subject: |
|
|
I apologize, I tried searching on google, but (naturally) i didn't think of searching for "could not determine the server's FQDN" since *of course* that's exactly what i want!
ug, now i've got to go be cross at myself.
thank you very much, i will edit my /etc/hosts file immediately..
(also, i'm on cable, so it should work well..)
(edit)
done, it works.
thank you so much Houdini!
- Derek |
|
Back to top |
|
|
Houdini Apprentice
Joined: 14 Jun 2002 Posts: 224 Location: New Mexico Tech, Socorro, NM
|
Posted: Tue Aug 03, 2004 8:42 pm Post subject: |
|
|
No worries
In general, searching for the error message you're getting, possibly quoted, possibly with the name of the program, comes up with good results. _________________ ^]:wq |
|
Back to top |
|
|
DerekLucas n00b
Joined: 27 Jun 2004 Posts: 17
|
Posted: Wed Aug 04, 2004 5:21 pm Post subject: |
|
|
Ok, so now when i point my browser to 'localhost', to '127.0.0.1', to 'desertrose', or to '192.168.1.99' i can access apache's test page.
I set up a dyndns address (desertrose.ath.cx), and then after looking around on no-ip's website, found how to do it.. (ironic, their competitor has a better help article on the subject than they do..)
at the end of said article, it said that i wouldn't be able to access it from behind my network.. anyone know why?
and also, when i *try* to access it, it simply doesn't load.. could someone verify that it is working?
http://desertrose.ath.cx, it should simply load the test page for Apache.
thank you!
- Derek |
|
Back to top |
|
|
ReeferMac Guru
Joined: 30 May 2004 Posts: 389
|
Posted: Wed Aug 04, 2004 7:29 pm Post subject: |
|
|
Tried your link, page wouldn't load.... Dunno what's up (firewall) but I'll be in the same boat shortly... trying to setup my deerfield.com account tonight! Traceroute found you allright however, so the domain name is resolving (68.82.123.##).
- Mac |
|
Back to top |
|
|
DerekLucas n00b
Joined: 27 Jun 2004 Posts: 17
|
Posted: Wed Aug 04, 2004 8:47 pm Post subject: |
|
|
hmm.. apparently, it's something to do with my hardware router... (linksys model somethingsomething) before i set it up to forward port 80 to 192.168.1.99, that link would bring up the router's config page (like it was supposed to.), now it doesn't work at all.. on my comppy it sits and tries to work at it, but eventually fails. (probably times out.)
would this be because of my software firewall? (shorewall) (i, personally, don't think so because when i shut off shorewall, it still did this..)
what else could it be?
-Derek |
|
Back to top |
|
|
smonijhay1 Apprentice
Joined: 29 Apr 2004 Posts: 229 Location: Ann Arbor Michigan
|
Posted: Wed Aug 04, 2004 8:53 pm Post subject: |
|
|
okay, this may be so obvious that I'm stupid for saying it. But have you checked to see if your apache2 is connecting on port 8080?
If it is (which is in some cases the default) you'd have to hit
www. yourwebsite.com:8080
or change it in the conf file to look at port 80 _________________ you mean you are going to remember me by what I type....here? |
|
Back to top |
|
|
DerekLucas n00b
Joined: 27 Jun 2004 Posts: 17
|
Posted: Wed Aug 04, 2004 9:15 pm Post subject: |
|
|
well, that's a good idea, except for three things:
1 - that doesn't work
2 - i remember seeing in the conf file "Listen 80"
3 - it works when i put in the actual IP address of the computer (not of the network), but after the router forwards it, it doesn't work.
thanks anyway!
-derek |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|