Two-Part Install
Dùng cho site lớn (>5GB) hoặc khi server có timeout ngắn (thường gặp ở shared hosting). Tách workflow thành hai phase: giải nén file qua CLI + chạy installer qua trình duyệt.
Phase 1: Giải nén qua CLI
Trên server đích (cần SSH access), download archive về web root, sau đó dùng công cụ DupArchive extract:
php duparchive-extract.phar archive.daf .
Công cụ duparchive-extract.phar được kèm trong file installer hoặc tải về riêng từ trang documentation.
Lợi ích: giải nén qua CLI không bị ràng buộc bởi max_execution_time hoặc memory_limit của web server.
Phase 2: Chạy installer
Sau khi file đã giải nén xong, mở:
https://example.com/installer.php
Installer phát hiện file đã giải nén (qua manifest file) → skip step 1 (deployment), nhảy thẳng vào step 2 (DB install).
Phần còn lại giống Classic Install.
Khi nào dùng
- Archive >2GB (PHP ZipArchive có giới hạn ở build cũ)
- Shared hosting có timeout < 60 giây
- Server đích RAM thấp (giải nén qua PHP web sẽ out of memory)
- Cần kiểm soát tiến độ giải nén qua terminal
Lỗi thường gặp
duparchive-extract.pharkhông tải được: lấy từ folderlib/duparchive/trong installer.- Giải nén dừng giữa chừng:
disk_free_spacekhông đủ. Kiểm tra disk free. - Permission denied khi giải nén: tham khảo Khắc phục permission.