Hosting & cPanel · guide 6 of 16

FTP accounts and uploading your website

Your website is just a folder of files until it’s on the server. Here’s exactly where those files need to go and the three ways to get them there: File Manager in your browser, an FTP program such as FileZilla, or straight from the code editor you write your site in.

About 25 minutes Updated 26 November 2026By

In this guide

  • learn where your website’s files live on the server;
  • upload with File Manager — the quickest way for a few files or a zip;
  • create FTP accounts in cPanel and find the connection details every program asks for;
  • connect with an FTP program (FileZilla), or upload from your code editor (Visual Studio Code or Dreamweaver) every time you save;
  • get file permissions right and fix the usual upload errors.

Using WordPress? You add pages, images, themes and plugins from the WordPress dashboard instead, and rarely need any of these tools. They’re still handy when something goes wrong.

Where your files go: public_html

Your hosting account has a home folder. Inside it, public_html is the one the world can see: whatever you put there is your website. The file called index.html or index.php in it is your home page.

/home/yourusername/       ← your home folder (not public)
├── public_html/          ← your website: mybusiness.co.uk
│   ├── index.html       ← the home page
│   ├── about.html       ← mybusiness.co.uk/about.html
│   ├── .htaccess        ← web server rules (hidden file)
│   ├── images/
│   └── css/
├── config/              ← safe place for passwords, outside public_html
├── mail/                ← your mailboxes — don’t touch
├── logs/  tmp/  etc/    ← used by cPanel — don’t touch
  • Upload the contents of your site folder into public_html, not the folder itself. If you upload a folder called mysite, your home page ends up at mybusiness.co.uk/mysite/.
  • Extra websites on Plus and Ultimate plans each get their own folder, which you choose when you add the domain in cPanel Domains Domains — the Document Root column shows which.
  • Files outside public_html can’t be reached from a browser. Keep passwords and private settings there.

Which way to upload?

All three put the same files in the same place. The difference is where you do it from, and how much you’ll be uploading.

File ManagerFTP program (FileZilla)Your code editor (VS Code, Dreamweaver)
Install anything?No — it’s in cPanelYes, a free programVS Code: a free extension. Dreamweaver: built in
How you uploadDrag files into your browserDrag files between two panesSave the file, or one command for the whole site
Best forA few files, uploading and unzipping a whole site, quick editsBig uploads, downloading backups, sites built with any toolCoding your own site and changing it often
Give someone else access?Only by sharing cPanel — don’tYes — both use the same FTP accounts, each limited to one folder

Upload with File Manager

  1. Log in to cPanel and open cPanel Files File Manager.

  2. Double-click public_html in the list on the left so it’s the folder you’re in.

  3. Select Upload in the toolbar, then drag your files onto the page (or choose Select File). Tick Overwrite existing files if you’re replacing pages.

  4. When the bars turn green, select Go Back to “/home/…/public_html” and check your files are there.

Uploading a whole site? Zip it first

Uploading hundreds of files one by one is slow. On your computer, select everything inside your site folder and compress it to a .zip (Windows: right-click › Compress to ZIP file; Mac: right-click › Compress). Upload the zip to public_html, select it, choose Extract, then delete the zip.

Editing, hidden files and the bin

  • Edit a file — select it and choose Edit. Great for a quick fix; for bigger changes, edit on your computer in a code editor and upload.
  • See .htaccess and other hidden files — select Settings (top right) and tick Show Hidden Files (dotfiles).
  • Deleting moves files to the Trash unless you tick Skip the trash. Empty the trash now and then — it still counts towards your storage.

Set up FTP in cPanel

FTP (File Transfer Protocol) lets a program on your computer copy files to and from the server. FileZilla, Visual Studio Code and Dreamweaver all use it, so whichever you choose, you start here. Your account already has a main FTP login — your cPanel username and password — which can reach your whole home folder. For day-to-day use, and for anyone else, create separate accounts limited to the folder they need.

  1. Open cPanel Files FTP Accounts.

  2. Log In — a name such as ian or designer. Choose the Domain; the full FTP username becomes designer@mybusiness.co.uk.

  3. Password — use Password Generator and save it in a password manager.

  4. Directory — the top folder this login can reach. cPanel suggests public_html/designer, which is almost never what you want: change it to public_html for your website, or to a specific sub-folder to limit someone to that part. They can’t see anything above it.

  5. Quota — a size limit for what the account can upload, or Unlimited.

  6. Select Create FTP Account. Below the form you can change its password or quota, or delete it when the work is done (choose Delete, not Delete the user’s home directory, unless you want the files gone too).

  7. Select Configure FTP Client next to the account. It shows the exact username, server and port to type into your program, and has ready-made settings files for some FTP programs.

The details every program asks for

FileZilla, VS Code and Dreamweaver label them slightly differently, but they all want the same six things:

