Skip to content
Free website migration on every plan, done by our team.Learn more ›
Guides

How do I upload my website to my hosting?

Upload a website to your hosting with cPanel File Manager or SFTP: where the files go, how to upload a database, connect the domain and check everything works.

Short answer: Put your website's files in the public_html folder of your hosting, using cPanel's File Manager (upload a zip and extract it) or an SFTP app. If the site uses a database, create one in cPanel and import it with phpMyAdmin, then update the site's settings. Finally, make sure your domain points to the hosting and SSL is active.

Whether a developer built your site, you exported it from another host or you made a simple HTML page yourself, getting it online follows the same few steps. Here's how to do it without losing anything.

Step 1: get the files ready

  • For a plain HTML site: the folder with index.html, images, CSS and scripts.
  • For WordPress or another PHP app: all the site files plus a database export (a .sql file).
  • Zip the folder on your computer. One zip uploads much faster than thousands of small files.

Step 2: upload with cPanel File Manager (easiest)

  1. Log in to cPanel and open File Manager.
  2. Open the public_html folder. This is the root of your main domain.
  3. Click Upload and choose your zip file.
  4. Back in File Manager, right-click the zip and choose Extract.
  5. Make sure index.html or index.php sits directly inside public_html, not in a subfolder. Move files up a level if needed.
  6. Delete the zip file.

For an addon domain or subdomain, upload into that domain's own folder instead (cPanel shows it under Domains).

Step 2 (alternative): upload with SFTP

For large sites or regular updates, an SFTP app such as FileZilla is handier:

  1. Get your SFTP or FTP details from cPanel (FTP Accounts) or use your cPanel login with SFTP if your host allows it.
  2. Connect to your server on port 22 (SFTP) or 21 (FTP with TLS).
  3. Drag your files into public_html.

Always prefer SFTP to plain FTP, which sends passwords unencrypted. See FTP vs SFTP.

Step 3: upload the database (for WordPress and apps)

  1. In cPanel, create a database and a user, and add the user to the database. See what is a database.
  2. Open phpMyAdmin, select the new database and use Import to upload your .sql file.
  3. Edit the site's configuration file (wp-config.php for WordPress) with the new database name, user and password.
  4. If the domain has changed, update the site address. For WordPress, use a careful search-and-replace tool.

Moving a complete WordPress site? Our WordPress migration guide covers every step, or AuroxHost's team can do it for free.

Step 4: connect the domain and check SSL

  1. Make sure your domain points to your hosting. See how to connect a domain to hosting.
  2. Wait for the free SSL certificate to be issued, then check it with our SSL checker.
  3. Open your site in a private browser window and test the main pages, links, forms and images.

Common problems

What you seeLikely causeFix
A list of files, or the host's default pageFiles are in a subfolder, or there's no index fileMove index.html or index.php into public_html
403 ForbiddenWrong permissionsFolders 755, files 644. See file permissions
Error establishing a database connectionWrong details in the config fileCheck name, user, password and host
Images or styles missingLinks point to the old address or wrong caseFix paths; file names are case-sensitive on Linux
404 on inner pages (WordPress)Missing .htaccess or permalinksRe-save Settings → Permalinks

More help in HTTP status codes.

Frequently asked questions

Where do I upload my website files?

Into public_html for your main domain, or the folder cPanel assigns to an addon domain or subdomain.

Can I upload a website from my phone?

Small changes, yes, with cPanel File Manager in a mobile browser. For full sites, a computer is easier.

Do I need FTP?

No. cPanel's File Manager handles most uploads. SFTP is helpful for large sites and frequent updates.

Can I build the site directly on the hosting instead?

Yes. Install WordPress with one click and build it there. See how to install WordPress.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.