I used this article to setup a local lamp stack for wordpress and general php development on my pop os desktop.
However, when i try to go and create a laravel project inside /var/www/html i get an error:
command: composer create-project laravel/laravel=“8.4.*” laravel
mkdir(): Permission denied
Is this because we changed the ownership of this html folder to www-data for user and group?
How can i change this to be better suited for local development?
If I run the above command with sudo then I’ll have to keep developing with sudo.
Any alternatives that are better suited for local development?