Bluehost.com Web Hosting $6.95

Win2k/Apache/PHP - cant serve a page to the internet - can to localhost though

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, ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-13-2004
Bruce
 
Posts: n/a
Default Win2k/Apache/PHP - cant serve a page to the internet - can to localhost though

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.
  #2 (permalink)  
Old 09-14-2004
Steen Rab?l
 
Posts: n/a
Default Re: Win2k/Apache/PHP - cant serve a page to the internet - can to localhost though

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
  #3 (permalink)  
Old 09-14-2004
Bruce
 
Posts: n/a
Default Re: Win2k/Apache/PHP - cant serve a page to the internet - can to localhost though

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
  #4 (permalink)  
Old 09-15-2004
Bruce
 
Posts: n/a
Default Re: Win2k/Apache/PHP - cant serve a page to the internet - can to localhost though

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
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 11:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0