MarzleyTech Learn

Home / Learn / Web hosting & deployment / SSL certificates, business email and backups: HTTPS step by step, professional email setup and a backup strategy

SSL certificates, business email and backups: HTTPS step by step, professional email setup and a backup strategy

Three things separate an amateur website from a professional one: HTTPS (the padlock), business email on your own domain (info@yourbusiness.co.ke instead of yourbusiness2026@gmail.com), and backups that actually work when disaster strikes. Clients expect all three, browsers warn visitors away from sites without HTTPS, and lost websites without backups are painful and expensive to rebuild. This unit walks through each in practical detail.


Part 1: SSL/TLS and HTTPS

What a certificate does

An SSL/TLS certificate lets browsers and servers create an encrypted connection (HTTPS) and proves the site really belongs to that domain. Without it:

  • Passwords, form data and payment details travel readable by anyone on the network (e.g. public Wi-Fi).
  • Browsers show "Not secure" warnings, scaring customers away.
  • Modern features (geolocation, service workers, many payment integrations, M-Pesa callbacks) require HTTPS.
  • Google uses HTTPS as a ranking signal.

(The cybersecurity lesson on encryption and HTTPS explains the cryptography.)

Types of certificates

TypeVerifiesUse
DV (Domain Validated)You control the domainAlmost all websites; free from Let's Encrypt
OV (Organisation Validated)The organisation existsSome corporate sites
EV (Extended Validation)Stricter organisation checksBanks, large enterprises (browsers no longer show special green bars)
Wildcard*.yourdomain.co.ke (all subdomains)Many subdomains

For nearly every small business site, a free DV certificate is all you need; encryption strength is the same.

