Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 5.3 storage:link -> symlink(): Protocol error

I'm trying to run the following artisan command:

php artisan storage:link

I get this error:

[ErrorException] symlink(): Protocol error

Can you help me to solve this.

This is my setup:

  • Windows 10 using vagrant with Homestead (v0.5.0) box
  • Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64)
  • Laravel Framework version 5.3.6
  • PHP 7.0
like image 413
Elie Morin Avatar asked Sep 14 '16 17:09

Elie Morin


3 Answers

Your problem probably is that you have to start your vagrant box as a system administrator.

So hit start type "cmd", right click it choose "Run as administrator". Navigate to your project, type "vagrant up". Retry the command.

Creating symbolic link on Homestead?

like image 150
bleenders Avatar answered Sep 23 '22 19:09

bleenders


First close vagrant with vagrant halt command, then run cmd as administrator, go to your homestead folder, start Vagrant with vagrant up and then you can run php artisan storage:link. For me it worked :)

like image 41
Alexandru Dumitru Avatar answered Sep 23 '22 19:09

Alexandru Dumitru


enter image description here

Run cmd as Super Admin.

php artisan storage:link is OK.

like image 37
tanteng Avatar answered Sep 22 '22 19:09

tanteng