View Full Version : Apache
1cmptergk
10-04-2007, 03:38 PM
Ok...Heres the situation...
I have a pc setup with apache, I can access the site from the host machine, but not any of the other computers on my network. I have tried restarting my router and my switch, changing the IP of the computer, neither of which helped. The host can access the internet and I can ping the it from the other computers on the network but I cannot access the site from any other computers...Any suggestions / help???
Limp_Trizkit
10-04-2007, 03:45 PM
Check to ensure any firewalls on the machine are not preventing Apache from serving your site out.
If it's a *nix box, you need to also double-check that Apache is bound to the correct port on the correct network device on the machine; if it's only bound to lo, you're going to have access issues since lo is loopback.
1cmptergk
10-04-2007, 03:56 PM
Check to ensure any firewalls on the machine are not preventing Apache from serving your site out.
If it's a *nix box, you need to also double-check that Apache is bound to the correct port on the correct network device on the machine; if it's only bound to lo, you're going to have access issues since lo is loopback.
Sorry, I forgot to mention in my 1st post that I had disabled both firewalls (zone alarm and windows)...and that it is a windows XP machine...
Add it to your hosts file.
brian_holiday
10-05-2007, 08:07 AM
Are you launching an HTML document as a file, or by IP?.
Basically what I am asking is, does the url in the browser bar look like this?
http://XXX.XXX.XXX.XXX/ (where the X's are the apache servers IP address)
You don't need a DNS entry or the host file entry if you use the IP.
1cmptergk
10-06-2007, 09:58 AM
Are you launching an HTML document as a file, or by IP?.
Basically what I am asking is, does the url in the browser bar look like this?
http://XXX.XXX.XXX.XXX/ (where the X's are the apache servers IP address)
You don't need a DNS entry or the host file entry if you use the IP.
I am accessing the page from http://192.168.0.111, I can also access it via http://localhost, but only from the host machine...
brian_holiday
10-06-2007, 11:11 AM
Ok, looks like the port is open. Is the Linux (Unix) or Windows?
Limp_Trizkit
10-06-2007, 04:58 PM
Ok, looks like the port is open. Is the Linux (Unix) or Windows?Sorry, I forgot to mention in my 1st post that I had disabled both firewalls (zone alarm and windows)...and that it is a windows XP machine...Windows machine.
Apache's a downright pain when you set it up, but once it's set it's a breeze. So don't fret if it takes a while for us to stumble upon a solution that works.
Anyway, my next suggestion is to check the configuration and make sure that your configuration (http://httpd.apache.org/docs/2.2/platform/windows.html#test) is set up in such a way that the service is provided to external hosts.
brian_holiday
10-06-2007, 05:39 PM
Dang, missed it! :p
Yoshi
10-07-2007, 10:57 PM
What distro of linux did you set up your apache server with?
Is it a basic LAMP install box?
Durrr just read post again.... you have apache installed on windows....
Sorry I have only ever set it up on Linux. If you want it to be the most stable. I'd bite the bullet and setup a proper Linux server.
Last one I setup has been running for 7 months without restart or any gliches :)
Slider2732
10-19-2007, 01:28 PM
I have a similar problem, first stab at this, so this thread now has two head scratchers.
I can run PortableWebServer, running Apache, from a Windows PC and access using the same methods as our original poster. But I can't get any page to access even in my home network, never mind from an internet webpage (using the IP address).
Am going down the router route myself and maybe that's the issue ?
I have several machines all running off the router (and Vonage). I know that Port Forwarding etc is important and that in my case, things have to be routed to that PC only (extension xx.xxx.xxx.105, whereas this PC i'm typing on is xx.xxx.xxx.102). But it looks like several days worth of reading and experimenting to get to know what ports a webpage sends data to.
HTTP would be the obvious, enable that and to a port range...but then I start getting befuddled.
All I guess we need to know is how to access pages served by our Windows/Apache servers from another computer, off-site.
Hope I have your problem correct 1cmptergk :)
Limp_Trizkit
10-19-2007, 01:59 PM
Port forwarding settings on the router are a non-issue for local-to-local attempts to access the Apache server. So if you get it working on your local network, port forwarding will enable global.
One thing I would suggest both of you trying that I just remembered is to double-check your httpd.conf configuration file and making sure it's listening globally. If you see anything that says "Allow from Localhost" or "Allow from 127.0.0.1", change it to "Allow from All" and restart the daemon (or more preferably, the computer you're using the daemon on).
Slider2732
10-19-2007, 02:03 PM
I see...
So, because all the home PC's somewhat don't care that outside the house there is a whole world, they'll talk to each other ?
I'm looking at DMZ for the host machine now...simply to see if anything port related is blocking attempts to access.
Slider2732
10-19-2007, 02:09 PM
And the result of DMZ is SUCCESS !
Basic overview:
I wish to control LED's etc through the parallel port from the internet.
I know the host PC is exposed to anything and everything at the moment, but, typing my IP and then the control.php script for running the LED's resulted in the other PC's harddrive making a noise and the control program appearing on this PC :)
I then set the data bit for on and the LED on the other computer lit, set it to off and it went out.
Such things may be simple to some, but it just made my day !
Limp_Trizkit
10-19-2007, 02:34 PM
I see...
So, because all the home PC's somewhat don't care that outside the house there is a whole world, they'll talk to each other ?
I'm looking at DMZ for the host machine now...simply to see if anything port related is blocking attempts to access.What the "Allow from _____" configuration statement does is define what IP addresses/ports Apache will listen to connections from/on. When it's set to "Allow from localhost", the only machine it doesn't turn traffic down from is, well, itself.
And I'm glad to hear you got things working. Have fun with your blinking lights (http://www.eeggs.com/items/48674.html).
Slider2732
10-19-2007, 05:16 PM
LOL...not quite so many as in that webpage!
Gimme a couple of days though ;)
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.