Where and How to Upload Website Files on cPanel Hosting

cPanel is a widely used hosting control panel in web hosting industry, over half of web hosts are using this cPanel with Linux hosting, so there are many new users are getting lost when they upload website files, as there are some folders and files already there once the hosting account is setup, and they’ve no idea which folder to upload their website files to. If you have this kind of questions then keep reading the tutorials below about uploading files on cPanel hosting.

Where To Upload Website Files To

In cPanel the default domain name is called as Primary Domain, it’s the domain name you entered in the domain name field when you purchase the hosting account, if you want to upload files for the default domain name, then you should upload files to folder ‘public_html’. And if you host multiple domains in the same hosting account, except the default domain name, you’ll add other domains in Addon Domain in hosting control panel, and for addon domains, the document root is like ‘/public_html/yourdomain.com’,that’s to say, if you upload files for addon domain yourdomain.com, you should upload files to the folder named ‘yourdomain.com’ under folder ‘public_html’.

How To Upload Website Files

To upload website files on cPanel hosting, you can use File Manager in cPanel, or use FTP software(often called as FTP client) installed on your computer.

Firstly, let’s see how to upload files using cPanel File Manager:

  1. Login to cPanel.
  2. Under Files, click File Manager.
  3. Select Web Root and Show Hidden Files, then click Go.
  4. Click to open the folder to which you’d like to upload your website files to.
  5. Click Uploadfrom the top toolbar.
  6. Click Browse(some web browsers will have Choose File instead).
  7. Select the file on your computer that you wish to upload.
  8. Once the file has been selected, it will automatically upload. You may select additional files while uploads are in progress.

It can only upload one file at one time, so for multiple files, you can compress all the folders and files you need to upload into a single .zip extension file, then upload the .zip file with File Manager and then you can extract the zip file in File Manager, you’ve already seen the Extract button in File Manager, I bet.

Now, let’s see how to upload files using FTP client:

As for FTP client, we recommend you use the one called Filezilla client, it’s a free FTP software and it’s easy to use, if you haven’t got this software then google it and download and install it on your computer first.

Now, open your Filezilla client, you’ll see there are some fields like Hostname, Username, Password, Port. On cPanel hosting, the Hostname is your web server IP, and username and password are same as the cPanel control panel login username and password, port is always 21 unless your web host has set it to a different one. When you input all the information, then click Connect button.

When the FTP is connected, you’ll see folders and files on your hosting account in the Remote area, just open the folder you want to upload files to in remote area, and then find out the files to be uploaded in the Local area, select all those files and folders, right click and select Upload, it will then start uploading your website files. And same as File Manager uploading, you can also upload zip file using FTP and then extract the zip file in File Manager later on.

That’s all of the tutorial on uploading website files on cPanel hosting, if you have more questions or concerns about it, feel free to contact us and we’ll be glad to assist you.