Knowledgebase

How to upload file on cpanel directory Print

  • Cpanel
  • 4

How to Upload a File to the cPanel Root Directory

 

Uploading files to the root directory of your hosting account using cPanel is a common task, whether you're adding website files or configuration scripts. Here's a detailed guide:

 

 

---

 

Step 1: Log in to cPanel

 

1. Open your browser and go to your cPanel URL (e.g., yourdomain.com/cpanel).

 

 

2. Enter your username and password provided by your hosting provider.

 

 

 

 

---

 

Step 2: Access the File Manager

 

1. In the cPanel dashboard, locate the File Manager tool.

 

 

2. Click on File Manager to open it.

 

 

 

 

---

 

Step 3: Navigate to the Root Directory

 

1. Once inside the File Manager, you’ll see a list of folders and files.

 

 

2. Navigate to the root directory of your website.

 

For the main website, the root directory is typically the public_html folder.

 

For addon domains or subdomains, navigate to their specific folders.

 

 

 

 

 

---

 

Step 4: Upload a File

 

1. Inside the root directory, click the Upload button located in the top toolbar.

 

 

  1. 2. A new window will open.

 

 

3. Click Select File or drag and drop your file into the window to begin the upload.

 

 

 

 

---

 

Step 5: Verify the Upload

 

1. Once the upload is complete, go back to the File Manager window.

 

 

2. Refresh the folder to ensure your file appears in the directory.

 

 

 

 

---

 

Tips for a Successful Upload

 

File Size Limit: Check your hosting provider's upload size limit. For larger files, use FTP.

 

Permissions: Ensure the file permissions are correctly set (e.g., 644 for regular files).

 

Overwriting Files: If you’re overwriting an existing file, make sure to back up the original.

 

 

 

---

 

Troubleshooting

 

File Not Appearing: Refresh the File Manager or check if you're in the correct directory.

 

Upload Errors: Ensure the file’s name has no special characters and doesn’t exceed the size limit.

 

 

 

This process allows you to easily upload files to the root directory using cPanel's built-in tools. If you encounter any issues, consult your hosting provider's support team for assistance.

 

 


Was this answer helpful?
« Back