Forum Moderators: mack

Message Too Old, No Replies

How to get Apache (+ PHP) running under Windows XP

127.0.0.1? Localhost? Internet? Intranet?

         

waldemar

7:53 pm on Jul 14, 2003 (gmt 0)

10+ Year Member



First Install :-)))
Apache and PHP are running fine on my Windows XP Pro but I'm missing something fundamental about Domains/IPs and the Internet here...

I tried to load some HTML/PHP-Docs (I saw some execute fine already) from the DocumentRoot into the browser using http:// (http:// uses Apache, file:// would call the Windows File System, right?) and they either take very long or I see the browser message that they don't exist (Filetypes are also set with AddType).
It seems it has to do with wether I am conntected to the internet or not...
What is happening when I surf to 127.0.0.1 or localhost or the domain name that I configured while installing apache? When does the browser stay on the local hard drive and when does it try to connect online? (I remember some "HOSTS" file under W98.... anything to do with that?)

waldemar

9:05 pm on Jul 14, 2003 (gmt 0)

10+ Year Member



Hm, ok, reinstalled everything with phptriad and everything works fine out of the box. But I'm still wondering; where does this routing/loopback happen, so IE will not call to external IPs?

moltar

9:19 pm on Jul 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I had a similar problem when I was on dial-up. I was able to use only localhost domain and nothing else unless I connect. If I try to use any other domain IE asks me to connect (even if it mapped via hosts file to 127.0.0.1).

waldemar

10:58 am on Jul 16, 2003 (gmt 0)

10+ Year Member



I cannot put my finger on it yet...
Yesterday everything was fine (and I could work offline with apache/php) and today only html pages show up; as soon as I call a php page the dial up window shows up...

<Update:> Actually now that I'm only I can confirm your statement, the php pages do work now... But I swear, yesterday I was offline when I was working on them...

What's the problem here?

<Update2:> I actually *doesn't* work... Strange enough, my offline site is linking every php page to some online copy of the site.... although there is definityl NO reference!
Well, it looks like there's not too many server technicians here? Any recommendation on a forum the same quality as WW? :-)

[edited by: waldemar at 11:52 am (utc) on July 16, 2003]

mattur

11:51 am on Jul 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could it be that your internet connection is set to always go through a (remote) proxy? ISTR having a similar problem some time ago, and there was some way of excluding local requests from going through the proxy. Hope this isn't too vague... :)

waldemar

11:55 am on Jul 16, 2003 (gmt 0)

10+ Year Member



Thanks mattur,
no proxy set up anywhere...

ukgimp

12:05 pm on Jul 16, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



www.firepage.com.au

It just does it for you.

htt*p://localhost

does hte trick.

Use the stable version.

waldemar

1:15 pm on Jul 16, 2003 (gmt 0)

10+ Year Member



Thanks everybody!

I believe I found it... (expeting my usual false-alarm post-update :-) )

Internet Explorer was set to "Use dial up when needed".

It seems the php pages take a little longer to load than pure html pages...
Theorey: They seem to take so long that IE thinks the page is not available and therefor tries to connect to the internet.
By completely disabling the Dial Up in the Connection settings, everything works as expected (so far).

ukgimp: Couldn't connect to www.firepage.com.au ...?

Receptional Andy

1:20 pm on Jul 16, 2003 (gmt 0)



>>Couldn't connect to www.firepage.com.au

Should be www.firepages.com.au I think.

waldemar

1:25 pm on Jul 16, 2003 (gmt 0)

10+ Year Member



Ah, I see...
Well I tried phptriad - same thing I guess...