What Is the Root Home Directory? #
- The root home directory is typically located at /home/username/public_html/.
- This is the folder where your main website files (e.g., index.php, wp-config.php) are stored.
- By default, any file you upload to public_html will be accessible via your domain (e.g., https://yourdomain.com/index.php).
How to Find the Path to Your Root Home Directory #
Method 1: Using hPanel File Manager #
- Log in to ozspeed.com.au and click on “Client Login”.
- Access your hPanel Dashboard.
- Navigate to Files > File Manager.
- You will see the root home directory labeled as public_html in the left-hand navigation pane.
Method 2: Using FTP #
- Open an FTP client (e.g., FileZilla).
- Connect using your FTP credentials (host, username, password).
- The root directory will typically appear as /public_html once you log in.
Tip: #
- The full path may look like /home/username/public_html depending on your server setup.
How to Change the Root Home Directory #
If you need to change your root home directory (e.g., for a subdomain or a different website setup), follow these steps:
Step 1: Log In to hPanel #
- Go to ozspeed.com.au and log in to your account.
- Open your hPanel Dashboard.
Step 2: Access Domain Settings #
- Click on “Domains” in the Dashboard.
- Select the domain you want to modify.
Step 3: Change the Document Root #
- Click on “Change Document Root” or “Edit Root Directory” (this option may vary depending on your hPanel version).
- Enter the new directory path (e.g., /home/username/new_folder/).
- Click “Save Changes” to update the root directory.
Important: #
- Make sure the new directory contains your website files (e.g., index.php, .htaccess) to avoid a 404 error.
How to Verify the Change #
- Open your website in a web browser (e.g., https://yourdomain.com).
- Check if the site loads correctly from the new root directory.
- If you see an error, double-check the directory path and ensure the files are uploaded correctly.
Additional Tips: #
- Back Up Your Files: Always back up your website files before changing the root directory to prevent data loss.
- Update Configuration Files: If you are using a CMS like WordPress, update the wp-config.php file with the new path.
- Check .htaccess Rules: Ensure that any custom rules in your .htaccess file reflect the new directory path.