This is a discussion on Win2k/Apache/PHP - cant serve a page to the internet - can to localhost though within the Windows Web Servers forums, part of the Web Server and Related Forums category; Hi, I want to be able to serve a web page over the internet using Apache & PHP. So far, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I want to be able to serve a web page over the internet using Apache & PHP. So far, I can only serve locally.. not to another machine on the net. I have just set up Apache & PHP on my Win2K. [Be warned, I am new to this stuff, so sorry for poor understanding of concepts.. I will try & give as much detail as possible.] I set up a test php file which has in it the phpinfo() command. This page loads nicely from my browser using address of http://localhost:8080/test.php or http://218.101.47.206:8080/test.php (ip changes of course whenever I refresh my connection to the internet). By the way, I know the 8080 stuff is unusual... but I couldn't get Apache to bind to port 80... that is another story though. Foe the time being, I will use 8080 instead. From the above I assume that I have installed Apache & PHP ok. Now, if I try going to another machine on the net, my page will not load using address of http://218.101.47.206:8080/test.php ... just get page not found. I do run Zone Alarm... but it doesn't mention anything in its log about rejecting any incoming traffic for 218.101.47.206:8080 .. so I am assuming that it is not blocking anything here. [plenty of other guff reported as blocked though]. Other hints : ============= The config for Apache has the folloing parameters set up : Listen 218.101.47.206:8080 ServerName 218.101.47.206:8080 (tried a few variations above, including listen set to just 8080, no ip) I ran a utility called NetStat that says that Apache is monitoring port 8080.. that seemed good to me. Any ideas out there ? Many thanks for any help received.. I am keen to get to the bottom of this. Bruce. |
|
|||
|
bruce.forbes@paradise.net.nz (Bruce) wrote in message news:<c872bd82.0409122100.19c9cc38@posting.google. com>...
> Hi, > > I want to be able to serve a web page over the internet using Apache & > PHP. So far, I can only serve locally.. not to another machine on the > net. > > I have just set up Apache & PHP on my Win2K. [Be warned, I am new to > this stuff, so sorry for poor understanding of concepts.. I will try & > give as much detail as possible.] > > I set up a test php file which has in it the phpinfo() command. This > page loads nicely from my browser using address of > http://localhost:8080/test.php > or http://218.101.47.206:8080/test.php (ip changes of course whenever > I refresh my connection to the internet). By the way, I know the 8080 > stuff is unusual... but I couldn't get Apache to bind to port 80... > that is another story though. Foe the time being, I will use 8080 > instead. > > From the above I assume that I have installed Apache & PHP ok. Now, if > I try going to another machine on the net, my page will not load using > address of > http://218.101.47.206:8080/test.php ... just get page not found. > > I do run Zone Alarm... but it doesn't mention anything in its log > about rejecting any incoming traffic for 218.101.47.206:8080 .. so I > am assuming that it is not blocking anything here. [plenty of other > guff reported as blocked though]. > > Other hints : > ============= > The config for Apache has the folloing parameters set up : > Listen 218.101.47.206:8080 > ServerName 218.101.47.206:8080 > (tried a few variations above, including listen set to just 8080, no > ip) > > I ran a utility called NetStat that says that Apache is monitoring > port 8080.. that seemed good to me. > > Any ideas out there ? > > Many thanks for any help received.. I am keen to get to the bottom of > this. > > Bruce. Hi One reason that you can't make Apache run on port 80, might be due to the fact that you also have IIS installed. Goto control panel/Admin tools/Services, and make sure that "world Wide web..." (at the bottom of the list) is stopped, then Apache should be able to run like a charme on port 80 ;-) Then change the Listen directive to 80 Change the Servername to <someting nice>:80 If the above don't work, more information is needed Hope it helps Best Steen |
|
|||
|
srabol@mail.tele.dk (Steen Rab?l) wrote in message news:<7cb6b6d7.0409140101.4e10ff5b@posting.google. com>...
> bruce.forbes@paradise.net.nz (Bruce) wrote in message news:<c872bd82.0409122100.19c9cc38@posting.google. com>... > > Hi, > > > > I want to be able to serve a web page over the internet using Apache & > > PHP. So far, I can only serve locally.. not to another machine on the > > net. > > > > I have just set up Apache & PHP on my Win2K. [Be warned, I am new to > > this stuff, so sorry for poor understanding of concepts.. I will try & > > give as much detail as possible.] > > > > I set up a test php file which has in it the phpinfo() command. This > > page loads nicely from my browser using address of > > http://localhost:8080/test.php > > or http://218.101.47.206:8080/test.php (ip changes of course whenever > > I refresh my connection to the internet). By the way, I know the 8080 > > stuff is unusual... but I couldn't get Apache to bind to port 80... > > that is another story though. Foe the time being, I will use 8080 > > instead. > > > > From the above I assume that I have installed Apache & PHP ok. Now, if > > I try going to another machine on the net, my page will not load using > > address of > > http://218.101.47.206:8080/test.php ... just get page not found. > > > > I do run Zone Alarm... but it doesn't mention anything in its log > > about rejecting any incoming traffic for 218.101.47.206:8080 .. so I > > am assuming that it is not blocking anything here. [plenty of other > > guff reported as blocked though]. > > > > Other hints : > > ============= > > The config for Apache has the folloing parameters set up : > > Listen 218.101.47.206:8080 > > ServerName 218.101.47.206:8080 > > (tried a few variations above, including listen set to just 8080, no > > ip) > > > > I ran a utility called NetStat that says that Apache is monitoring > > port 8080.. that seemed good to me. > > > > Any ideas out there ? > > > > Many thanks for any help received.. I am keen to get to the bottom of > > this. > > > > Bruce. > > > Hi > > One reason that you can't make Apache run on port 80, might be due to > the fact that you also have IIS installed. Goto control panel/Admin > tools/Services, and make sure that "world Wide web..." (at the bottom > of the list) is stopped, then Apache should be able to run like a > charme on port 80 ;-) > > Then change the Listen directive to 80 > Change the Servername to <someting nice>:80 > > If the above don't work, more information is needed > > Hope it helps > > Best > Steen Thanks very much for the reply Steen.. really appreciated. IIS was definitely uninstalled before install of Apache. Also no www service in the list. My machine *seems* to be listening on port 8080...with no block from Zonealarm. I went to one of those leak test sites (or firewall testers).... & had it try my machine. It reported that 8080 was open. Also ZoneAlarm log showed the rejections to that sites atttempts to get in via other ports.. no mention of blocking 8080 so I guess is good. It would seem that my ISP isn't blocking anything. However, it is still the case that any attempt to come in via browser from another pc on the net is a no go. I looked at the Apache log (access.log) ... no mention of any activity apart local stuff... ie. serving a page on the same machine. Nothing found in the Apache error log. Any more hints or ideas ? thanks, Bruce |
|
|||
|
bruce.forbes@paradise.net.nz (Bruce) wrote in message news:<c872bd82.0409141257.72a653a@posting.google.c om>...
> srabol@mail.tele.dk (Steen Rab?l) wrote in message news:<7cb6b6d7.0409140101.4e10ff5b@posting.google. com>... > > bruce.forbes@paradise.net.nz (Bruce) wrote in message news:<c872bd82.0409122100.19c9cc38@posting.google. com>... > > > Hi, > > > > > > I want to be able to serve a web page over the internet using Apache & > > > PHP. So far, I can only serve locally.. not to another machine on the > > > net. > > > > > > I have just set up Apache & PHP on my Win2K. [Be warned, I am new to > > > this stuff, so sorry for poor understanding of concepts.. I will try & > > > give as much detail as possible.] > > > > > > I set up a test php file which has in it the phpinfo() command. This > > > page loads nicely from my browser using address of > > > http://localhost:8080/test.php > > > or http://218.101.47.206:8080/test.php (ip changes of course whenever > > > I refresh my connection to the internet). By the way, I know the 8080 > > > stuff is unusual... but I couldn't get Apache to bind to port 80... > > > that is another story though. Foe the time being, I will use 8080 > > > instead. > > > > > > From the above I assume that I have installed Apache & PHP ok. Now, if > > > I try going to another machine on the net, my page will not load using > > > address of > > > http://218.101.47.206:8080/test.php ... just get page not found. > > > > > > I do run Zone Alarm... but it doesn't mention anything in its log > > > about rejecting any incoming traffic for 218.101.47.206:8080 .. so I > > > am assuming that it is not blocking anything here. [plenty of other > > > guff reported as blocked though]. > > > > > > Other hints : > > > ============= > > > The config for Apache has the folloing parameters set up : > > > Listen 218.101.47.206:8080 > > > ServerName 218.101.47.206:8080 > > > (tried a few variations above, including listen set to just 8080, no > > > ip) > > > > > > I ran a utility called NetStat that says that Apache is monitoring > > > port 8080.. that seemed good to me. > > > > > > Any ideas out there ? > > > > > > Many thanks for any help received.. I am keen to get to the bottom of > > > this. > > > > > > Bruce. > > > > > > Hi > > > > One reason that you can't make Apache run on port 80, might be due to > > the fact that you also have IIS installed. Goto control panel/Admin > > tools/Services, and make sure that "world Wide web..." (at the bottom > > of the list) is stopped, then Apache should be able to run like a > > charme on port 80 ;-) > > > > Then change the Listen directive to 80 > > Change the Servername to <someting nice>:80 > > > > If the above don't work, more information is needed > > > > Hope it helps > > > > Best > > Steen > > Thanks very much for the reply Steen.. really appreciated. > > IIS was definitely uninstalled before install of Apache. Also no www > service in the list. > > My machine *seems* to be listening on port 8080...with no block from > Zonealarm. I went to one of those leak test sites (or firewall > testers).... & had it try my machine. It reported that 8080 was open. > Also ZoneAlarm log showed the rejections to that sites atttempts to > get in via other ports.. no mention of blocking 8080 so I guess is > good. It would seem that my ISP isn't blocking anything. > > However, it is still the case that any attempt to come in via browser > from another pc on the net is a no go. I looked at the Apache log > (access.log) ... no mention of any activity apart local stuff... ie. > serving a page on the same machine. Nothing found in the Apache error > log. > > Any more hints or ideas ? > > thanks, > Bruce It is now all fixed.... after many hours of total frustration. The whole problem was based on the initial install of Apache... and the fact that Apache couldn't bind properly to port 80. As mentioned above, I just went on and got Apache to bind / listen to port 8080 instead.... but I could never serve a web page. In the end, I went back & looked into why port 80 couldn't be used & using Netstat found that an app on my machine called Kontiki was listening to port 80.. but for ip 0.0.0.0 (or some similar ip... ie. not *my* ip). Anyway, knocked that thing on the head, and changed Apache config to listen to port 80.. and bingo, I was serving a web page to the internet. General Learning notes through this : (1) contrary to many other postings, ZoneAlarm does not cause a problem / get in the way of serving a web page from Apache (2) I don't know why that I couldn't serve a page via port 8080.. this is a puzzle (3) If you have a problem getting Apache to install because it was unable to bind to port 80.. get to the bottom of this. Use a utility to find out exactly what is listening to port 80, even if the ip is not your current ip as found using ipconfig command, but some general one like 0.0.0... (4) My http.conf file for appache had the following important settings : Listen 218.101.47.198:80 ServerName 218.101.47.198:80 (obviously use your ip above & append :80 to it). Bruce |