1

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?

Amit Merchant
  • 1,045
  • 6
  • 21

1 Answers1

2

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 in storage/app/public. To make them accessible from the web, you should create a symbolic link from public/storage to storage/app/public

Also, make sure permissions are set correctly.

If you want to link any custom directories, create the symlink manually.

Alexey Mezenin
  • 158,981
  • 26
  • 290
  • 279