Uploading Your Website Files

Uploading Your Website Files

 

1. Log in to cPanel

  1. Open your browser and go to your cPanel login page (typically cpanel.ourdomain.com).

  2. Enter your cPanel username and password, then click Log in.

2. Access the File Manager

  1. Once logged in to cPanel, scroll to the Files section.

  2. Click on File Manager. This will open a new window displaying your website’s file structure.



3. Choose the Correct Directory

  1. In the File Manager, navigate to the public_html directory.





  2. If you are uploading files to a subdomain or an addon domain, go to the corresponding folder for that subdomain or domain.

    • For Primary Domain: public_html

    • For Subdomains: public_html/subdomain_name

    • For Addon Domains: A folder named after the addon domain will appear here.

4. Upload Website Zip Files

  1. Click on the Upload button located at the top of the File Manager interface.



  2. A new window will appear with an option to drag and drop your files or select them from your computer.

  3. Click Select File, browse to the location on your computer where your website files are stored, and select them.
  4. Alternatively, you can drag and drop the files directly into the upload window.

  5. Once uploaded, the files will appear in the directory you selected in File Manager.

5. Extracting Zip Files

If your website files are in a .zip archive:

  1. Upload the .zip file to the appropriate directory.

  2. Once the zip file has been uploaded, right-click on it and select Extract.

 

    3. Choose the destination directory and click Extract File(s).

    4. After extraction, your website files will be available in the folder.

6. Organize Files

  1. Ensure that all files are in the correct directory. The index.html or index.php file should be placed in the root directory (either public_html or the subdomain folder).

  2. Organize other files like CSS, images, and JavaScript into appropriate subfolders (e.g., /css, /images, /js).

7. Set Correct Permissions (if necessary)

  1. Right-click on any files or folders and choose Change Permissions to ensure that files have the correct permissions.

  2. Recommended settings are:

    • Directories: 755

    • Files: 644

8. Test the Website

  1. After uploading the files, open a browser and enter your domain name (e.g., yourdomain.com or subdomain.yourdomain.com).

  2. Verify that your website is displaying as expected.

Was this answer helpful?

99 Users Found This Useful