Page 1 of 1

Using Apache to run PHP scripts over an intranet

Posted: Sun Feb 11, 2007 1:18 pm
by mjseaden
Hi,

This is a separate question, so I have put it in another thread.

I'm trying to access my PHP scripts over an intranet. I have Apache installed on a Windows machine, which is connected to a LAN with a standard wireless router.

My IP is the usual private network 192.168.1.X. I'm trying to access my web site internally from another computer on the same LAN.

I've tried amending my 'ServerName' directive in httpd.conf to my IP address instead of localhost, which I've read using ipconfig, however, I'm still not able to access my website over the LAN. I've also tried changing my 'Listen' directive so that it is listening for specific IPs, instead of simply port 80 requests, however this doesn't work either.

Has anyone else got their PHP websites working over a LAN using Apache?

Many thanks.

Posted: Sun Feb 11, 2007 2:43 pm
by feyd
Connect to the IP address of the server is typically all that is required.

Posted: Sun Feb 11, 2007 3:30 pm
by mjseaden
Got it - my McAfee firewall was showing access events from the other computer's IP address in green, but was still actually blocking them. I've got it working by allowing traffic from the IP address. Don't know why McAfee shows them in green!