Author |
|
mase2hot
Joined: 06 Jul 2008 Posts: 3
|
Posted: Sun 06 Jul '08 16:40 Post subject: HTTPD.EXE could not reliably determine the servers |
|
|
Hi,
ok I've installed apache, when I go to http://localhost I get the message it works. But when I restart the service I get the error HTTPD.EXE could not reliably determine the servers fully qualified domain name, using 192.168.1.100 for servername. I've looked on google now for 2 days tried messing with localhost, 8080, 127.0.0.1 to no avail. So I thought it may be something to do with vista so I installed it on my PC which has Windows XP. Same problem! I've turned off virus scanners, could it be anything to do with my router? My IP is 192.168.1.100 which is not DHCP its static...
Also something which I think is stange but me be normal. When I change the servername and restart I get the exact same message even if I change the IP to say 192.168.1.105 it still comes back with error HTTPD.EXE could not reliably determine the servers fully qualified domain name, using 192.168.1.100 for servername. Should the ip address update in the error?
please help!!! |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Sun 06 Jul '08 17:16 Post subject: |
|
|
Your system apparently doesn't have a registered DNS name.
Edit the file conf\httpd.conf and look for the section which says: Quote: | If your host doesn't have a registered DNS name, enter its IP address here. | Just below this comment, add the directive: Code: | ServerName 192.168.1.100:80 |
If you want your server to be visible outside your local network, you will need a registered DNS name for it.
If you have one (or if you get one in the future) - use this name instead of 192.168.1.100 in the ServerName directive.
-tom- |
|
Back to top |
|
mase2hot
Joined: 06 Jul 2008 Posts: 3
|
Posted: Sun 06 Jul '08 20:03 Post subject: |
|
|
I already have those details in, and stlll get that message..... |
|
Back to top |
|
tdonovan Moderator
Joined: 17 Dec 2005 Posts: 611 Location: Milford, MA, USA
|
Posted: Sun 06 Jul '08 22:40 Post subject: |
|
|
hmmmm.... That's the directive which should supress this message. It does so with Apache 2.2.9 on Windows (you don't mention your version).
Are you sure you are editing the correct httpd.conf file, and that there is no pound-sign (#) in front of the directive (which would make it a comment)?
-tom- |
|
Back to top |
|
mase2hot
Joined: 06 Jul 2008 Posts: 3
|
Posted: Sun 06 Jul '08 23:17 Post subject: |
|
|
OMG! Your a genius! I had a # infront of it! How stupid am I!!!
Now when I try to run a script with <? phpinfo() ; ?> the page doesn't load. Problems problems for me! |
|
Back to top |
|
adonat
Joined: 03 Jun 2008 Posts: 18
|
Posted: Mon 07 Jul '08 6:01 Post subject: |
|
|
mase2hot wrote: | OMG! Your a genius! I had a # infront of it! How stupid am I!!!
Now when I try to run a script with <? phpinfo() ; ?> the page doesn't load. Problems problems for me! |
Do you have short tags turned off in the 'php.ini" file. I am asking becasue you used '<?' instead of '<?php' as the opening tag. I use full tags for portability.
<?php
phpinfo();
?>
I just got done throwing to together a server package with a couple bells and whistles and at first everything was a little overwhelming. |
|
Back to top |
|
glevert
Joined: 08 Jul 2008 Posts: 2 Location: Ottawa, Ontario, Canada
|
Posted: Tue 08 Jul '08 3:23 Post subject: Apache startup console completely black? Help! |
|
|
When I start Apache (manually - Start Apache in Console), all I get is a black console. Also, when I mouse over the Apache icon in the Windows tray, the caption lable says: "No services installed".
Any clue what I am doing wrong?
THanks
Guy |
|
Back to top |
|
glevert
Joined: 08 Jul 2008 Posts: 2 Location: Ottawa, Ontario, Canada
|
Posted: Tue 08 Jul '08 3:26 Post subject: Apache seems to be working.... |
|
|
Me again,...
If I enter localhost:8080 in the address line (I use Firefox), I get a web page with "It works!" on it only?
THanks again
Guy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 09 Jul '08 22:02 Post subject: |
|
|
the page "it works" shows that apache runs! That is very ok |
|
Back to top |
|