cancel
Showing results for 
Search instead for 
Did you mean: 

Magento installed via Softaculous and file ownership

Highlighted

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.

 

Is there a way to avoid this?  I read the document here: https://devdocs.magento.com/cloud/before/before-workspace-file-sys-owner.html

but it's a little over my head and I don't want to make any mistakes.  Could someone explain this in layman's terms using my mycoolweb:mycoolweb as an example?

Thanks for any help anyone can offer.