Page 1 of 1

can't find localhost problem

PostPosted: 03. April 2005 16:01
by doobie
I downloaded xampp and I tried a test php script .ie hello world and put it in the htdocs directory and still no go. I get an error saying connection was refused when attempting to local host.

Has anyone had any problems with this? I have been trying everything and am just about ready to give up.

I purchased Larry Ullman's book PHP and MySQL for dynamic web sites and cannot even start the book because of so many problems I was having getting mysql to run.

I shut down my firewall as well thinking this would work. I do have a router, but I can't see this being the problem as well.

Can someone please provide me with somr steps as to getting going or tips as to what I may be doing wrong?

Thanks you,

Doobie

PostPosted: 04. April 2005 16:47
by prathapml
This is not a XAMPP issue at all.

First, have you started the Apache at all?
And have you allowed incoming connections for relevant ports on your firewall?

And to help you along this route, we first need to know your own reading of the situation. What exactly do you already know - are you a beginner or intermediate?

PostPosted: 04. April 2005 22:43
by doobie
I am a beginner. I thought it was an apache problem. so that is why I posted the problem I was getting.

Thanks

PostPosted: 04. April 2005 23:40
by Wiedmann
I downloaded xampp and I tried a test php script .ie hello world and put it in the htdocs directory and still no go. I get an error saying connection was refused when attempting to local host.

Can you access http://localhost/ and see the testpage?

PostPosted: 05. April 2005 03:49
by keepsedge
lol,

i have the same book bro.

Okay your not going to be able to acess localhost untill you start the server. Go to start > programs > apachefriends > xampp > xampp_start

this will open a dos windowm and your default browser.
DO NOT CLOSE THE DOS WINDOW

next, in the web browser, type http://localhost,
or
http://127.0.0.1

put your script in a sub directory in the ttpddocs foler. so the url would be:
http://localhost/testing/helo_world_script.php

that should get you started.

</keeper>

O and im new to this too. i started learning php last month.

PostPosted: 06. April 2005 00:31
by thekingofcaseys
Also if your using a firewall make sure port 80 and 3306 are open, after installing apachefriends you should be able to see the XAMPP directory so dont try any other pages until you can see this one

PostPosted: 13. April 2005 18:58
by devellion
Hello,

I can't get it to work either. Apache & MySQL are both running. I have anabled ports 80 and 3306 and still no joy.

I nave a netgear wireless router... Do you think the firewall on that has anything to do with it?