Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

cuartas15's avatar

Either Changing the Meta or Installing a SSL certificate has broken my site

So, following the laracasts videos I changed my default site's meta to my domain and then installed a Let's Encrypt certificate, tried browsing my site and I just get an empty screen and a 500 error in the browser's console. I tried redeploying my aplication since maybe the change in directory was the cause but still nothing.

Checking nginx logs this is the full error stack I'm getting:

https://i.gyazo.com/5326e10a3a6e8caa3954b72f0044a059.png

Any help would be appreciated.

0 likes
3 replies
bobbybouwmann's avatar

The error says it can't write to the storage directory. You need to make sure it has the correct permissions. You can run this to achieve that

sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache
cuartas15's avatar

I ran both commands in my project's root folder, didn't get any output and unfortunately that didn't fix it either.

cuartas15's avatar

So I solved the issue by basically starting almost from zero. Ended up removing the SSL certificate, went to default and then back to my domain name in Meta, removed the repository and re-installed it once again then reran my deployment script with a fresh database and composer/npm packages, before installing the SSL certificate I made sure it was working with http at least, it was so I went with the installation and now it's working. I don't really know how or why but that's what happened.

Please or to participate in this conversation.