Installing HTTPS on cPanel

  1. Make sure the domain's DNS points to the hosting server.
  2. cPanel → SSL/TLS Status → select domains → Run AutoSSL. Certificates (Let's Encrypt or Sectigo) are issued in minutes and renew automatically.
  3. Turn on Force HTTPS Redirect (Domains page) or add the .htaccess redirect.
  4. In WordPress: Settings → General → set both URLs to https://.
  5. Visit the site and check the padlock.

On a VPS, use Certbot (sudo certbot --nginx -d yourdomain.co.ke -d www.yourdomain.co.ke), covered in the Linux web server project.

Mixed content

If an HTTPS page loads images, scripts or CSS over http://, browsers block them or show warnings. Fix by updating links to https:// (or relative URLs), using search-and-replace in the database for WordPress, and checking the browser console (F12) for "Mixed Content" messages.

HSTS and checks

After HTTPS works everywhere, add the HSTS header to make browsers always use HTTPS. Test configuration with SSL Labs (aim for an A grade). Monitor certificate expiry (AutoSSL/Certbot renewals usually just work, but failed DNS or blocked validation can stop renewals).


Part 2: Business email

Options

OptionProsConsBest for
Hosting (cPanel) emailIncluded with hosting; cheapBasic webmail; storage limits; deliverability depends on hostSmall businesses on a budget
Google WorkspaceGmail interface, excellent spam filtering, Drive, Meet, CalendarMonthly per-user costTeams who like Google tools
Microsoft 365Outlook, Teams, Office apps, OneDriveMonthly per-user costTeams using Word/Excel/Outlook
Zoho Mail and othersFree/low-cost tiersFewer integrationsVery small budgets

Setting up cPanel email

  1. cPanel → Email Accounts → Create: info@yourbusiness.co.ke, a strong password, storage quota.
  2. Read mail in Webmail (Roundcube) or connect apps.
  3. Common addresses: info@, sales@, support@, accounts@, and personal ones (wanjiku@). Use forwarders to send copies to someone, and autoresponders for out-of-office messages.

Connecting phones and Outlook (IMAP/SMTP)

Use the settings shown in cPanel → Email Accounts → Connect Devices. Typical values:

SettingIncoming (IMAP)Outgoing (SMTP)
Servermail.yourbusiness.co.ke (or the host's server name)Same
Port993 (SSL/TLS)465 (SSL/TLS) or 587 (STARTTLS)
UsernameFull email addressFull email address
AuthenticationPasswordPassword (SMTP authentication required)

Use IMAP (not POP3) so mail syncs across phone, laptop and webmail.

Deliverability: landing in the inbox

  • SPF, DKIM and DMARC records (cPanel → Email Deliverability checks and fixes them; Google/Microsoft give you their own values).
  • Send website form emails via authenticated SMTP (PHPMailer or a WordPress SMTP plugin), from an address on your domain, with the visitor's email as Reply-To, not as From.
  • Avoid mass marketing from your normal mailbox; use an email marketing service for newsletters.
  • Keep mailbox passwords strong; compromised accounts sending spam get the whole domain/server blacklisted.

Part 3: Backups

What to back up

ItemWhy
Website filesCode, themes, plugins, uploads (images, documents)
DatabasesProducts, orders, users, posts: usually the most valuable part
EmailImportant correspondence (often needs a separate solution)
Configuration.htaccess, config files (stored securely, as they contain secrets)
DNS recordsA copy of your zone so you can rebuild quickly

How often

Match backup frequency to how much data you can afford to lose:

  • Brochure site that rarely changes: weekly + before every change.
  • Blog or business site: daily.
  • Online shop or booking system: daily at least, ideally more often for the database.

The 3-2-1 rule

3 copies, on 2 different types of storage, 1 off-site. The host's own backups are one copy, but don't rely only on them: if the account is suspended, the host has an outage, or the backups were stored on the same server, you can lose everything.

Backup methods

MethodHow
Host's automatic backupsCheck how many days they keep and how to restore (JetBackup in many cPanels)
cPanel BackupDownload a full account backup or separate home directory/database backups
WordPress pluginsUpdraftPlus and similar: scheduled backups to Google Drive, Dropbox, S3
Scripts + cronDump the database and archive files, then copy off-server (VPS/advanced)
GitCode in a repository (not a backup of uploads/databases on its own)

Testing restores

A backup is only useful if you can restore it. Every month or quarter:

  1. Restore to a staging subdomain or local XAMPP.
  2. Check pages, logins, images and recent orders.
  3. Note how long it took (your realistic recovery time).

Disaster recovery plan (one page)

  • Where backups are and who has access.
  • Steps to restore the site and database.
  • How to point DNS to a new host if the current one fails.
  • Contacts: host support, developer, registrar.
Python · runs live in the interactive lesson
# How much data could you lose? Recovery Point Objective (RPO) by backup schedule
schedules = {"weekly": 7 * 24, "daily": 24, "every 6 hours": 6, "hourly": 1}
orders_per_hour = 4
for name, hours in schedules.items():
    print(f"{name:14} backups -> up to {hours} hours of data lost (~{hours * orders_per_hour} orders)")
Think about it: A client's WooCommerce shop was hacked and the host's backups only go back 3 days, all infected. What should have been in place, and what can you do now?Show answer

Daily off-site backups kept for 30+ days (3-2-1), with restore tests, plus updates and security hardening. Now: take the site offline or into maintenance mode, export orders/customers from the database, clean or rebuild from a known-clean copy (fresh WordPress, reinstall plugins from official sources, restore uploads after scanning), change all passwords and keys, update everything, and set up proper backups and monitoring going forward.

Summary

  • HTTPS encrypts traffic and builds trust; free DV certificates via AutoSSL/Let's Encrypt suit almost all sites; force HTTPS, fix mixed content, add HSTS.
  • Business email comes from your host, Google Workspace, Microsoft 365 or Zoho; use IMAP/SMTP with SSL ports 993/465/587.
  • Deliverability needs SPF, DKIM, DMARC and authenticated SMTP from websites.
  • Back up files, databases, email and configs on a schedule that matches data value; follow 3-2-1.
  • Test restores regularly and keep a one-page disaster recovery plan.

Check yourself

  1. Which free certificate authority provides most DV certificates?

    Show answer

    Let's Encrypt

  2. What is it called when an HTTPS page loads some files over http? (two words)

    Show answer

    mixed content

  3. Which email protocol syncs mail across devices: IMAP or POP3?

    Show answer

    IMAP

  4. Which port is used for IMAP over SSL/TLS?

    Show answer

    993

  5. In the 3-2-1 rule, how many copies should be off-site?

    Show answer

    1

  6. What is the only way to know a backup works?

    Show answer

    test a restore

Lesson 7 of 10 in Web hosting & deployment · Written by · Course notes