How to upload and extract a zip file

Upload a whole website as one zip file and extract it on the server — much faster than uploading thousands of files individually.

Guide2 min readLast updated
On this page
  1. 1. Create the zip on your computer
  2. 2. Upload it
  3. 3. Extract
  4. 4. Check and tidy
  5. Existing files
  6. If it doesn’t work
  7. Common questions

Uploading one archive and extracting it on the server avoids the slow, error-prone upload of thousands of small files.

1. Create the zip on your computer

Select the contents of your site folder — index.html, css, images and so on — not the folder itself, and compress them.

  • Windows: select the files, right-click, Compress to ZIP file
  • Mac: select the files, right-click, Compress

Zipping the contents means extraction puts files straight into public_html rather than a subfolder.

2. Upload it

In System Info & Files › File Manager, open public_html and upload the zip. How to upload files with the DirectAdmin File Manager

3. Extract

  1. Select the zip file.
  2. Choose Extract.
  3. Confirm the destination is public_html (or the folder you want).
  4. Extract.

4. Check and tidy

  • Confirm index.html or index.php is directly inside public_html.
  • If everything landed inside an extra folder, select its contents, move them up one level and delete the empty folder.
  • Delete the zip — it uses disk space and could be downloaded by anyone who guesses its name.

Existing files

Extraction may overwrite files with the same names. Back up anything you might need first.

If it doesn’t work

These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.

Common questions

How do I upload and extract a zip file?

Upload the zip through the File Manager, then use its extract option to unpack it in place. Uploading one archive and extracting it is much quicker than uploading the same files one by one.

Check where the files land afterwards. Archives often contain a wrapping folder, which leaves your site at public_html/mysite/ instead of public_html/ — move the contents up a level if so.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going