How to Upload and Extract Split Archives (.zip.001, .002, etc.) in cPanel Without Terminal Access
Bypass cPanel upload limits for split .zip.001 archives: rename extensions via CMD, upload, then combine and extract them on the server with a custom unzip.php script.
Key takeaways
- Split large files with 7-Zip by setting a volume size such as 10M or 50M to produce .zip.001, .zip.002 parts.
- Append .pdf to split parts with a CMD ren command so cPanel's uploader accepts them.
- After uploading, remove the .pdf extension in cPanel File Manager to restore the original .001 names.
- Create unzip.php to merge the split parts into one ZIP and extract it with ZipArchive on the server.
- Delete unzip.php, the merged ZIP, and the split parts afterward to free disk space.
Sometimes cPanel restricts multi-part split archives during upload, or your web hosting environment does not provide SSH/Terminal access. This tutorial covers how to bypass upload restrictions, bulk rename file extensions using Windows Command Prompt (CMD), and use a lightweight PHP script to combine and extract your split .zip files directly on the server.
Step 1: Split Your Archive (On Your Local Computer)
If you have a large file that needs to be broken down into smaller parts before uploading (e.g., using 7-Zip on Windows):
Open 7-Zip File Manager.
Right-click the folder or file you want to compress and select Add to archive...
In the Split to volumes, bytes section, set your desired split size (e.g., 10M or 50M).
Click OK. 7-Zip will generate split archive parts named filename.zip.001, filename.zip.002, and so on.
Step 2: Temporarily Rename Extensions for Uploading
cPanel's web uploader often blocks non-standard or numeric extensions like .001 or .002. Adding a permitted extension like .pdf allows you to upload the files cleanly.
Open the folder containing your split archive parts on your local computer.
Click on the folder's address bar at the top, type cmd, and press Enter (this opens Command Prompt directly in that directory).
Run the following command to append
.pdfto all split parts at once:Plain text ren "LTPK UiTM 2025.zip.*" "LTPK UiTM 2025.zip.*.pdf"(Example: LTPK UiTM 2025.zip.001 will be renamed to LTPK UiTM 2025.zip.001.pdf)
Upload all the .pdf files to your target directory using cPanel File Manager.
Step 3: Remove the .pdf Extension in cPanel
Once all files are uploaded to cPanel:
Rename each file in cPanel File Manager by removing the .pdf extension at the end.
Ensure your files are restored to their exact original names: LTPK UiTM 2025.zip.001 through LTPK UiTM 2025.zip.023.
Step 4: Combine & Extract Files Using unzip.php
Because cPanel File Manager does not natively provide an Extract option for split archive parts (.001), use this custom PHP script to stitch and unzip them automatically.
Inside the cPanel directory where your split files are located, click + File in the top-left toolbar.
Name the file unzip.php and click Create New File.
Right-click unzip.php, select Edit, and paste the following PHP code:
<?php
// 1. Combine all split parts (.001, .002, etc.) into a single ZIP file
$newFile = 'LTPK_UiTM_2025_gabung.zip';
$fp = fopen($newFile, 'wb');
// Change '23' to the total number of split parts you uploaded
for ($i = 1; $i <= 23; $i++) {
$part = 'LTPK UiTM 2025.zip.' . str_pad($i, 3, '0', STR_PAD_LEFT);
if (file_exists($part)) {
fwrite($fp, file_get_contents($part));
}
}
fclose($fp);
echo "File merging complete! Extracting archive...<br>";
// 2. Extract the merged ZIP archive
$zip = new ZipArchive;
if ($zip->open($newFile) === TRUE) {
$zip->extractTo('./');
$zip->close();
echo "SUCCESS! Files extracted successfully.";
} else {
echo "Failed to extract ZIP archive.";
}
?>Click Save Changes and close the editor.
Open your web browser and navigate to the script URL (e.g., [https://yourdomain.com/folder_name/unzip.php](https://yourdomain.com/folder_name/unzip.php)).
You will see the message "SUCCESS! Files extracted successfully." once completed.
Step 5: Cleanup
Go back to cPanel File Manager and safely delete:
The unzip.php script file.
The merged temporary archive (LTPK_UiTM_2025_gabung.zip).
The original split part files (.001 to .023) to free up disk space.
Did this tutorial help?
0 readers found this helpful
Comments
No comments yet. Questions about this tutorial are welcome here: the answer helps the next reader too.