Magento installed via Softaculous and file ownership
I installed Magento 2.3.5 p-1 on a WHM/cPanel VPS account using Softaculous.
The file and folder user and ownership for all of the Magento files is the account user that was created when the account on the VPS was setup, so as an example if the domain on the account was mycoolwebsite.com, the user and group for all the files is mycoolweb:mycoolweb.
Since I have to login as root using ssh to run these commands, I always have to reset the file and folder permissions, and chown them to mycoolweb:mycoolweb, as they're changed to root:root with different permissions.
Obviously, this is a problem in a production environment as I don't want any downtime, even if it only takes 5 minutes for the commands to fix ownership and permissions to run.