Permission problems and Error 404

Hi Server Gurus!

My hosting company’s server was down for a few days. :mad:
They managed to start their servers again. :rolleyes:
After that, almost all my ajax-driven upload forms report error:


You don't have permission to access /green/users/php_ajax_image_upload/scripts/ajaxupload.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

As you may assume, this is a script for uploading an image… Nothing was changed to the mentioned php, nor any other .js or other files and the script was working smoothly before the server crash. That’s why I assume it’s a server/apache configuration issue…

Can someone help? Your knowledge and time is highly appreciated!
Regards

Hi Viktor!

It’s only a guess but I’d say that your host did not complete the recovery process. It’s likely that the permissions were not changed to allow PHP to run (execute) in the subdirectories (do they work in the DocumentRoot?).

IF you have FTP access to this (alternate?) server, go through the directories and check the CHMOD settings (766 although 744 will occasionally work).

IF PHP is not working in your DocumentRoot, take the site offline immediately as you’re exposing your PHP code! THEN have the host correct the AddTypeHandler for PHP in their server configuration files (although, by this time, I’m sure they would have heard the screaming and done that already).

Regards,

DK