Jump to content

Recommended Posts

Hello

 

I have a linux web server running an intranet page on our LAN, we have just opened a new office which is connected by an IPSEC VPN.

 

From the new office I can only view HTML and not PHP pages.

 

Could anyone point me in the right direction?

 

Many thanks

 

Andy

Link to comment
https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/
Share on other sites

Are you running php as cgi with php only enabled within a certain directory? Is this directory allowed to be accessed by ip addresses outside your lan?

 

Your problem does not seem logically possible, but that is the obly thing I can think of. Even then, I'm sure you are assigned a local (lan ip) when accessing through vpn.

Errors in /var/log/apache2/error.log

 

[Wed Jan 06 11:13:52 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  id in /var/www/index.php on line 7

[Wed Jan 06 11:13:52 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  id4 in /var/www/zenith/include/show-telephone-list.php on line 4

[Wed Jan 06 11:13:52 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  sort in /var/www/zenith/include/show-telephone-list.php on line 6

[Wed Jan 06 11:13:52 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  page in /var/www/zenith/include/show-news.php on line 29

[Wed Jan 06 11:16:01 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  id in /var/www/index.php on line 7

[Wed Jan 06 11:16:01 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  id4 in /var/www/zenith/include/show-telephone-list.php on line 4

[Wed Jan 06 11:16:01 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  sort in /var/www/zenith/include/show-telephone-list.php on line 6

[Wed Jan 06 11:16:01 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  page in /var/www/zenith/include/show-news.php on line 29

 

 

No errors in /var/log/syslog

 

(Error from remote office on IE)

 

The following error was encountered:

 

Read Timeout

The system returned:

 

[No Error]

 

 

 

These are the only error messages im seeing and it is only when connecting from remote site

 

server range 172.26.0.0

remote site 172.24.0..0

 

root@intranet:/var/log/apache2$ cat error.log

 

[Wed Jan 06 11:40:24 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  id in /var/www/index.php on line 7

[Wed Jan 06 11:40:24 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  id4 in /var/www/zenith/include/show-telephone-list.php on line 4

[Wed Jan 06 11:40:24 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  sort in /var/www/zenith/include/show-telephone-list.php on line 6

[Wed Jan 06 11:40:24 2010] [error] [client 172.24.0.18] PHP Notice:  Undefined index:  page in /var/www/zenith/include/show-news.php on line 29

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.