Today i migrated my images from one server to another and faced a strange permission issue
[Mon Mar 25 08:42:23.676315 2013] [core:crit] [pid 15182] (13)Permission denied: [client 24.14.2.22:48113] AH00529: /files/domain.com/public_html/images/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/files/domain.com/public_html/images/' is executable, referer: http://domain.com.com/file.php
what i've tried:
chmod -R 777 root_dir
restorecon -r
disable selinux
Chown -R root:root root_dir
find root_dir -type f -print0|xargs -0 chmod o+r
;find root_dir -type d -print0|xargs -0 chmod o+x
Substitute o+rx if you want the world to be able to do anls
orreaddir
on every directory.