Skip to content
Getting started4 min read

How to publish your website online, step by step

Short answer

To publish a website you need hosting that stores and serves its files, and a domain visitors type. You upload the files to the hosting's public_html folder or install WordPress there, point the domain to the host's nameservers, and once DNS has propagated and the SSL certificate is issued, anyone can open the site over https.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. What you need
  2. The three parts of any live website
  3. Step 1: work out what kind of site you have
  4. Step 2: choose where to publish
  5. Step 3: upload the files
  6. Step 4: connect the domain
  7. Step 5: check the site is really live
  8. Step 6: tell Google about it
  9. What success looks like
  10. Troubleshooting
  11. On ArabyHost

A website running on your computer exists only for you. Publishing it means moving it to a server that is always on and connected to the internet, then giving it an address people know. This guide is for anyone with a finished or nearly finished site who wants everyone to reach it, however it was built.

What you need

  • The site’s files, or a decision to build it with WordPress directly on the hosting.
  • A registered domain, or a plan to register one.
  • A hosting account that suits the kind of site.

The three parts of any live website

Part What it does Example
Hosting A server that stores files and serves them to visitors The public_html folder in cPanel
Domain The name visitors type example.com
DNS Connects the name to the server Nameservers ns1.arabicode.com and ns2.arabicode.com

Step 1: work out what kind of site you have

  • Only HTML, CSS and images: a static site. It runs on any host, even free publishing services.
  • .php files and a database: a PHP site, needing hosting with PHP and MySQL. See uploading a PHP site.
  • WordPress: you install it on the hosting directly rather than uploading it from your computer.
  • A Node.js or Python app: needs a plan that runs those apps; see where to host an AI-built app.

Step 2: choose where to publish

Option Suits Limits
Free publishing services such as GitHub Pages and Netlify A static site or personal portfolio No PHP, database or business email; usage limits by plan
A site builder such as Google Sites or Wix People who haven’t built files yet The site stays on the platform and is hard to move
Hosting with cPanel WordPress, PHP, stores and static sites A paid subscription

Free options are compared in detail in free hosting options, and Netlify against hosting in Netlify or your own hosting.

Step 3: upload the files

Static or PHP site

  1. Zip the contents of the site folder on your computer so that index.html or index.php sits at the top level of the archive.
  2. Open cPanel, go to Files » File Manager and open public_html.
  3. Delete any default page, click Upload and upload the ZIP.
  4. Back in File Manager, right-click the file and choose Extract.
  5. Check that index.html is directly inside public_html.

Screenshots and edge cases are in uploading an HTML site.

WordPress

Install it with one click from the hosting panel, then build the pages at example.com/wp-admin. If you have a WordPress site on another host or on your computer, move it as in migrating WordPress.

Step 4: connect the domain

At your domain registrar, change the nameservers to:

ns1.arabicode.com
ns2.arabicode.com

Or, if you manage DNS elsewhere, add an A record pointing to the server’s IP address. Both methods are in connecting a domain to hosting. DNS propagation can take up to 48 hours.

Step 5: check the site is really live

  1. Open the site over mobile data rather than the office network, in a private window.
  2. Check the address starts with https:// and the padlock shows. In cPanel you can follow the certificate under Security » SSL/TLS Status.
  3. Check the domain with the DNS lookup tool to see the records point to the new server.
  4. Try links, forms and images on more than one device.

Step 6: tell Google about it

Add the site to Google Search Console, submit the sitemap and request indexing of the home page, as in publishing your site on Google.

What success looks like

Anyone, on any network, types your domain and sees your site with a padlock in the address bar; www.example.com and example.com both open the same site; the DNS lookup tool shows your domain’s A record pointing to the hosting server; and a few days after submitting it, Search Console starts listing your pages as indexed.

Troubleshooting

  • A default page or a file list appears: the files are in a subfolder or the index file is missing. See default page after upload.
  • The domain doesn’t open or shows the registrar’s page: the nameservers haven’t changed or propagation isn’t finished.
  • “Not secure” warning: the certificate hasn’t been issued yet. Wait after connecting the domain, then click Run AutoSSL.
  • Images don’t show: file names differ in letter case; the server treats Logo.png and logo.png as different files.

On ArabyHost

On ArabyHost you upload files as a ZIP in cPanel’s File Manager, deploy from GitHub through Git Version Control, or install WordPress in one click. Free SSL is issued automatically once the domain points to the server, and JetBackup takes daily backups. If your site is on another host, use the free migration help. Prices in your currency are on the pricing page.

FAQ

Can I publish a website for free?

Yes, for static sites: services such as GitHub Pages and Netlify publish HTML files for free on a subdomain, with usage and feature limits. WordPress, a PHP site with a database, or business email needs hosting.

What is the difference between publishing online and publishing on Google?

Publishing online makes the site open for anyone who types its address. Showing up in Google results comes after: you add the site to Google Search Console, submit a sitemap and wait for indexing.

I uploaded my site but it shows a default page. Why?

Usually the files are in a subfolder inside public_html instead of directly in it, the home page file isn't called index.html or index.php, or an old default file is still there.

How long until the site appears after connecting the domain?

Usually minutes to hours, though a nameserver change can take up to 48 hours to propagate. During that time some people may see it and others not yet.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.