PHP Composer does not want to be run as root. PHP-FPM runs as www-data.
When I create a new laravel app using composer, do I want to create a new user for the app, and then chown the public directory as www-data? Or do I want to sudo as www-data to create the app using composer?
Is sudo running as root, or a super admin? If I create a directory with sudo, it is owned by root. Assuming the OS I use runs super admin tasks as root..? I have much to learn, please offer guidance.