Page 1 of 1

testing scripts

Posted: Fri Mar 11, 2005 2:20 pm
by ratamaster
Hi you there
I'm developing with a partner a php site, but before to upload the content to the web, we want to test it like a intranet, I mean he use his computer to conect to mine wich has installed apache+mysql + the site's script, and test the site as a user.
We tried somethig like: http://my ip/my site but it didn't work, shuld I change some apache configuration?

thanks
ratamaster

Posted: Fri Mar 11, 2005 2:24 pm
by feyd
does browsing to your ip show something? Have you set your "my site" as a directory alias or is it correctly under the document root? Is php installed correctly? Can you run phpinfo() in a script?

What isn't working?


Moved to Servers.

Posted: Fri Mar 11, 2005 2:44 pm
by ratamaster
"does browsing to your ip show something?"
nothing at all

"Have you set your "my site" as a directory alias or is it correctly under the document root?"

is it correctly where I host the php files

s php installed correctly?
yes, it works when I test the script using http://localhost/mysite
but when I try to use other computer (a local netwotk) to see the site, it dosen“t work, I mean, the browser shows empty, I put : http:xxxxxxx/mysite, where xxxxxxx is my computer IP
So I want to test the scripts in other computer, but I can't, how can I do this

thanks

Posted: Fri Mar 11, 2005 3:07 pm
by feyd
does you machine have a firewall running on it? Does apache have "deny from" set in the directory's settings?

Posted: Fri Mar 11, 2005 3:19 pm
by infolock
along with what feyd said, there are a number of things you need to check (and yeah i'll include what feyd suggested as well)

1) If your pc is behind a firewall, you are gonna have to setup a pinhole or some other method for outside packets to be forwarded to your pc. this method varies from router to router...

2) If you are using windows XP, you need to check your Firewall settings on XP. It blocks any/all incoming packets and connections just about it, so unless you turn off the firewall (or enable ports 80 and whatnot) you aren't gonna be able to connect to it. (had a similiar problem with this when my VPN stopped responding after installing SP2).

3) You need to test out any kind of connection by just typing http://xxx.xxx.xxx.xxx (x being your ip). see if you see the welcome message from apache.

4) other than that, those are the only things (along with the deny that feyd asked about but unless you manually configured apache i dont'[ think that's gonna be a problem) that i can think of...

if all else fails, uninstall and reinstall. that may sound like the dumbest thing in the world, but if you want to save yourself hours of research, usually a fresh install could probably shine some light on something you may have missed/messed up when you configured apache to begin with...