Symlink issue

how to create symbolic link from public/storage to storage/app/public

Asked on July 6, 2020 in Linux.
Add Comment
2 Answer(s)

you can check existing symlink by going to public directory of your laravel project and running command “ls -l”

you may get output like this ———-

total 2868

-rw-r–r–  1 root root   90185 Jul  4 14:57 5ef34aaed1a17.jpeg

drwxr-xr-x 11 root root    4096 Jul  6 07:35 images

-rwxr-xr-x  1 root root    1869 Jul  4 14:57 index.php

-rwxr-xr-x  1 root root     132 Jul  4 14:57 site.webmanifest

lrwxrwxrwx  1 root root      35 Jul  6 08:03 storage -> /var/www/html/storage/app/public

drwxr-xr-x  3 root root    4096 Jul  4 14:57 uploads

-rwxr-xr-x  1 root root     914 Jul  4 14:57 web.config

etc

SO here  symlink is this  :  storage -> /var/www/html/storage/app/public

If you have it and still want to create one then first delete this symlink from public directory manually.

And then run below command inside project directory

sudo ln -s  storage/app/public  public/storage

Answered on July 6, 2020.
Add Comment

root@development-logy:/# cd var/www/spincycles_project/SpinCyclesAdmin/

root@development-logy:/var/www/spincycles_project/SpinCyclesAdmin# ls

INSTALLATION  delivery_task.txt  missing.txt     robots.txt    x.php

README.md     docs               order.txt       server.php    x5.php

accessToken   file.json          pdftime.txt     site          x_1.php

api           index.php          people.txt      system        x_2.php

config        install.php        permission.txt  themes        x_3.tpl.php

cron          log.txt            public          tracklog      x_4.js

cron.php      mask               resource        tracklog.txt

root@development-logy:/var/www/spincycles_project/SpinCyclesAdmin# sudo ln -sv /var/www/html/rkfiles rkfiles

‘rkfiles’ -> ‘/var/www/html/rkfiles’

root@development-logy:/var/www/spincycles_project/SpinCyclesAdmin#

Answered on August 21, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.