I ran some recursive linux command that changed the permissions to all my website files..
all files are now like
-rwxrwxrwx
and all dictionaries are.
drwxrwxrwx
I don't know if that has anything to do with my problem really.. As I've changed that yesterday and it still worked.. But today I decided to update PHP from 5.1.6 to 5.3 and I've restarted apache..
I'm guessing it could be 2 things.. one the new PHP is screwed up somehow. Other is the permissions I set yesterday took effect today when I restarted apache..
The errors by the way are like.
PHP Warning: move_uploaded_file(/var/www/html/test.zip): failed to open stream: Permission denied in /var/www/html/*snipped*/upload.php on line 86, referer: http://foobar.com/*snipped*/upload.php?dir=/
PHP Warning: move_uploaded_file(): Unable to move '/tmp/php7qcj4A' to '/var/www/html/test.zip' in /var/www/html/*snipped*/upload.php on line 86, referer: http://foobar.com/*snipped*/upload.php?dir=/
As well as other commands like mkdir()
all failing now.