3 identical Raspberry Pis, same disk image, yet PHP one one (different location) takes forever to load. Ideas on how to identify the issue?
by ziphem from LinuxQuestions.org on (#5AZKF)
This is a weird situation.
I have 3 Raspberry Pis. All 3 are identical hardware, and all run the same disk image. Each are in different physical locations (different LANs and WANs). These Pis serve as web servers for security cameras, and run php to serve up the files.
In two of the locations, everything works perfectly. In one of the locations, everything works except that the PHP script to display images on my browser takes >1 minute to load (not a trickle, but as in, delay to load).
I've compared the output of
<?php
phpinfo();
?>
from all three Pis, and they are the exact same. In the location where the PHP takes forever to load, I've changed routers, too (general upgrade) and this hasn't worked. Finally, the logs don't seem to indicate any problems.
It feels like some waiting / timeout issue, but I can't think of what it could be. I've tried local (192.168) and remote access test, and same result. Since posting this, I've tried other (basic) PHP scripts and they work without delay. So it's a problem with the code, perhaps trying to read something? Any ideas on good first steps to troubleshoot the issue?
Thanks a ton!!


I have 3 Raspberry Pis. All 3 are identical hardware, and all run the same disk image. Each are in different physical locations (different LANs and WANs). These Pis serve as web servers for security cameras, and run php to serve up the files.
In two of the locations, everything works perfectly. In one of the locations, everything works except that the PHP script to display images on my browser takes >1 minute to load (not a trickle, but as in, delay to load).
I've compared the output of
<?php
phpinfo();
?>
from all three Pis, and they are the exact same. In the location where the PHP takes forever to load, I've changed routers, too (general upgrade) and this hasn't worked. Finally, the logs don't seem to indicate any problems.
It feels like some waiting / timeout issue, but I can't think of what it could be. I've tried local (192.168) and remote access test, and same result. Since posting this, I've tried other (basic) PHP scripts and they work without delay. So it's a problem with the code, perhaps trying to read something? Any ideas on good first steps to troubleshoot the issue?
Thanks a ton!!