HTTP ERROR 500 or webp permission issue

Keywords: PrestaShop - AWS - Technical issue - Permissions
bnsupport ID: 22a2d758-c72c-d5d4-0d87-03a12efbf9ee
Description:
Hi,

I have two issues with my website. I’ve already read your help page: https://docs.bitnami.com/general/how-to/troubleshoot-permission-issues/

I’m running prestashop.

Issue 1:
If I run the command on SSH: sudo chown -R bitnami:daemon /opt/bitnami/apps/prestashop/htdocs
Then the website shows the error 500 and the following issue is in the error logs:
[Wed Dec 18 16:56:25.544399 2019] [proxy_fcgi:error] [pid 6646:tid 140195689707264] [client 109.132.187.49:59039] AH01071: Got error 'PHP message: PHP Fatal error: Uncaught InvalidArgumentException: The directory “/opt/bitnami/apps/prestashop/htdocs/var/cache/prod/doctrine” is not writable. …

Issue 2:
if I run the command on SSH: sudo chown -R daemon:daemon /opt/bitnami/apps/prestashop/htdocs
Then my website works but pictures don’t showup. The following issue is in the error logs:
[Wed Dec 18 16:55:53.180103 2019] [authz_core:error] [pid 6846:tid 140195391244032] [client 109.132.187.49:58840] AH01630: client denied by server configuration: uri /img/p/1/7/x17-home_default.jpg.pagespeed.ic.x3StRfWVxk.webp, referer: http://3.123.23.147/index.php

Could you explain me how to solve those issues ? So I don’t bother you again if it happens.

Best regards,
Abdullah.

Hi @Xionoxid,
I launched a fresh instance and I realized you don’t have the same permissions for the group, it seems you changed them.
The user and group should be bitnami:daemon.
Apart from that all the folder should have 755, but:

config
cache
var/logs
app/config
var/cache
img
mails
modules
themes/classic/assets
translations
upload
download
sitemap.xml
htdocs/themes
htdocs/admin/import

that should be 775.
Apart form that all the files should have 664.
I hope this will help you.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.