@yump There could be a few different things causing the issue with creating the symbolic link using storage:link on your shared hosting. Here are a few things to check:
- Make sure that your shared hosting provider allows you to create symbolic links. Some providers do not allow this for security reasons.
- Make sure that the php user has the necessary permissions to create symbolic links. You can check with your hosting provider to see if this is the case and if they can grant the necessary permissions.
- Check the value of
storage_path('app/public')andpublic_path('storage')are correct, it should be the path of yourpublic_htmlfolder. - In your
filesystems.phpconfig file, check that the 'root' values for both the 'local' and 'public' disks match the path to your storage folder. - Make sure that there is no other route that is conflicting with your storage route and causing the problem.
- You can also check the error logs of your server for more details about the error.
It's possible that due to shared hosting configurations, you might not be able to use storage:link command to create the symlink, in this case you will have to manually create the symlink using the ln -s command via ssh or using the file manager provided by your hosting provider.