How do you put a template site on cPanel hosting?

Edit the files on your computer, upload them into public_html, switch on HTTPS, check five things. No database, no installer, nothing to keep updated afterwards.

What you need open

  • your hosting login (the cPanel address is usually in the host’s welcome email)
  • the template zip
  • a plain text editor. Notepad or TextEdit in plain-text mode will do; VS Code is nicer and free
  • twenty minutes, plus however long you spend choosing words

This guide uses our Solo one-page site as the example. Any plain HTML template goes up the same way.

What’s in the zip

solo-one-page/
├── index.html                  the page: 6 sections
├── styles.css                  layout and type
├── paints.css                  your five colours, nothing else
├── region-map.svg              a diagram of which colour paints what
├── fonts/                      Young Serif and Instrument Sans, with their licences
├── README.md                   read this first
├── LICENCE.txt                 what you may do with the files
├── THIRD-PARTY-NOTICES.txt     font credits and licences
└── manifest.json               a list of every file, for reference

Three of those are the website: index.html, the two CSS files and the fonts folder. The rest is paperwork for you. region-map.svg is worth opening once in a browser; it shows which numbered area takes which paint.

Step 1. Make it yours before it goes anywhere

Work on your own computer first. Uploading and then editing live is how half-finished pages get indexed.

Colours. Open paints.css. With its longer comments trimmed, it holds five lines:

:root {
  --paint-1: #FAF3E3;  /* ground */
  --paint-2: #1F2A5C;  /* ink */
  --paint-3: #C8381F;  /* action: buttons, links */
  --paint-4: #F2C849;  /* highlight */
  --paint-5: #CFDCC8;  /* soft tint */
}

Those values are the example paints of Hollow Oak Joinery, our illustrative joiner. Replace the hex codes with yours and save. Don’t have five colours? Our paints tool pulls them from your logo and gives you this exact block to paste.

One caution: paint 2 is your text and paint 1 is what it sits on. Keep them far apart, dark on light or light on dark, or nobody over forty can read your prices.

Words. Open index.html in the editor. Your text sits between tags: the example headline is wrapped in an h1 tag and reads “Doors, stairs and shutters, made to fit houses that aren’t square.” Change what’s between the tags and leave the angle brackets alone. Each section starts with a boxed comment, so work top to bottom: header and hero, services, about, prices, gallery, contact.

Title and description. Near the top of index.html, change the title and the meta description. That’s what shows in a search result, and it’s the step everyone forgets.

The form’s address. A plain HTML file can’t send email by itself, so the template’s contact form opens the visitor’s own email app with the message filled in. It ships pointing at hello@example.com. Find mailto: in the contact section and put your address there. The README (section 6) also explains how to point the form at a form service instead.

Double-click index.html to see it in your browser. Happy? Upload.

Step 2. Upload to public_html

  1. Log in to cPanel and open File Manager.
  2. Open the folder public_html. Whatever is in here is your website. If the host left a placeholder index.html or default.html, delete it.
  3. On your computer, zip just the site files: index.html, styles.css, paints.css and the fonts folder. Each font’s licence text sits inside that folder and travels with it.
  4. In File Manager click Upload, choose that zip, wait for the bar to finish.
  5. Back in public_html, select the zip, click Extract, then delete the zip.

Now check the one thing that goes wrong most. index.html must sit directly inside public_html:

public_html/index.html                   right
public_html/solo-one-page/index.html     wrong: your site is now
                                         at yourdomain.fr/solo-one-page/

If it landed in a subfolder, open the subfolder, select everything, Move, and set the destination to /public_html.

Prefer FTP? Same destination. Use the FTP details from cPanel, pick the encrypted option (FTPS) if it’s offered, and drag the files into public_html.

Step 3. Switch on HTTPS

In cPanel look for SSL/TLS Status (some hosts label it Let’s Encrypt or AutoSSL). Most shared hosts include a free certificate; run it for your domain and the www version. It can take a few minutes to an hour.

Then visit your domain with https:// in front. A padlock means it worked. If the plain http:// address still opens without redirecting, look for a Force HTTPS Redirect switch under Domains.

Step 4. Five checks

  1. On your phone, on mobile data. Not on the wifi you uploaded from. Does it load, and does the business name fit on one line?
  2. Every link and button. Phone number taps to call, email opens mail, the menu jumps to the right section.
  3. The contact form. Send yourself a message the way a customer would. With the template as shipped, pressing send should open your email app with the message addressed to you. If it’s addressed to hello@example.com, go back to step 1.
  4. A private window. Your normal browser caches the old version. A private window shows what a stranger sees.
  5. A wrong address. Type your domain followed by /nonsense. You should get a “not found” page, not a list of your files.

When something looks wrong

What you seeUsual cause
The host’s “coming soon” pageTheir placeholder file is still in public_html, or yours is in a subfolder
Text, but no colours or layoutThe CSS files didn’t upload, or they sit in a different folder from index.html
Wrong typefaceThe fonts folder is missing or was renamed
Old version keeps showingBrowser cache. Private window, or hard refresh
“Not secure” warningThe certificate hasn’t issued yet, or you’re on the http:// address
Accents show as éThe file was saved in the wrong encoding. Re-save as UTF-8
A list of files instead of a pageNo index.html in that folder

Changing it later

Same routine, smaller. Edit the file on your computer, upload it over the old one, check in a private window. Keep the whole folder somewhere safe, with a date in its name. That folder is your backup and your entire website.

Checklist: upload day

Do it with a file, or have it fitted

All twelve guides