Reputation: 89
I have installed Laravel 5.5 in subfolder on root of my shared hosting example.com/laravel and now I am creating symlink by php artisan storage:link
via putty (terminal window) and got this error:
The symlink (): No such file or directory
How can I properly maintain a link to laravel project installed on example.com/laravel and when I later deploy it to other domain what parameters should be changed?
Upvotes: 1
Views: 1487
Reputation: 163788
You need to create the directory to make the command work:
storage/app/public
From the docs:
By default, the
public
disk uses the local driver and stores these files instorage/app/public
. To make them accessible from the web, you should create a symbolic link frompublic/storage
tostorage/app/public
Also, make sure permissions are set correctly.
If you want to link any custom directories, create the symlink manually.
Upvotes: 2