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

Erickcrowne's avatar

File Storage issue with shared hosting.

Hi everyone, I built a blog website where a user can submit a photo from the form and it saves locally in storage/app/public and then in public/storage you can access it. I used php artisan storage:link command to create the symlink. It works perfectly in local but I deployed it to shared hosting thats using public_html, website loads fine but the image wont display. Im using siteground.com Can anyone explain step by step on how to fix this? Literally spent hours today with no results.

directory set up is : astroblogs.net>astroblogs >public_html

inside astroblogs I have everything but public folder contents, i moved those contents inside of public_html public_html also has storage folder in it with created images from the user but it still wont display.

There is no public folder inside public_html. I wonder if laravel is looking for public/storage instead of public_html/storage

Sorry I know this is a long post but I'm really excited about this project and just want it to work on deployed server.

0 likes
3 replies
jlrdw's avatar

Can you ssh in with putty and try running the link, or just create an image directory under public_html and try.

But the main question are these private personal images that other people are not supposed to see.

melissak's avatar

are these photos have any sort of encryption. google.com would be better source for your question

Erickcrowne's avatar

Hi guys I figured out issue. For some reason url helper method would not work on deployed site. So I had to hard code the image path.

Please or to participate in this conversation.