File & Folder Owner - Permission *cPanel / WHM Transfer*

I am trying to set up my first OLS server on CloudLinux 7 CageFS and KernelCare to move my website from the WHM/cPanel to the new OLS server.
The only part I can't figure is permission for file and folder and who own them during my setup and creating folder everything own by root user and i have to also set permission for files and folders below:
find * -type d -print0 | xargs -0 chmod 0755
find . -type f -print0 | xargs -0 chmod 0644
otherwise, nothing loads on the websites can someone suggest a proper and secure way to set up multiple domains on OLS, part of my website is e-commerce and security and protection I very important for me, I am new here so pardon me if this is a duplicated question or noob one


Files and folder owner and permission are mostly handled by the control panel. You can replicate the same way of files and folder ownership and permission from WHM/cpanel, or from cypber panel.
Last edited: