Using Apache to run PHP scripts over an intranet

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Using Apache to run PHP scripts over an intranet

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Connect to the IP address of the server is typically all that is required.
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post 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!
Post Reply