Topic on Project:Support desk

Images not shown - "you don't have permission to access this resource"

8
FipsStel (talkcontribs)

I am not seeing the images I am uploading into my wiki.

I am getting the following message when clicking on an image.

"you don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe"

So, it's about permissions, but where can I change them?


I am using MediaWiki 1.39.1.

Bawolff (talkcontribs)

So it sounds like the permissions of a .htaccess file. You should be able to change it from the command line with chmod (e.g. chmod a+r /var/www/html/w/images/.htaccess assuming your wiki is installed in /var/www/html/w/ ).

FipsStel (talkcontribs)

This needs to be inputed into the .htacess?

Bawolff (talkcontribs)

No. The permissions on the .htaccess file need to be changed.

77.0.27.3 (talkcontribs)

Dear Community,

I have exactly the same problem. I can upload images to wikimedia, but when I try to access them, it says "You don't have permission to access this resource.Server unable to read htaccess file, denying access to be safe"

The permissions for htaccess are set correctly though(either 664 or 775 doesn't work). Can anyone help me further with this`?


kind regards,

Stefan

DAChristiansen (talkcontribs)

Has anyone figured this issue out? I am able to upload images - but get the same error above - Am also able to change permissions on the .htaccess file but no combination seems to work.

Thanks in advance,

Dean

Bawolff (talkcontribs)

If its not file permissions, it could be some other access control technique, like selinux or ACLs. Also be sure you are changing permissions on the correct .htaccess file as well as the .htaccess in all parent directories if they exist.

DAChristiansen (talkcontribs)

I deleted the image directory .htaccess file; and my image directory permission is set to 755 - my images now seem to be showing normally.

thanks,

Dean

Reply to "Images not shown - "you don't have permission to access this resource""