I cannot run the command "php Artisan Storage:link"

Asked

Viewed 851 times

0

Is there any way to execute this command on a server like hostgator? on my pc I can only with administrative rights, but in connection with hostgator it is not possible to appear the following error

   ErrorException  : symlink(): No such file or directory

  at /home4/dan18048/public_html/blog/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
    248|      */
    249|     public function link($target, $link)
    250|     {
    251|         if (! windows_os()) {
  > 252|             return symlink($target, $link);
    253|         }
    254|
    255|         $mode = $this->isDirectory($target) ? 'J' : 'H';
    256|

  Exception trace:

  1   symlink("/home4/dan18048/public_html/blog/storage/app/public","/home4/dan18048/public_html/blog/public/storage")
      /home4/dan18048/public_html/blog/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:252
  2   Illuminate\Filesystem\Filesystem::link("/home4/dan18048/public_html/blog/storage/app/public", "/home4/dan18048/public_html/blog/public/storage")
      /home4/dan18048/public_html/blog/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35
  • 1

    I believe you have to access the terminal and create the symlink manually

  • I have access to the terminal, but I don’t know how to create the symlink manually. tried a few things here searching but don’t know how to tell the directories correctly tbm

  • 1

    Something like that ln -s /diretorio/storage /diretorio/public/storage

  • Thanks, I got :D

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.