Ok! so I have finally upgraded to Magento 1.9 from Magento 1.7 through cPanel files, it seems to work well until I tried to upload a picture then it comes up ' the directory is not writable by server' I know this is a permission thing.

what file do I have to change permission for to get this working?

Thank you in advance.

2 Answers 2


Set 775 permissions to media and var folders recursively.

  • It didn't work..
    – user21167
    Commented Feb 11, 2015 at 20:07

Use The following commands to set permissions, I hope so it's help you

find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
find ./var -type d -exec chmod 777 {} \;
find ./media -type d -exec chmod 777 {} \;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.