A website on cPanel hosting needs three things to work: the domain must point to the server, the files must be in the right folder, and a certificate must be in place so the site loads over HTTPS. Get those right and everything else is detail. This guide walks you through the whole process, from an empty account to a live, secure site, with either WordPress or your own HTML files.
The process at a glance
| Step | What you do | Where |
|---|---|---|
| 1. Domain | Point the domain to the hosting | Your registrar / cPanel Zone Editor |
| 2. Folder | Find the document root, usually public_html | cPanel › File Manager |
| 3. Content | Install WordPress or upload your files | cPanel › Software / File Manager |
| 4. HTTPS | Check or run AutoSSL | cPanel › SSL/TLS Status |
| 5. Test | Check the site in a private window | Your browser |
If you have never used cPanel before, read What is cPanel? first — it explains the dashboard and how to log in.
Step 1: Point your domain to the hosting
Visitors only reach your site if the domain's DNS points to your hosting server. You have two options.
Option A — use the host's nameservers. At your domain registrar, replace the existing nameservers with the ones in your hosting welcome email. All DNS is then managed in cPanel's Domains › Zone Editor, and records for the website and email are created automatically. This is the simplest choice if you have no other services on the domain.
Option B — keep your current DNS and add A records. If your DNS lives somewhere else (for example because email is hosted elsewhere), create or change two records there:
example.com. A YOUR_SERVER_IP
www.example.com. A YOUR_SERVER_IP
You find the server IP in cPanel under General Information. Do not touch the MX records if your email stays where it is.
Check what the world sees:
dig +short example.com A
dig +short www.example.com A
DNS changes can take a few hours to reach everyone. The guide How to point your domain to your hosting goes deeper into records and TTL.
Tip: You don't have to wait for DNS to start building. Add
YOUR_SERVER_IP example.com www.example.comto the hosts file on your own computer (/etc/hostson macOS and Linux,C:\Windows\System32\drivers\etc\hostson Windows) and your browser goes straight to the new server. Remove the line when DNS is live.
Step 2: Find the right folder
Every domain on the account has a document root — the folder whose content is shown when someone opens the domain. For the main domain that is public_html. A typical account looks like this:
/home/cpuser/
├── public_html/ ← main domain (example.com)
│ ├── .well-known/ ← used by AutoSSL, don't delete
│ └── index.html
├── example.net/ ← addon domain with its own folder
├── shop.example.com/ ← subdomain
├── mail/ ← mailboxes
└── tmp/
When a visitor opens the domain, the web server looks for an index file — index.php or index.html — in the document root. If none exists, the visitor gets a directory listing or a 403 error.
Warning: Everything inside
public_htmlcan be downloaded from the internet. Never leave backups, database dumps or ZIP files with passwords in there.
Step 3: Add your content
Option A: Install WordPress
Most people building a site they will edit themselves choose WordPress. In cPanel you can install it in two ways:
- With an installer under Software (such as WordPress Toolkit or Softaculous, depending on your host). You choose the domain, leave the directory field empty to install in the root, set an admin username and a strong password, and the installer creates the database for you.
- Manually — create a database and user with the MySQL Database Wizard, upload WordPress from wordpress.org, and run the installer in the browser.
The detailed walkthrough is in How to install WordPress with cPanel.
Option B: Upload your own HTML site
If you have a finished static site — from a designer, a site generator or written by hand — upload it with File Manager:
- Open Files › File Manager and go into
public_html. - Delete any placeholder file the host has put there (often a default
index.html), but leave.well-knownandcgi-binalone. - Click Upload and select a ZIP file of your site.
- Right-click the ZIP and choose Extract. Make sure the files end up directly in
public_html, not in a subfolder. - Check that
index.htmlis inpublic_htmlitself. - Delete the ZIP file.
If you have SSH access, the same can be done from the command line:
cd ~/public_html
unzip ~/site.zip
find . -type d -exec chmod 755 {} \; # folders 755
find . -type f -exec chmod 644 {} \;
rm ~/site.zip
For larger uploads, an FTP client is often more comfortable — see How to upload files with File Manager for both methods.
Step 4: Turn on HTTPS
On most cPanel servers AutoSSL issues free certificates automatically, but only once the domain actually points to the server. Open Security › SSL/TLS Status:
- A green padlock next to
example.comandwww.example.commeans you are done. - If not, click Run AutoSSL and wait a minute or two.
- If it fails, the message usually says that the domain does not resolve to the server yet. Check DNS again.
When the certificate is in place, make sure visitors are always sent to HTTPS. The guide How to install an SSL certificate and enable HTTPS covers redirects and mixed content.
Step 5: Test the website
Open a private browser window, so you don't see a cached copy, and check:
http://example.comandhttp://www.example.comboth end up on the HTTPS version.- The padlock is shown and the certificate is valid.
- Images, styles and subpages load.
- Forms send email, if you have any.
From a terminal you can see the full redirect chain:
curl -sIL http://example.com | grep -E "^HTTP|^location"
Hosting more sites on the same account
Many plans allow more than one website. In cPanel open Domains › Domains and click Create A New Domain. Untick Share document root so the new domain gets its own folder, then point its DNS to the server as in step 1. Subdomains such as shop.example.com are created in the same place. The guide How to add another domain in cPanel explains the options.
Common problems and fixes
- The old website still shows. DNS hasn't updated yet, or your browser is showing a cached copy. Check with
digand use a private window. - 403 Forbidden. There is no
index.htmlorindex.phpin the document root, or permissions are wrong. Files should be644and folders755. - The site only works at example.com/mysite/. The ZIP extracted into a subfolder. Move the files up one level into
public_html. - "Not secure" warning. The certificate isn't issued yet. Run AutoSSL again once DNS points to the server.
- WordPress shows "Error establishing a database connection". The database details in
wp-config.phpdon't match what you created in cPanel.
In short
Point the domain to the server, put your files in the right document root, let AutoSSL issue a certificate, and test in a private window. Choose WordPress if you want to edit the site yourself, or upload static files if you already have a finished design.
Build your site on Hostigan
Hostigan's web hosting gives you cPanel with everything used in this guide. Need a domain first? You can register one on the domains page.
Frequently asked questions
Uploading files takes effect immediately, but if you have just changed DNS or nameservers it can take from a few minutes to several hours before everyone reaches the new server.