Permission denied Laravel 5.5

2

I'm trying to create my first laravel project with vuejs. I installed apache on ubuntu 16.04 and navigated to the / var / www / html folder. I ran the following command:

composer create-project laravel/laravel laravel --prefer-dist

But when I run this command it gives me the following error:

[ErrorException]  mkdir(): Permission denied 

Looking for the internet everyone says to give permission 777 to html, but this is not a viable solution, since if it were in production, this would make the server insecure. Others said to run as sudo, but the installer himself discourages it. What can I do?

    
asked by anonymous 19.12.2017 / 00:39

0 answers