Forum Moderators: coopster

Message Too Old, No Replies

Localhost directory

Help please

         

rokec

3:08 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



Where is localhost on default? And where you change that?

alfaguru

3:17 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



localhost is not a directory, it's the standard host name for the IP address 127.0.0.1, which is also known as the loopback address. It means the current device. What's this have to do with PHP, by the way?

rokec

3:28 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



Look, first think about that what i'm asking. If you write 127.0.0.1 to your browser bar on "not changed" comp, files from which directory will show up?

jatar_k

3:46 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



>> on a not changed comp

with no changes, so no apache, it refuses the connection

with my apache running on my local machine it says / is not found

what does it do on your machine?

a quick google search on loopback address [google.com] turns this up
[en.wikipedia.org...]

cmarshall

3:51 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is completely dependent upon how your machine is set up.

On a Mac, with the standard Apache, you get the "filler" page, unless, like me, you have set up the main Webserver directory to be a site.

On some machines, it just croaks without even a 404.

In MySQL, it is the default server address, preventing people from outside the machine from accessing the directory.

It all depends on your setup.

rokec

3:55 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



The machine is running just Windows XP without any changes...

What about other servers (not Apache)? Can i change this quickly?

benevolent001

4:06 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you are having IIS , just google change IIS root

You will get what you need

[edited by: benevolent001 at 4:08 pm (utc) on Jan. 4, 2007]

jatar_k

4:07 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



what about this search [google.com]

you could consult the docs for any webserver software to see how it can be configured

rokec

4:27 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



Isn't it that every computer with win XP is running IIS?

benevolent001

4:28 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



nope , IIS you have to buy separately , doesnt comes preinstalled

rokec

4:47 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



How can i set up localhost on a machine (without any instalation)?

jatar_k

5:30 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



without installation?

you can't

with installation
[webmasterworld.com...]

rokec

6:05 pm on Jan 4, 2007 (gmt 0)

10+ Year Member



I mean - just with copying files... With no additional inst program.

encyclo

6:12 pm on Jan 4, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I mean - just with copying files... With no additional inst program.

As mentioned above - you can't.