Laravel Impossible to Create Root Directory
Fixed it unknowningly by setting permissions according to comments, I used
chown -R www-data:root .
in the root of my directory
Edit: I used www-data:root
, meaning set the owner of everything inside the Laravel directory to www-data
(the webserver) and root
being root
obviously. If you do this you should do it with a non-root user or just to www-data
First, remove these folders
/public/storage
/storage/app/public
Then run the following command
php artisan storage:link