[PHP] Re: No Localhost with apache?
--- Ryan A [EMAIL PROTECTED] wrote in message 000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh... Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found errorAny idea why? I have tried using it with the port numbers of :80 and :8080 without any luck..I need it to display the pages using localhost as some programs are configured that way... --- What is the value of ServerName in your httpd.conf file? I'm guessing that it's 127.0.0.1. If so, just change it to localhost and restart Apache. --- Seairth Jacobs [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: No Localhost with apache?
Actually, the same thing happens if the ServerName directive was not set. But anyway, even if the default page doesn't show up, http://localhost/some.php would still work... - E --- "Ryan A" [EMAIL PROTECTED] wrote in message 000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh... Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found errorAny idea why? I have tried using it with the port numbers of :80 and :8080 without any luck..I need it to display the pages using "localhost" as some programs are configured that way... --- What is the value of "ServerName" in your httpd.conf file? I'm guessing that it's "127.0.0.1". If so, just change it to "localhost" and restart Apache. --- Seairth Jacobs [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ $B:G?7$N%U%!%$%J%s%9>pJs$H%i%$%U%W%i%s$N%"%I%P%$%9(B MSN $B%^%M!<(B http://money.msn.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: No Localhost with apache?
Hey, Thank you for replying... I checked the httpd.conf file and this is what I saw ServerName localhost ServerName 212.92.**.*** (The stars are numbers of course but I put them there to protect myself from evil genus's on the list :-) ) I have no idea what the second line is forapache still only responds to 127.0.0.1 Any new ideas? Cheers, -Ryan Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found errorAny idea why? I have tried using it with the port numbers of :80 and :8080 without any luck..I need it to display the pages using localhost as some programs are configured that way... --- What is the value of ServerName in your httpd.conf file? I'm guessing that it's 127.0.0.1. If so, just change it to localhost and restart Apache. --- Seairth Jacobs [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: No Localhost with apache?
First, my mistake: "localhost" still works even if ServerName directive wasn't set... (More below) Hey, Thank you for replying... You're welcome :) I checked the httpd.conf file and this is what I saw ServerName localhost ServerName 212.92.**.*** Perhaps you can try taking one out and restart Apache then test again? (The stars are numbers of course but I put them there to protect myself from evil genus's on the list :-) ) If there are "evil genus's" on the list, I'm sure they can find out what those stars mean : I have no idea what the second line is forapache still only responds to 127.0.0.1 Any new ideas? Maybe you should ask the Apache ml... Cheers, -Ryan - Original Message - From: "@ Edwin" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 7:00 PM Subject: Re: [PHP] Re: No Localhost with apache? Actually, the same thing happens if the ServerName directive was not set. But anyway, even if the default page doesn't show up, http://localhost/some.php would still work... - E --- "Ryan A" [EMAIL PROTECTED] wrote in message 000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh">news:000e01c24e7f$b7bd8820$61d396c1@l2zcaxu7emppqh... Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found errorAny idea why? I have tried using it with the port numbers of :80 and :8080 without any luck..I need it to display the pages using "localhost" as some programs are configured that way... --- What is the value of "ServerName" in your httpd.conf file? I'm guessing that it's "127.0.0.1". If so, just change it to "localhost" and restart Apache. --- Seairth Jacobs [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ $B:G?7$N%U%!%$%J%s%9>pJs$H%i%$%U%W%i%s$N%"%I%P%$%9(B MSN $B%^%M!<(B http://money.msn.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _ $B$+$o$$$/$FL{2w$J%$%i%9%HK~:\(B MSN $B%-%c%i%/%?!<(B http://character.msn.co.jp/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: No Localhost with apache?
Hmm... maybe there is a problem with your hosts file (in WinNT systems (NT/W2K/XP), I think you can find it in /winnt/system32/drivers/etc). Normally, you should have a line that looks like: 127.0.0.1 localhost # default localhost (the #default localhost is just a comment). If this entry is missing or different, I suppose it's possible to lose access to localhost altogether, though I don't know for sure (and don't want to test out either g). What happens when you ping localhost at a command prompt? --- Seairth Jacobs [EMAIL PROTECTED] Ryan A [EMAIL PROTECTED] wrote in message 049a01c24eb5$3b29fdd0$61d396c1@l2zcaxu7emppqh">news:049a01c24eb5$3b29fdd0$61d396c1@l2zcaxu7emppqh... Hey, Thank you for replying... I checked the httpd.conf file and this is what I saw ServerName localhost ServerName 212.92.**.*** (The stars are numbers of course but I put them there to protect myself from evil genus's on the list :-) ) I have no idea what the second line is forapache still only responds to 127.0.0.1 Any new ideas? Cheers, -Ryan Anyway, I installed PHPTriad first but since the version of php is 4.0.0 I uninstalled it and installed SpaceServer...the problem I noticed with both was I could not get the default page from apache with http://localhost/ I have to use http://127.0.0.1 or it gives me a page not found errorAny idea why? I have tried using it with the port numbers of :80 and :8080 without any luck..I need it to display the pages using localhost as some programs are configured that way... --- What is the value of ServerName in your httpd.conf file? I'm guessing that it's 127.0.0.1. If so, just change it to localhost and restart Apache. --- Seairth Jacobs [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php