Assuming www-data is the webserver user.
It's not needed but for the sake of shortening commands we will set the LARAVEL_ROOT env variable to the root of our laravel app.
LARAVEL_ROOT=/path/to/your/laravel/root/directoryChange the ownership of our project folder.