Search code examples
laravelhostingsymlinkshared-hosting

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)


Solution

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