#Wrong storage link

7 messages · Page 1 of 1 (latest)

hasty glen
#

Hello, I deployed my website on Hostinger and everything is fine, except 1 thing. I try to upload pictures and that works completely fine, but when I want to load pictures its giving me a 404 not found error, and I kinda know where that come from. Its because its linking to the wrong storage file, since I had to split my app to deploy it, I had to take out the "public" directory and add it to the "public_html" directory. Now it made a storage directory inside the public_html directory and I dont know how to link everything to the storage folder inside my laravel app

thick orbit
hasty glen
#

Its still not working, it cannot find my storage folder in the public_html folder

hazy cairn
#

I've hosted some laravel apps on hostinger. The best thing I've found to do install your app in the route directory and create a symlink from public to public_html and use it like that.

hasty glen
#

Im so lost

hazy cairn
#

It looks like you've followed the example from the Hostinger support article https://support.hostinger.com/en/articles/6152127-how-to-deploy-laravel-8-at-hostinger, is that right? I'm not sure about that setup, makes upgrading or anything really difficult, because it basically cuts and pastes the public directory into the public_html directory. Instead of doing that I created a symlink from my Hostinger public_html directory to the Laravel public directory (see attached image). I think I had to ssh in to do that, you can't do it through the admin panel, but it works pretty well.