![Root Folder for primary Domain](https://netmow.com.au/wp-content/uploads/2019/12/How-to-change-Root-Folder-for-primary-Domain-in-Cpanel-2.jpg)
If you are having a problem with your root folder for the primary domain in Cpanel then this Article is for you.
Cpanel/WHM is the most popular Linux based operating system for controlling personal or dedicated hostings. When the server admin creates an account with a domain system automatically creates its root folder in the system, by following this article you can change your root folder as you want.
Please follow the below steps:
Step 1: Log in to your Cpanel and find SSH Access Option, You can create your ssh access details from here.
Step 2: After getting your ssh details, use any ssh client like putty to go inside your system. You can download Putty from here:
Step 3: After login inside your server system by using putty now edit the following command:
# vim /var/cpanel/userdata/USERNAME/MYDOMAIN.COM
Replace USERNAME with your Cpanel ID or Cpanel Account Name
Replace MYDOMAIN.COM with your domain
Step 4: Update Document Root
After editing the file, search for Documentroot and change the path as per your requirements:
documentroot: /home/USERNAME/public_html/NEW_PATH
Final Step: Rebuild and restart Apache
After changing the configuration, you need to rebuild the apache configuration by restarting the apache server.
# /scripts/rebuildhttpdconf
# service httpd restart
After Restarting your changes will affect your hosting.
![Quote](https://netmow.com.au/wp-content/themes/netmow/assets/img/sb-img1.png)
![Quote](https://netmow.com.au/wp-content/themes/netmow/assets/img/sb-img2.png)
If you are stuck or anything, you hire us for an expert hand. Book an appointment with us or call at 477937937.
https://netmow.com/restore-a-wordpress-website-by-using-duplicator-plugin/
Related Article
![World Backup Day](https://netmow.com.au/wp-content/uploads/2019/03/World-Backup-Day-is-March-31.-Its-time-to-back-things-up.jpg)
World Backup Day is March 31. It’s time to back things up
![Restore a WordPress website by using Duplicator Plugin](https://netmow.com.au/wp-content/uploads/2020/11/Restore-a-WordPress-website-by-using-Duplicator-Plugin.jpg)
Restore a WordPress website by using Duplicator Plugin
![website design in Brisbane](https://netmow.com.au/wp-content/uploads/2020/11/How-to-design-a-website.jpg)
How to design a website?
![Root Folder for primary Domain](https://netmow.com.au/wp-content/uploads/2019/12/How-to-change-Root-Folder-for-primary-Domain-in-Cpanel-2.jpg)