Discussion:
[PHP-INSTALL] PHP pages not working externally
cameron edwards
2009-09-17 22:30:04 UTC
Permalink
I have setup PHP Version 5.2.6 with Apache2 on a Ubuntu 9.04 Server. Simple
php scripts are working fine but others simply just hang in the browser. A
script with a print statement http://83.244.227.165/test.php works fine but
if i try and do phpinfo http://83.244.227.165/test2.php it will not work.

However, both examples work fine from the machine locally or from any
computer inside the LAN.

any help would be appreciated!!
Jack van Zanen
2009-09-17 22:50:37 UTC
Permalink
they both appear to hang for me. Firewall issue?

Jack
Post by cameron edwards
I have setup PHP Version 5.2.6 with Apache2 on a Ubuntu 9.04 Server. Simple
php scripts are working fine but others simply just hang in the browser. A
script with a print statement http://83.244.227.165/test.php works fine
but if i try and do phpinfo http://83.244.227.165/test2.php it will not
work.
However, both examples work fine from the machine locally or from any
computer inside the LAN.
any help would be appreciated!!
--
Jack van Zanen

-------------------------
This e-mail and any attachments may contain confidential material for the
sole use of the intended recipient. If you are not the intended recipient,
please be aware that any disclosure, copying, distribution or use of this
e-mail or any attachment is prohibited. If you have received this e-mail in
error, please contact the sender and delete all copies.
Thank you for your cooperation
Cameron Edwards
2009-09-17 23:20:53 UTC
Permalink
http://83.244.227.165:8000/test.php is the print that is working externally
for me?



Alternatively, a static html page can be seen here:
http://83.244.227.165:8000/ so i dont believe it to be firewall related.







From: ***@gmail.com [mailto:***@gmail.com] On Behalf
Of Jack van Zanen
Sent: 17 September 2009 23:51
To: cameron edwards
Cc: php-***@lists.php.net
Subject: Re: [PHP-INSTALL] PHP pages not working externally



they both appear to hang for me. Firewall issue?



Jack

2009/9/18 cameron edwards <***@cbedwards.com>

I have setup PHP Version 5.2.6 with Apache2 on a Ubuntu 9.04 Server. Simple
php scripts are working fine but others simply just hang in the browser. A
script with a print statement http://83.244.227.165/test.php works fine but
if i try and do phpinfo http://83.244.227.165/test2.php it will not work.

However, both examples work fine from the machine locally or from any
computer inside the LAN.

any help would be appreciated!!
--
Jack van Zanen

-------------------------
This e-mail and any attachments may contain confidential material for the
sole use of the intended recipient. If you are not the intended recipient,
please be aware that any disclosure, copying, distribution or use of this
e-mail or any attachment is prohibited. If you have received this e-mail in
error, please contact the sender and delete all copies.
Thank you for your cooperation
Keith Roberts
2009-09-18 11:55:36 UTC
Permalink
Subject: RE: [PHP-INSTALL] PHP pages not working externally
http://83.244.227.165:8000/test.php is the print that is
working externally for me?
http://83.244.227.165:8000/ so i dont believe it to be
firewall related.
They work for me as well. On port 8000 OK.

Why are you running apache on port 8000?

All web browsers default to using port 80 for http requests.

Are you running more than one instance of Apache?

Firewall rules can be set for each individual port. Because
your firewall allows http connections on port 8000, doesn't
necessarily mean that you can connect OK on port 80.

Please make sure your apache is listening on port 80, and
that port 80 is not blocked by your firewall.

You can check which ports are open to others by going to
http://www.grc.com and click on:

Services > ShieldsUp

You can then get an outsiders view of which ports are open
to the internet.

HTH

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
cameron edwards
2009-09-18 13:08:49 UTC
Permalink
Hi there, port 80 feeds an internal only website...

Apache is running 2 virtual hosts. one off port 80 and the other off port
8000.

Simple php scripts work fine but others, dont work at all.

ie, http://83.244.227.165:8000/test.php works fine externally but
http://83.244.227.165:8000/test2.php (phpinfo page) does not work externally
yet both work fine inside the lan.
Post by Keith Roberts
Subject: RE: [PHP-INSTALL] PHP pages not working externally
http://83.244.227.165:8000/test.php is the print that is working
externally for me?
http://83.244.227.165:8000/ so i dont believe it to be firewall related.
They work for me as well. On port 8000 OK.
Why are you running apache on port 8000?
All web browsers default to using port 80 for http requests.
Are you running more than one instance of Apache?
Firewall rules can be set for each individual port. Because your firewall
allows http connections on port 8000, doesn't necessarily mean that you
can connect OK on port 80.
Please make sure your apache is listening on port 80, and that port 80 is
not blocked by your firewall.
You can check which ports are open to others by going to
Services > ShieldsUp
You can then get an outsiders view of which ports are open to the
internet.
HTH
Keith Roberts
-----------------------------------------------------------------
http://www.php-debuggers.net
http://www.karsites.net
http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
Keith Roberts
2009-09-19 07:42:00 UTC
Permalink
Post by Cameron Edwards
Subject: Re: [PHP-INSTALL] PHP pages not working externally
Hi there, port 80 feeds an internal only website...
Apache is running 2 virtual hosts. one off port 80 and the other off port
8000.
Simple php scripts work fine but others, dont work at all.
ie, http://83.244.227.165:8000/test.php works fine externally
Works for me OK too.
Post by Cameron Edwards
http://83.244.227.165:8000/test2.php (phpinfo page) does not work
externally yet both work fine inside the lan.
Does not work for me either.

Check your apache logs to see what the error message is for
the virtual host on port 8000.

Also check your php error log. You are logging PHP errors to
a log file?

It sounds like a configuration issue of some sort, the
firewall seems to be passing packets on port 800 OK.

Kind Regards,

Keith Roberts

Continue reading on narkive:
Loading...