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.
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.htmlorindex.php, in lower case, at the top ofpublic_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.
- On your computer, select the files inside your website folder, not the folder itself, and compress them into a ZIP.
- In cPanel, open File Manager and double-click
public_html. - If a placeholder page is already there, delete it.
- Click Upload, choose your ZIP, and wait for the progress bar to finish.
- Go back to
public_html, right-click the ZIP and choose Extract. - Check that
index.htmlorindex.phpnow sits directly insidepublic_html, then delete the ZIP. - 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.
- Open MySQL Databases and create a new database.
- On the same screen, create a user with a strong password.
- Add the user to the database and tick All Privileges.
- Open phpMyAdmin, select the database and use Import to load your
.sqlfile. - 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.
| Mistake | What you see | Fix |
|---|---|---|
Files inside an extra folder, such as public_html/mysite/ | The placeholder page, an empty listing or a 403 error | Move the contents up into public_html |
| ZIP uploaded but not extracted | "Index of /" with the ZIP file listed | Right-click the ZIP and choose Extract |
Home page named Index.html or home.html | A file listing or 403 Forbidden | Rename it to index.html in lower case |
| File names and links in different letter case | Missing images or broken CSS | Match the case exactly; the server treats Logo.png and logo.png as different files |
| Domain still pointing at the old host | The old site, or nothing at all | Check the nameservers or A record and allow time for DNS to update |
| Forcing HTTPS before the certificate is issued | A browser security warning | Turn 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.