Hello there,
I've moved a simple script from one server to the other and something is making it not work on the new one.
It has to read the filesize of a file and display it.
If I run it through ssh with 'php script.php', the html it outputs is ok and the size is displayed. If however I access the same script.php through an internet browser, it gives me the follosing error:
Warning: filesize() [function.filesize]: stat failed for /var/www/html/asteriskmonitor/logs/Alpha.log in /var/www/html/asteriskmonitor/index.php on line 94
I've tried enabling php safe mode, openbasedir, register globals, chmodding the logs folder and it's files to 777, chowning the folder to apache:apache, but nothing seems to solve the problem.
It must be some kind of permissions issue as I mentioned earlier, root can run it fine through ssh.
Any Ideas?
I've moved a simple script from one server to the other and something is making it not work on the new one.
It has to read the filesize of a file and display it.
If I run it through ssh with 'php script.php', the html it outputs is ok and the size is displayed. If however I access the same script.php through an internet browser, it gives me the follosing error:
Warning: filesize() [function.filesize]: stat failed for /var/www/html/asteriskmonitor/logs/Alpha.log in /var/www/html/asteriskmonitor/index.php on line 94
I've tried enabling php safe mode, openbasedir, register globals, chmodding the logs folder and it's files to 777, chowning the folder to apache:apache, but nothing seems to solve the problem.
It must be some kind of permissions issue as I mentioned earlier, root can run it fine through ssh.
Any Ideas?