views:

60

answers:

1

Hello fellows,

When I try to upload a file on my localhost version of the website it gives me the following message: "The upload destination folder does not appear to be writable"

The upload functionality is working perfectly on production server.

I checked the permissions of the destination folder about million times still getting the error also tried changing httpd and destination folder user/group with no luck.

The "is_writable" PHP function is returning false.... what am I missing ?

I am using fedora 13, Apache 2.2.15 and PHP 5.3.2

Thanks for your help

Wa'el

+1  A: 

if you are writing something your linux exec command then you have to turn PHP_Safe_MOD OFF in your setting. some times we use exec() command to perform operation. Just give it try. hope it would work.

Other thing you can do is try to change the permission Recursively 777 on the parent directory.

/a/b/c

chmod -R 777 a

Ghost
Just a small observation/point - changing the permissions is a good suggestion, but I would not do so on the "parent directory". Permissions are best set as being the most restrictive whilst still allowing the system to operate - so I would make sure to change the permissions, recursively, on the Uploading Folder/Image Folder ONLY. I may simply be misreading your suggestion - just adding for clarity.
Lucanos
chmod 777 is *never* a "solution" to permission problems. It's more like "I'll leave my front door wide open in case I forget my keys some day". Do not do this, in any case. chmod 777 for a whole directory tree is even worse.
Jonas