Web hosting · Practical guide

Transfer website files without sharing your main login

Use a limited account, preview an rsync transfer and verify the destination before copying files.

Archive placement: July 2023

A hand holding a USB storage drive

Move website files with cPanel File Manager or a restricted, encrypted FTP account. You can give a developer the access needed for the job without handing over the main cPanel login, unrelated websites or customer mailboxes.

1. Choose browser access or a limited transfer account

You do not need to give a developer the main cPanel password merely to upload a few website files. Choose the smallest access method that can do the work.

  1. For a one-time change, have the developer send the files or archive to you, then upload them yourself in File Manager.
  2. If ongoing file access is needed and FTP Accounts is enabled, create a separate account limited to the website folder.
  3. Agree which folders can change, who will upload, when the change will happen and how the old version will be restored.

A transfer account is not a database login or a cPanel administrator. Keep those roles separate. A developer who only needs to update page assets should not receive access to unrelated sites, mailboxes and account billing.

2. Find the exact website folder in cPanel

File uploads belong in the document root for the domain being changed. Additional domains may use a different folder from the account’s main website.

  1. Open cPanel → Domains and find the affected domain. Record its Document Root.
  2. Open File Manager at that path and check for the expected index file and application folders.
  3. Turn on Show Hidden Files in Settings so you can see whether the deployment includes .htaccess or other hidden files.

Keep a private backup outside the public directory before overwriting anything. Agree whether configuration, uploaded media and existing user data are excluded from the incoming files; replacing them casually can break a working site.

3. Prepare a recoverable upload

An archive can be more convenient than selecting hundreds of small files individually. Keep production settings and customer uploads separate from the code being replaced.

  1. Download or back up the affected files and, for an application update, its matching database.
  2. Review the archive on your computer. Remove unrelated development files, test credentials and local backups.
  3. Check the expected folder layout before uploading. An archive with a top-level project folder may need extraction into a temporary location rather than directly over the live root.

Schedule a maintenance window when the application requires one. For a shop, confirm how new orders and uploads will be preserved during any rollback. A copy of last week’s database is not a safe answer to every deployment failure.

4. Upload through File Manager

The browser workflow keeps the main cPanel login with you and is suitable for many small or occasional deployments.

  1. In the intended directory, choose Upload and select the files or archive. Wait for each upload to finish.
  2. For an archive, return to File Manager, select it and choose Extract. Inspect the result before moving replacement files into the live location.
  3. Confirm which files will be overwritten. Keep configuration and uploads that were excluded from the deployment in place.

Do not leave the uploaded archive publicly downloadable. After the working files have been checked and a private recovery copy is safe, remove temporary archives from the website directory.

5. Use a restricted FTP account when repeat access is needed

FTP Accounts is optional and can be disabled by the hosting provider. If it is unavailable, use File Manager or ask about another supported access method.

  1. Open cPanel → FTP Accounts and create a separate username with a strong password.
  2. Set Directory to the exact website folder. Review the complete path that cPanel displays before saving.
  3. Use Configure FTP Client or the provider’s connection details in your client. Choose supported FTP over TLS (FTPS), verify the server address and do not accept an unexpected certificate warning.

FTPS and SFTP are different protocols. Do not assume an SFTP connection is available just because FTP Accounts appears in cPanel. Use the provider’s documented method rather than guessing ports or sharing the main administrator password.

6. Review the result before considering the transfer finished

A completed upload says the files arrived, not that the correct website is serving them.

  1. Compare the expected filenames, sizes and modification times in File Manager with the deployment list.
  2. Open the website in a private browser window. Check a changed page and an existing page, then test images, links and any affected form.
  3. If a cache is used, clear the relevant application or CDN cache and repeat the test while logged out.

A missing asset can be caused by a case-sensitive filename or a wrong folder rather than permissions. If the update fails, restore the known files and check the application error before trying another broad upload.

7. Check application changes and keep a clear rollback

Files and database settings can depend on each other. An upload that changes the application schema may need its documented upgrade steps too.

  1. Complete any update screen the application requires after the file change.
  2. Test sign-in and the customer workflow affected by the update. Use test mode for payments and external integrations.
  3. Record the changed version, successful checks and any issue. Keep the recovery set until you are confident that background jobs and normal traffic are working.

Do not restore an old live database without considering newer orders, messages and edits. For a failed update involving data changes, involve support or the application maintainer before discarding recent business records.

8. Close access that is no longer needed

A temporary developer account should not quietly become permanent access to the website.

  1. After the agreed work is accepted, delete the temporary FTP account from cPanel → FTP Accounts.
  2. Choose the account-only removal option. Do not choose an option that also deletes the account’s home directory unless deleting those website files is separately intended.
  3. Remove temporary application users and deployment archives, and keep the project record and private backup.

If any main account password was shared, replace it and review other saved access. For continuing work, use a named, restricted account so it is clear who can change the site and how that access can be revoked.

Common questions

Can I upload a website without creating an FTP account?

Yes. File Manager can upload individual files and supported archives through the browser. Use the document root shown for the domain and check the extracted folder structure before replacing live files.

Does deleting an FTP user delete the website?

Use the account-only removal option when you only want to revoke access. cPanel can also offer an option that removes its home directory; that is a separate, destructive action and should not be selected for routine access removal.

Further reading

← Back to all guidesDiscuss your hosting setup ↗