Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for SYMLINK(): No Such File or Directory Laravel
Ayekple Clemence
Ayekple Clemence

Posted on • Originally published atanansewaa.com

     

SYMLINK(): No Such File or Directory Laravel

Symlink Problem: No Such File

I pulled alaravel project from GitHub that already have the storage symbolic link. Upon running it the browser, the images associated with the post came with errors. And after trying to create the symbolic again I had symlink(): no such file or directory.

After searching extensively, I found a solution on how to solve the problem of symlink(): no such file or directory. To fix this error on your server, change directory to the public and remove the symbolic link for the storage folder.

The following commands will help you remove the symbolic link from the public folder:

cd public rm storage

After removing the symbolic link change directory to the main folder using:

cd ..

Now create the symbolic link with the following command:

php artisan storage:link

After running the command successfully, you should get the following message

The [public/storage] directory has been linked.

I hope this post helps you. Then, you can check out the following post onHow to format date with accessors and mutators in laravel.

Top comments(2)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
kev0101 profile image
kevin0101
i only know i know nothing
  • Education
    Carvin
  • Work
    CEO
  • Joined

Thank you! This was super helpful.
For others looking to confirm the commands, a similar answer is provided here along other causes/solutions:laracasts.com/discuss/channels/lar...

CollapseExpand
 
korshun3107 profile image
korshun3107
  • Location
    Moldova. Chisinau
  • Joined

thanks

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

I'm a Fullstack Developer and Blogger. I love trying new things and sharing them
  • Location
    Ghana
  • Work
    Fullstack Developer at University of Cape Coast
  • Joined

More fromAyekple Clemence

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp