jibadee Posted January 6, 2010 Share Posted January 6, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/ Share on other sites More sharing options...
trq Posted January 6, 2010 Share Posted January 6, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989593 Share on other sites More sharing options...
salathe Posted January 6, 2010 Share Posted January 6, 2010 Define "cannot view": are there any errors reported and/or logged, does nothing at all happen, is your server noticing the requests and sending a response, etc.? Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989604 Share on other sites More sharing options...
jibadee Posted January 6, 2010 Author Share Posted January 6, 2010 Its very strange I am running Xampp on my workstation as a test and it is working perfectly from the remote site. is the php.ini the same on every OS? I might try copying it from my Xampp install. Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989605 Share on other sites More sharing options...
jibadee Posted January 6, 2010 Author Share Posted January 6, 2010 Im just getting a blank screen, do I enable logging in the php.ini file or Apache? Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989611 Share on other sites More sharing options...
trq Posted January 6, 2010 Share Posted January 6, 2010 is the php.ini the same on every OS? I might try copying it from my Xampp install. It would have nothing to do with php itself, more likely a server setting. Unless of course your application itself checks ip addresses. Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989613 Share on other sites More sharing options...
trq Posted January 6, 2010 Share Posted January 6, 2010 Im just getting a blank screen, do I enable logging in the php.ini file or Apache? Apache. edit: Actually, you'd best enable all error reporting and displaying / logging of errors in php too just in case. Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989614 Share on other sites More sharing options...
salathe Posted January 6, 2010 Share Posted January 6, 2010 is the php.ini the same on every OS? Not by default, no. Im just getting a blank screen, do I enable logging in the php.ini file or Apache? Yes, both, just to see what is happening. Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989616 Share on other sites More sharing options...
jibadee Posted January 6, 2010 Author Share Posted January 6, 2010 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] Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989637 Share on other sites More sharing options...
trq Posted January 6, 2010 Share Posted January 6, 2010 Those php errors are just caused by poor code. You need to check your Apache logs. Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989649 Share on other sites More sharing options...
jibadee Posted January 6, 2010 Author Share Posted January 6, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989655 Share on other sites More sharing options...
jibadee Posted January 6, 2010 Author Share Posted January 6, 2010 Just connected from the remote site with SecureRemote VPN and it works perfectly.. grrr grrr grrr Quote Link to comment https://forums.phpfreaks.com/topic/187396-php-not-working-form-remote-office/#findComment-989701 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.