It seems that your code is calling the storage directory directly? LIke it should call a file but the filename is missing
Cannot serve directory /home/363286.cloudwaysapps.com/bkbqeheexz/public_html/public/storage/
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have deploy an app fully working in Localhost but in the production server, every time I log in I get a 500 error.
After I refresh the page, the user is logged in.
I could visit all pages, but I can not upload images (change from avatar to the uploaded image). I get the 500 error again.
Looking at the logs I get this:
[Fri Feb 21 11:00:10.620900 2020] [autoindex:error] [pid 1579]
[client 46.189.69.156:51442] AH01276: Cannot serve directory /home/363286.cloudwaysapps.com/bkbqeheexz/public_html/public/storage/: No matching DirectoryIndex (index.php,default.php,index.html,default.html) found, and server-generated directory index forbidden by Options directive, referer: http://phplaravel-363286-1171349.cloudwaysapps.com/admin/dashboard
I followed all needed steps in the deployment: https://support.cloudways.com/deploy-laravel-on-cloudways/?utm_source=Platformkb&utm_medium=kbsearch
I also did this:
But now I am still having the 500 Error every time I visit a page with images (user images)
It seems to be a problem with the storage linking, but I have not idea, what to do.
Any help would be appreciated
Please or to participate in this conversation.