Web HostingPublished on December 10, 20256 min read

How to create an FTP account in cPanel

An FTP account lets you upload your site's files from your computer to your web hosting. This guide shows how to create and manage FTP accounts in the client area and on cPanel, and how to connect with FileZilla, WinSCP or Cyberduck. It also covers the special accounts, the folders to know and common errors.


Create an FTP account in the client area

  1. Log in to dash.ouiheberg.com.

  2. In the left-hand menu, click My Services, then your hosting plan.

  3. Open the FTP access tab and click New account.

  4. Enter the Username, then the Allowed directory, under public_html/. Left empty, it gives access to all of public_html.

  5. Choose the Allowed space, type a Password or click Generate, then click Create.

New account window with the username agence, the allowed directory, the space and the password

The account appears in the list, with its folder and the space it uses. The Password link changes its password, and the bin icon deletes it.

The Connection settings card gives everything you need to connect.

  • The Server to enter in your FTP client.

  • Port 21, using FTP with explicit encryption (TLS).

  • The Main account, which opens the whole hosting space. Its password is changed from the advanced panel.

The other tabs of the page are covered in Access cPanel and manage your OuiHeberg web hosting.


Create an FTP account in cPanel

Click Advanced panel at the top right of the page. cPanel opens straight away, with no login details to type. In the Files section, click FTP Accounts.

  1. Under Add FTP Account, type a name in Log In, for example webmaster, then choose the Domain.

  2. Type the Password and repeat it in Password (Again), or click Password Generator. The Strength meter shows how strong it is.

  3. Check the Directory field (see below).

  4. Click Create FTP Account.

The full username combines the name and the domain, for example webmaster@mysite.com. That is what you will enter in your FTP client.

Add FTP Account form with the login, domain, password and directory fields

Choose the directory

The Directory sets the folder the account can access. The account sees that folder and everything in it, but cannot go above it. cPanel suggests a folder named after the account. Replace it if the account needs to work elsewhere.

DirectoryAccess givenFor whom
public_htmlthe main sitea developer or webmaster
public_html/blogthe blog folder onlya writer
public_html/wp-content/uploadsthe media of a WordPress sitesomeone who uploads images
the root of an addon domainthe site of that domainthe client or contractor for that site

The directory cannot be changed after creation. To change it, delete the account while keeping its files, then create it again.


Manage existing FTP accounts

The FTP Accounts list, further down the same page, shows each account's Log In and Path. Three actions are available.

  • Change Password replaces the account's password.

  • Delete removes the account. cPanel offers to delete the account alone, or the account with its folder.

  • Configure FTP Client shows the account's connection settings.

FTP Accounts list with the Change Password, Delete and Configure FTP Client actions

If the account's folder is public_html, deleting the account with its folder erases your whole site. Delete the account only.

Special FTP accounts

Under Special FTP Accounts, cPanel shows two accounts created with the hosting. They cannot be deleted.

  • The main account uses your cPanel username and opens the whole hosting space. It is the Main account of the client area. Its password is the cPanel password, which you change in cPanel, in the Preferences section.

  • The logs account, ending in _logs, gives access to the web server's raw logs.

For a few files, the File Manager in the Files section is enough. It works in the browser, with no FTP client.


Connect with an FTP client

By default, the hosting accepts FTP on port 21 with explicit encryption (TLS). This encryption protects your password and your files. Do not use FTP without encryption.

SettingValue
Serverthe server shown in the Connection settings card
Port21
Encryptionexplicit FTP over TLS
Usernamethe full username, for example webmaster@mysite.com, or the main account's username
Passwordthe account's password

Configure FTP Client panel with the account's server, port and username

Under Manual Settings, cPanel gives the server ftp.mysite.com and port 21, for both FTP and explicit FTPS. This name only works once your domain points to the hosting. Otherwise, use the server from the Connection settings card.

FileZilla

  1. Open the Site Manager from the File menu, then create a new site.

  2. Choose the FTP protocol and the encryption option that requires explicit FTP over TLS.

  3. Enter the server, port 21, the normal logon type, the username and the password.

  4. Click Connect.

On the first connection, FileZilla shows the server's certificate. Check that it carries the server name from the card, then accept it and tick the box that remembers it.

WinSCP

In the login window, choose the FTP protocol and explicit TLS/SSL encryption. Then enter the server, port 21, the username and the password, and log in.

Cyberduck

Create a new connection of type FTP-SSL (Explicit AUTH TLS). Enter the server, port 21, the username and the password, then connect.

What about SFTP?

SFTP runs over SSH. It is not enabled by default on the hosting. On every web hosting plan, you can ask for SSH and SFTP to be enabled by opening a ticket. Support will then tell you how to connect.

In the meantime, FTP with explicit encryption (TLS) protects your login details and your files just as well.


The hosting's folders

Here is the folder tree of a cPanel account, as seen with the main account.

/home/user/
├── etc/
├── logs/
├── mail/
├── public_ftp/
├── public_html/          ← root of the main site
│   ├── .htaccess
│   ├── index.php
│   └── wp-content/
├── ssl/
└── tmp/
FolderContentsFTP access to give
public_htmlthe main site's filesto the people who work on the site
logsthe web server's logsto you only
mailthe mailboxes' messagesto nobody
sslthe certificates and their keysto nobody

Each addon domain has its own root folder, shown in cPanel on the Domains page. The guide How to add a domain on cPanel explains it.


Set file permissions

Permissions say who can read, write or run a file. These values suit most sites.

ItemPermissionValue
Foldersrwxr-xr-x755
PHP and HTML filesrw-r--r--644
.htaccess filerw-r--r--644
Sensitive configuration filesrw-------600

In FileZilla, right-click the file or folder, open the file permissions, enter the value, then confirm.


Secure FTP access

  • Create one account per person, restricted to the folder they need.

  • Never give the main account or the root folder to a third party.

  • Use generated passwords, different for each account.

  • Delete temporary accounts as soon as the work is done.

  • Always connect using FTP with explicit encryption (TLS).


Fix common errors

530 Login incorrect

The username or password is wrong. For a secondary account, enter the full username (webmaster@mysite.com), not just webmaster. If needed, change the password in the client area or in cPanel.

530 User cannot log in, home directory inaccessible

The account's folder no longer exists. Create it again with the File Manager, or delete the account and recreate it with a valid folder.

Connection timed out or 425 Can't open data connection

The connection is blocked or the transfer mode does not suit. Check that your FTP client uses passive mode, FileZilla's default. Also check that your firewall or antivirus does not block port 21.

No files appear

The folder may be empty, or its files are hidden (their name starts with a dot, like .htaccess). Show hidden files in your client, then check the account's Path in cPanel.

Transfers are slow or stop

Lower the number of simultaneous transfers in your client to two or three. Check your internet connection and retry the failed files.

Certificate warning

Your client does not know the server's certificate yet. Check that it is issued for the server name in the Connection settings card, then accept it.


Need help?

Open a ticket from Tickets › Open a ticket (dash.ouiheberg.com/tickets/new), or click the Contact support tile at the bottom of your hosting page. You can also ask your question on our Discord.

Was this article helpful?

457 views
Share this article
Hébergement web
Need web hosting?

cPanel hosting with email accounts and databases, managed from the OuiHeberg client area.

View plans →
Hébergement web
Need web hosting?

cPanel hosting with email accounts and databases, managed from the OuiHeberg client area.

View plans →

Related Articles