DetailWhat to use
Server / host / FTP addressYour domain, e.g. mybusiness.co.uk, with no ftp:// or https:// in front. If your program complains the certificate doesn’t match, use your server’s own name instead — it’s in your OnPoint welcome email.
Port21
EncryptionExplicit FTP over TLS (also called FTPES or “explicit FTPS”). Not plain FTP, and not implicit, which uses port 990.
UsernameThe full FTP username, e.g. ian@mybusiness.co.uk — or your cPanel username for the main account
PasswordThat FTP account’s password (not your email or Client Area password)
Remote folder / root directory/ for an account whose Directory is public_html — you’re already in your website. /public_html if you log in with your main cPanel account, which starts in your home folder.

FTP program or code editor?

An FTP program such as FileZilla is a separate app that does one job: it shows your computer on one side and the server on the other, and you drag files across. Many code editors can do the same job from inside the editor, so the file you’ve just changed goes up without switching programs. They connect in exactly the same way, with the same FTP account.

FTP program (FileZilla)Upload from your editor
Day-to-day changesSave in your editor, switch to FileZilla, find the file, drag it acrossSave the file — it can upload automatically
Seeing what’s on the serverClear: both sides side by sidePossible (a remote file list), but less obvious
Downloading a backup of the whole siteEasy — drag public_html to your computerPossible, but FileZilla is simpler
Works withAny editor, website builder or AI toolOnly that editor
Main riskForgetting to upload a changed fileUpload on save sends every typo live straight away
Where the login is storedFileZilla’s settings (protect them with a master password)A settings file in your project (VS Code) or the site settings (Dreamweaver)

Plenty of people use both: their editor for everyday changes, and FileZilla for the first big upload and for taking a backup before a large change.

Not sure which editor to use? See code editors compared.

Connect with FileZilla

FileZilla is free for Windows, Mac and Linux. Download FileZilla Client only from its official site, and decline any extra offers in the installer. Then:

  1. Open File › Site Manager and select New site. Name it after your website.

  2. Enter the settings below and select Connect.

  3. The first time, FileZilla shows the server’s certificate. Check it’s for your host’s server, tick Always trust this certificate and select OK.

  4. Your computer is on the left, the server on the right. Open public_html on the right, open your site folder on the left, and drag files across. Drag from right to left to download.

FileZilla settingWhat to choose
ProtocolFTP – File Transfer Protocol
HostYour domain, e.g. mybusiness.co.uk — or your server’s own name from your OnPoint welcome email, which avoids a certificate warning
PortLeave blank (21)
EncryptionRequire explicit FTP over TLS
Logon TypeNormal (or Ask for password on a shared computer)
UserThe full FTP username, e.g. ian@mybusiness.co.uk (or your cPanel username for the main account)
PasswordThat account’s password

Upload from Visual Studio Code

Visual Studio Code can’t upload on its own, so you add a free extension. The one to use is SFTP by Natizyskunk — despite the name, it does FTP with encryption too, which is what cPanel accounts use. (An older version by liximomo is no longer updated, so skip that one.) Create an FTP account in cPanel first (above).

  1. Open the Extensions view (Ctrl+Shift+X, or Cmd+Shift+X on a Mac), search for sftp, and select Install on SFTP by Natizyskunk.

  2. Choose File › Open Folder and open your site folder — the one whose contents belong in public_html. The extension’s settings are saved for this folder only, so each website gets its own.

  3. Open the Command Palette (Ctrl+Shift+P, or Cmd+Shift+P), type SFTP: Config and press Enter. A settings file called sftp.json opens, inside a new .vscode folder.

  4. Replace what’s in it with the settings below, using your own domain and FTP username, and save it. "secure": true turns on encryption — never leave it out.

  5. For the first upload, run SFTP: Sync Local -> Remote from the Command Palette. It asks for the FTP password, then copies your whole site up. Check it in a private browser window.

  6. From then on, run SFTP: Upload Active File to send the file you’re working on, or change "uploadOnSave" to true so every save uploads by itself.

.vscode/sftp.json
{
    "name": "mybusiness.co.uk",
    "host": "mybusiness.co.uk",
    "protocol": "ftp",
    "port": 21,
    "secure": true,
    "username": "ian@mybusiness.co.uk",
    "remotePath": "/",
    "uploadOnSave": false,
    "ignore": [".vscode", ".git", ".DS_Store", "node_modules"]
}
SettingWhat it does
hostYour domain, or the server name if you see a certificate error
protocol, port, secure"ftp", 21 and true — explicit FTP over TLS, the same as FileZilla
usernameThe full FTP username from cPanel
remotePath"/" for an FTP account limited to public_html; "/public_html" for your main cPanel login
uploadOnSavetrue uploads each file as you save it
ignoreFiles that must never be uploaded — always keep .vscode in this list

To see and download what’s on the server, run View: Show SFTP, which opens a remote file list in the sidebar. SFTP: Download Active File fetches the live copy of the file you have open.

