When adding images for new products to my magento store I get the error:
Unable to create directory '/var/www/html/magento/media/tmp/catalog/product'.
Now, I have made sure file permissions are set to 777, so I am wondering why is this happening and how can I fix this ?
UPDATE Tried everything suggested below to no avail. I get the error: Destination folder is not writable or does not exists.
well, this is a lie. As for a temporary basis I have set all folders and files within the magento folder to have world write permission (777). Are the directory locations stored in some configuration file ? or what else could be causing this ? Been pulling my hair out over last week trying to solve this!
Was an issue with SELINUX:
chcon -R -t httpd_sys_rw_content_t /var/www/html/magentofoldername/*
chmod -R a+w /var/www/html/magentofoldername/*