Uploading Your Website Files
Uploading Your Website Files
1. Log in to cPanel
- Open your browser and go to your cPanel login page (typically cpanel.ourdomain.com).
- Enter your cPanel username and password, then click Log in.
2. Access the File Manager
- Once logged in to cPanel, scroll to the Files section.
- Click on File Manager. This will open a new window displaying your website’s file structure.
3. Choose the Correct Directory
- In the File Manager, navigate to the public_html directory.
- 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
- Click on the Upload button located at the top of the File Manager interface.
- A new window will appear with an option to drag and drop your files or select them from your computer.
- Click Select File, browse to the location on your computer where your website files are stored, and select them.
- Alternatively, you can drag and drop the files directly into the upload window.
- 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:
- Upload the .zip file to the appropriate directory.
- 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
- 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).
- Organize other files like CSS, images, and JavaScript into appropriate subfolders (e.g., /css, /images, /js).
7. Set Correct Permissions (if necessary)
- Right-click on any files or folders and choose Change Permissions to ensure that files have the correct permissions.
- Recommended settings are:
- Directories: 755
- Files: 644
8. Test the Website
- After uploading the files, open a browser and enter your domain name (e.g., yourdomain.com or subdomain.yourdomain.com).
- Verify that your website is displaying as expected.