How to Change Document Root for a cPanel Main Domain
By default, cPanel sets the main domain’s document root to public_html. However, sometimes you need to point it to a different directory — for example, a Laravel application that requires the public folder as the document root. cPanel does not allow the change of the document root for the primary domain. Only subdomains and addon … Read more