Intermittent 403's from PHP script
I'm having a hard time debugging a problem with a php script after having moved it from another host.the URL is:
http://lagunabaptist.com/media/
This script worked fine on the old host, but since the cpanel backup was too big to move in one piece, I tar'ed this section (media/*) separately, then the cpanel full backup was restored by the new host, then I untar'ed the media directory in the new account.
The issue is that sometimes it works, sometimes it doesn't. As you enter, the script parses the directory contents and creates the formatted listing pages. As you click various directories, for the first pass, most directories will work, but eventually you will start getting 403 forbidden errors, even for directories that just worked a moment ago. If you go back, then click a directory again, it may work (or not).
I've checked permissions extensively (most everything is 777 at this point) but there isn't any consistency on when/where the problem will occur.
Another symptom is that not all the graphic icons will load consistently. I've had issues with other scripts not loading some button icons on the new host also.
One thing I've wondered about is how tar handles user and owner names. The account name for the old host and the new host are the same, but I vaguely believe that the name actually maps to a user ID number on the system. So if I tar on one host, then untar on the other host, the usernames are shown to be the same, but are they the correct (new) user ID number? But this would seem not to be the source of the problem since it does work sometimes.
Any ideas?