please help - http server, php, localhost

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
newmember
Forum Contributor
Posts: 252
Joined: Fri Apr 02, 2004 12:36 pm

please help - http server, php, localhost

Post by newmember »

i want to make my webpage and among many other things i started to learn php
i'm looking for some simple way to test/run my php files on my computer

until now i installed apache http server and also php runtime
i "think" i configured everything properly...
i'm triyng to connect to my apache server like this:
http:\\127.0.01\~user1
but nothing happens

so to sum things up after 5 hours i'm pretty tired from configuring this apache server: everything must be done manually and there is so many different options :?

basicly what i want is to be able to put my website localy on my computer and test it

thanks
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

ltry losing the ~user1 also try doing http://localhost what OS are you on?
User avatar
newmember
Forum Contributor
Posts: 252
Joined: Fri Apr 02, 2004 12:36 pm

Post by newmember »

i'm on winxp pro

and i did tried many variants like you suggest it doesn't work
there is a UserDir setting in httpd.txt (configuration file for apache)
maybe i didn't set it right
but anyway i should see some responce from the server :cry:
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

ahh - you don't want httpd.txt - you want httpd.conf - find that file and do the settings there or just copy over from httpd.txr
User avatar
newmember
Forum Contributor
Posts: 252
Joined: Fri Apr 02, 2004 12:36 pm

Post by newmember »

i'm sorry i meant httpd.conf
i don't know why i wrote httpd.txt
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

oh crap i was hoping that was it! now when you say nothing happens, what exactly do you mean?
User avatar
newmember
Forum Contributor
Posts: 252
Joined: Fri Apr 02, 2004 12:36 pm

Post by newmember »

i mean that i should see in the logs that there was a conection attempt
like i can see for example if i ran ftp server
User avatar
newmember
Forum Contributor
Posts: 252
Joined: Fri Apr 02, 2004 12:36 pm

Post by newmember »

well now i know that the problem is with settings
because if i write like this i reach the server
http://127.0.0.1:8080

so i will check the settings

thanks
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

But what does IE say?
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

Did you start apache? Dumb question however...

edit: sorry didnt read it all, just change the Listen 8080 to Listen 80.

( some isp may of block that port tho.. ifso .. 8080 will have to do )
Last edited by ol4pr0 on Fri Apr 02, 2004 3:16 pm, edited 1 time in total.
magicrobotmonkey
Forum Regular
Posts: 888
Joined: Sun Mar 21, 2004 1:09 pm
Location: Cambridge, MA

Post by magicrobotmonkey »

yea youre set up to see port 8080 instead of 80 - that's wierd if you didn't do it i dont know why it would be like that
Pozor
Forum Commoner
Posts: 74
Joined: Tue Mar 30, 2004 11:11 pm
Location: Switzerland

Post by Pozor »

Hallo,

I tried to install apache with php and mysql too (all installs separate).

I found a really easy way to install them!

try this 10 Min and your server is running with apache,php,mysql

http://sourceforge.net/project/showfile ... e_id=29748

there you find all the releases!

take 2.3.0 for a stable version, the new one (only 8MB), im not sure, is still beta release...

at the moment i cant reach the page of appserv... -> take 2.3.0 it a good release (i use it) :D


greez Pozor
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

ya, some ppl like installing them seperately.. just to get the experience :P
User avatar
newmember
Forum Contributor
Posts: 252
Joined: Fri Apr 02, 2004 12:36 pm

Post by newmember »

Thanks Pozor
i will give it a try
Post Reply