I try to install my laravel 5.7 application under Digital Ocean hosting and got error:
# php artisan storage:link
ErrorException : symlink(): No such file or directory
at /var/www/html/votes/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:228
224| */
225| public function link($target, $link)
226| {
227| if (! windows_os()) {
> 228| return symlink($target, $link);
229| }
230|
231| $mode = $this->isDirectory($target) ? 'J' : 'H';
232|
Exception trace:
1 symlink("/var/www/html/votes/storage/app/public", "/var/www/html/votes/public/storage")
/var/www/html/votes/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:228
2 Illuminate\Filesystem\Filesystem::link("/var/www/html/votes/storage/app/public", "/var/www/html/votes/public/storage")
/var/www/html/votes/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35
Please use the argument -v to see more details.
lsb_release -d; uname -r; uname -i
Description: Ubuntu 18.04.1 LTS
4.15.0-34-generic
x86_64
I run before command to set permissions:
sudo chmod -R 777 /var/www/html/votes/storage
My app root directory:
-
ls -la total 2684 drwxrwxrwx 16 root root 4096 Sep 25 15:23 . drwxr-xr-x 3 root root 4096 Sep 19 12:47 ..
-rw-r--r-- 1 root root 1024 Sep 25 15:23 ..env.swp -rw-r--r-- 1 root root 234 Sep 24 12:13 .editorconfig -rwxrwxrwx 1 root root 811 Sep 25 15:23 .env -rw-r--r-- 1 root root 651 Sep 24 12:13 .env.example -rw------- 1 root root 699 Sep 19 15:07 .env.save drwxrwxrwx 8 root root 4096 Sep 25 12:34 .git -rw-r--r-- 1 root root 111 Sep 24 12:13 .gitattributes -rw-r--r-- 1 root root 294 Sep 24 15:08 .gitignore -rw-r--r-- 1 root root 1022 Sep 24 12:14 1.txt drwxr-xr-x 11 root root 4096 Sep 24 12:14 LaravelCharts -rw-r--r-- 1 root root 1672160 Sep 24 12:13 MyProjects_2018-09-01.tar.xz drwxrwxrwx 2 root root 4096 Sep 24 12:13 __DOCS drwxrwxrwx 2 root root 4096 Sep 24 12:13 __SQL drwxrwxrwx 7 root root 4096 Sep 25 12:34 app -rw-r--r-- 1 root root 1686 Sep 24 12:13 artisan drwxrwxrwx 3 root root 4096 Sep 24 12:13 bootstrap -rw-r--r-- 1 root root 2384 Sep 24 13:45 composer.json -rw-r--r-- 1 root root 200607 Sep 24 12:14 composer.lock drwxrwxrwx 2 root root 4096 Sep 24 12:14 config drwxrwxrwx 5 root root
4096 Sep 24 12:13 database -rw-r--r-- 1 root root 482562 Sep 24 12:13 package-lock.json -rw-r--r-- 1 root root 1168 Sep 24 12:13 package.json -rw-r--r-- 1 root root 1246 Sep 24 12:13 phpunit.xml drwxrwxrwx 9 root root 4096 Sep 24 15:08 public -rw-r--r-- 1 root root 66 Sep 24 12:13 readme.txt drwxrwxrwx 5 root root 4096 Sep 19 12:47 resources drwxrwxrwx 2 root root
4096 Sep 24 12:14 routes -rw-r--r-- 1 root root 563 Sep 24 12:13 server.php drwxrwxrwx 8 root root 4096 Sep 19 12:47 storage drwxrwxrwx 4 root root
4096 Sep 24 12:13 tests drwxrwxrwx 56 root root 4096 Sep 24 13:46 vendor -rw-r--r-- 1 root root 617 Sep 24 12:13 webpack.mix.js -rw-r--r-- 1 root root 261143 Sep 24 12:13 yarn.lock
Thanks!
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire