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

Sallman's avatar

Symlink Laravel cpanel

I have uploaded my first website to cpanel using this tutorial https://www.youtube.com/watch?v=e7eSJCevo4c and website is working perfectly. But how to do symlink i.e storage to public folder? Please help. Thank you

0 likes
4 replies
Cronix's avatar

You need to have ssh access to create the link. SSH into the box and run the php artisan storage:link command in laravels base directory.

Cronix's avatar

@sallman Contact support. They may have disabled it. We really have no way to know how they have cPanel configured, so I'd ask them how to access ssh, or if it's even possible on their system.

jlrdw's avatar

I am hesitant to ask, but do you have a correct folder structure setup for shared hosting, such as this guide:

http://novate.co.uk/deploy-laravel-5-on-shared-hosting-from-heart-internet/

Now the folder names in the guide are just sample names, of course replace with your folder names.

I haven't seen the Youtube video. But the guide is the secure way to setup.

Anyway get setup correctly then the images can go in the lower (below public_html) folder. Unless they are highly secure client images, in which case you shouldn't be on shared hosting, in such a case use:

  • AWS
  • Digital Ocean
  • Linode

Or one like that. Just my opinion.

Please or to participate in this conversation.