cPanel guide

How to host a website using cPanel, step by step

A plain walk-through of the cPanel screens you need to put a website online: File Manager, databases, SSL, email and FTP, plus the mistakes we see most often.

In short

To host a website using cPanel, log in, open File Manager, go to the public_html folder, upload your site as a ZIP and extract it, so that index.html or index.php sits inside public_html. Then create a database in MySQL Databases if your site needs one, check that AutoSSL has issued the free certificate, and add email accounts. Our cPanel plans start at ₹900 a year.

cPanel is the control panel that comes with most shared hosting, including ours. It looks busy the first time, but hosting a website uses only a handful of its icons. This guide takes them in the order you need them, from logging in to a working site with SSL and email.

Key takeaways

  • Your website's files go inside public_html. Whatever is there is what visitors see at your domain.
  • Uploading one ZIP and extracting it is much faster than uploading files one by one.
  • The home page must be called index.html or index.php, in lower case, at the top of public_html.
  • SSL is free and automatic through AutoSSL once your domain points at the server.

Step 1: Log in to cPanel

Use the cPanel address, username and password from your hosting welcome email. The address is usually yourdomain.in/cpanel or yourdomain.in:2083; before your domain points at the server, use the server address given in the email instead.

If you have not chosen hosting yet, our cPanel plans include free SSL, email accounts, PHP and MySQL, and renew at the same price every year.

Step 2: Upload your site with File Manager

Open File Manager, go into public_html, upload a ZIP of your site and extract it there.

  1. On your computer, select the files inside your website folder, not the folder itself, and compress them into a ZIP.
  2. In cPanel, open File Manager and double-click public_html.
  3. If a placeholder page is already there, delete it.
  4. Click Upload, choose your ZIP, and wait for the progress bar to finish.
  5. Go back to public_html, right-click the ZIP and choose Extract.
  6. Check that index.html or index.php now sits directly inside public_html, then delete the ZIP.
  7. Open your domain in a private browser window to see the site.

If everything landed inside an extra folder, select its contents, use Move to put them in public_html, and delete the empty folder.

Subfolders and extra domains

Anything you put in a subfolder appears under that path: files in public_html/blog open at yourdomain.in/blog. To host a second domain, use the Domains screen (called Addon Domains in older cPanel), if your plan allows more than one domain. Each extra domain gets its own folder, and you upload its files there in the same way.

Step 3: Create a database, if your site needs one

Plain HTML sites need no database; PHP applications and WordPress do.

  1. Open MySQL Databases and create a new database.
  2. On the same screen, create a user with a strong password.
  3. Add the user to the database and tick All Privileges.
  4. Open phpMyAdmin, select the database and use Import to load your .sql file.
  5. Put the full database name and user, including your cPanel username prefix, into your site's config file. The host is normally localhost.

Our guide to hosting a PHP website covers the configuration and the errors you may meet.

Step 4: Switch on SSL

cPanel's AutoSSL issues a free certificate automatically once your domain's DNS points at the server. Open SSL/TLS Status to see whether your domain and its www version are covered; you can also run AutoSSL from there.

When the certificate is active, turn on Force HTTPS Redirect for the domain in the Domains screen, so every visitor lands on the secure version. Do this after the certificate is issued, not before, or visitors will see a browser warning.

Step 5: Create email accounts

Open Email Accounts, choose Create, and set the address, password and storage limit. You can read the mail in webmail at yourdomain.in/webmail, or choose Connect Devices to see the settings for your phone or Outlook. Mailboxes share your plan's storage with the website. Our page on website hosting with email explains how many accounts each plan includes.

The FTP alternative: FileZilla

For large sites, or when you update files often, FTP with a program such as FileZilla is easier than File Manager.

  • Host: ftp.yourdomain.in, or the server name from your welcome email.
  • Username and password: your cPanel login, or a separate account created under FTP Accounts.
  • Port: 21, with encryption set to "Require explicit FTP over TLS".

Once connected, open public_html on the right-hand side and drag your files across from the left.

Common mistakes and how to fix them

Almost every "my site is not showing" call comes down to one of these.

MistakeWhat you seeFix
Files inside an extra folder, such as public_html/mysite/The placeholder page, an empty listing or a 403 errorMove the contents up into public_html
ZIP uploaded but not extracted"Index of /" with the ZIP file listedRight-click the ZIP and choose Extract
Home page named Index.html or home.htmlA file listing or 403 ForbiddenRename it to index.html in lower case
File names and links in different letter caseMissing images or broken CSSMatch the case exactly; the server treats Logo.png and logo.png as different files
Domain still pointing at the old hostThe old site, or nothing at allCheck the nameservers or A record and allow time for DNS to update
Forcing HTTPS before the certificate is issuedA browser security warningTurn the redirect off, wait for AutoSSL, then switch it back on

Stuck on a step? We can check it with you by phone or WhatsApp, and if your site is on another host, we can move it for you.

Frequently asked questions

Where do I upload my website files in cPanel?

Into the public_html folder, using File Manager or FTP. Whatever sits directly inside public_html is what visitors see at your main domain, so the home page, index.html or index.php, must be at that top level, not inside another folder.

Why does my site show "Index of /" after uploading?

The server cannot find a home page. Usually the ZIP has not been extracted, the files are inside an extra folder, or the home page is named something other than index.html or index.php in lower case. Fix whichever applies and reload.

How do I host a second website in the same cPanel?

Use the Domains screen, called Addon Domains in older versions, if your plan allows more than one domain. cPanel creates a separate folder for the new domain, and you upload its files there exactly as you did for the first site. Point the new domain's DNS at the server too.

How long does free SSL take in cPanel?

AutoSSL usually issues the certificate within a few hours of your domain pointing at the server, though DNS changes themselves can take up to a day or two to spread. Check SSL/TLS Status in cPanel, and only switch on Force HTTPS Redirect once the certificate shows as active.

Do I need FTP to host a website on cPanel?

No. File Manager with a ZIP upload is enough for most small sites. FTP with a program such as FileZilla is more convenient for large sites, many files, or frequent updates. Connect on port 21 with explicit FTP over TLS, using your cPanel or an FTP account login.

Can I upload a WordPress site through File Manager?

You can, but WordPress also needs its database imported and its configuration and site address updated, which is easy to get wrong. If you are moving an existing WordPress site, our team can migrate it for you. For a new site, install WordPress from cPanel instead; most WordPress sites suit the Linux 2 GB plan.

WhatsApp