Jahan Ahmed Abbasi
Jahan Ahmed Abbasi

Reputation: 89

symlink to subfolder in example.com/laravel

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

Answers (1)

Alexey Mezenin
Alexey Mezenin

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 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.

Upvotes: 2

Related Questions