Upload from Dreamweaver

Adobe Dreamweaver is a paid subscription, on its own or as part of Creative Cloud. Uploading is built in: you describe your website once as a site, and Dreamweaver keeps your computer and the server in step. Create an FTP account in cPanel first (above).

  1. Choose Site › New Site. Give it a Site Name and set Local Site Folder to your site folder on your computer.

  2. Select Servers on the left, then the + button to add a new server.

  3. On the Basic tab: any Server Name; Connect using FTP over SSL/TLS (explicit encryption); FTP Address your domain (no ftp://), port 21; your full FTP Username and Password.

  4. Root Directory — / for an account limited to public_html, or /public_html for your main cPanel login. Web URL — your website’s address. Under More Options, tick Use Passive FTP. Select Test, and when it connects, Save.

  5. Check the Remote box is ticked for the new server, then select Save.

  6. In the Files panel (Window › Files), select Connect. Select files or folders and choose Put (the up arrow) to upload, or Get (down arrow) to download. Synchronise uploads everything that’s changed.

When you Put a page, Dreamweaver asks whether to include dependent files — the images and stylesheets it uses. Choose Yes the first time; after that, No is quicker if only the page has changed.

Other code editors

EditorHow to upload
PhpStormBuilt in: Settings › Build, Execution, Deployment › Deployment, add an FTPS server, then turn on automatic upload in Tools › Deployment.
Notepad++The free NppFTP plugin (Plugins › Plugins Admin). Choose FTPES — that’s explicit FTP over TLS.
Sublime TextThe SFTP package by Wbond, which needs its own licence after a trial.
Anything elseUse FileZilla alongside it — it works with every editor.

File permissions

Permissions decide who can read, change and run each file. Uploads normally get the right ones automatically, but if a page shows 403 Forbidden, check them in File Manager (select the file, then Permissions) or in FileZilla (right-click › File permissions).

ItemPermission
Files (.html, .php, .css, images)644
Folders755
Files holding passwords600 or 640
Never use 777 — it lets anything on the server change the file, and most servers refuse to run PHP files with it.

Upload checklist

  • The home page is called index.html or index.php, in lower case, directly inside public_html.
  • File names are lower case, with hyphens instead of spaces. The server treats Logo.png and logo.png as different files, even though your computer may not.
  • Links match the file names exactly — that includes capital letters and folder names.
  • Nothing private goes up — no .vscode folder, .git folder, backups or .zip files in public_html.
  • Leave anything you didn’t create, such as cgi-bin or .well-known. The .well-known folder is used to issue your SSL certificate.
  • Check it in a private browser window, so you’re not looking at an old copy your browser saved.

Troubleshooting

ProblemTry this
“530 Login authentication failed”Use the full FTP username (name@yourdomain) and that account’s password, not your email password.
FileZilla or Dreamweaver times out listing foldersMake sure Passive mode is on (FileZilla: Edit › Settings › Connection › FTP; Dreamweaver: Use Passive FTP), and check your firewall or antivirus isn’t blocking the program.
VS Code: “Hostname/IP does not match certificate’s altnames”The certificate is for the server’s own name. Put that name (from your OnPoint welcome email) in host instead of your domain — never switch secure off.
Files end up in public_html/public_htmlThe remote folder is wrong. For an FTP account limited to public_html, use / (VS Code remotePath, Dreamweaver Root Directory).
I save in VS Code but nothing changes on the siteuploadOnSave is still false, or the file isn’t inside the folder you opened. Run SFTP: Upload Active File and watch for errors in the Output panel.
The site shows “Index of /” or 403 ForbiddenThere’s no index.html/index.php in public_html, it has a capital letter, or it’s inside a sub-folder.
My changes don’t showYour browser is showing a saved copy — refresh with Ctrl+F5 (Cmd+Shift+R on a Mac), or check you uploaded to the right domain’s folder.
I can’t see .htaccessFile Manager: Settings › Show Hidden Files. FileZilla: Server › Force showing hidden files.
Upload fails part-wayYou may be out of storage — check the statistics panel in cPanel — or the file is very large; zip it and use File Manager.

Next: build your first page

Now you know where everything goes, put something there. Our page template is a modern HTML5 page you can copy, save as index.html and upload in a minute — then follow the eight steps to finish your site.

Ready to build? Every guide on this site was written and tested on OnPoint Hosts — UK cPanel hosting with free SSL and a free first-year domain, from £4.25 a month.

Get hosting

Cookie Preferences Manager

We use strictly necessary cookies to run this site. With your permission we’d also like to use optional cookies to measure site performance and personalise marketing — these stay off until you choose to turn them on. Read our Cookie Policy and Privacy Policy.

Right now this site doesn’t set any optional cookies, whatever you choose.

You can change your mind at any time using the “Cookie settings” link at the bottom of every page.

Optional cookies