Martin K.
Martin K.

Reputation: 103

Laravel storage symlink on shared hosting

I'm having problem with setting up storage link on shared hosting.
Because of that I can't load any image from storage folder.
My public folder is renamed to web and when I try this:
ln -s storage/app/public/ web/storage
my issue still remains. Also, I have access to the console on the server.
Any help would be appreciated

** Edit -> everything worked fine on localhost (before moving to production)

Upvotes: 0

Views: 3075

Answers (1)

Martin K.
Martin K.

Reputation: 103

The problem was with badly linked symlink.
All I had to do was:
ln -sfv ../storage/app/public/ storage from web directory

Upvotes: 3

Related Questions