I am a little new at Linux and recently I had some permission issues with some images in a folder on my Red Hat server.
After trying to chmod and chown with no success, I found this forums that instructed to type in the following 2 commands:
chcon -h system_u:object_r:httpd_sys_content_t /opt/coldfusion8/wwwroot/mysite/assets/
chcon -R -h root:object_r:httpd_sys_content_t /opt/coldfusion8/wwwroot/mysite/assets/*
the problem i had was in a folder called 'rta-images' inside 'assets'
after entering this, all image files inside 'assets' quit working ( i had more images than the rta-images )
i tried restorecon but with no success, not sure if i got it right though
i also tried:
chmod -R 755 assets
chown -R myuser assets
again no success
if anyone has any clue how to revert this and fix the error below
(the error that i get now on all the files and folders including 'assets' is also the error that i got before only on the images: You don't have permission to access /assets/ on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.)