================================================================================
              PANDUAN DEPLOYMENT KE RUMAHWEB HOSTING
                  HUEMAN THEME WEBSITE PROJECT
================================================================================

DAFTAR ISI
----------
1. Persiapan Sebelum Deployment
2. Backup dan Kompresi Project
3. Upload ke RumahWeb
4. Konfigurasi di RumahWeb
5. Testing dan Verifikasi
6. Masalah Umum dan Solusi
7. Maintenance Setelah Deployment

================================================================================
1. PERSIAPAN SEBELUM DEPLOYMENT
================================================================================

REQUIREMENTS:
- Akun RumahWeb yang aktif
- Akses ke cPanel atau FTP
- File Manager atau FTP Client (FileZilla, WinSCP, dll)
- Project Hueman Theme yang sudah siap

LANGKAH PERSIAPAN:

1. Review Project
   - Pastikan semua file sudah lengkap
   - Cek semua halaman HTML
   - Pastikan tidak ada file yang tidak diperlukan
   - Hapus folder preline-main jika tidak digunakan
   - Hapus folder bak jika tidak diperlukan

2. Update Konfigurasi
   - Pastikan semua path relative (tidak absolute)
   - Cek semua link dan referensi file
   - Pastikan auto-refresh sudah sesuai (180 detik)
   - Verifikasi semua localStorage keys

3. Security Check
   - Hapus atau comment script backup.sh jika tidak diperlukan di production
   - Pastikan tidak ada password hardcoded di file
   - Review semua file untuk data sensitif

4. Dokumentasi
   - Siapkan buku-manual.txt untuk referensi
   - Catat semua password dan konfigurasi penting

================================================================================
2. BACKUP DAN KOMPRESI PROJECT
================================================================================

LANGKAH BACKUP:

1. Backup Lokal
   - Copy seluruh folder project ke lokasi aman
   - Pastikan backup tersimpan di komputer atau cloud storage

2. Kompresi Project
   Di terminal/macOS:
   ```bash
   cd /Applications/XAMPP/xamppfiles/htdocs
   tar -czf hueman-backup-$(date +%Y%m%d).tar.gz hueman/
   ```

   Atau gunakan Finder:
   - Klik kanan folder hueman
   - Pilih "Compress"
   - File .zip akan dibuat

3. Verifikasi Kompresi
   - Pastikan file kompresi bisa dibuka
   - Cek apakah semua file terkompresi dengan benar
   - Pastikan ukuran file reasonable

================================================================================
3. UPLOAD KE RUMAHWEB
================================================================================

METODE 1: MELALUI cPanel FILE MANAGER

1. Login ke cPanel
   - Buka browser dan akses: https://namadomain.com/cpanel
   - Masukkan username dan password RumahWeb
   - Cari dan klik "File Manager"

2. Navigate ke Public Directory
   - Biasanya: public_html atau www
   - Pastikan Anda berada di root directory website

3. Upload File
   - Klik tombol "Upload"
   - Pilih file kompresi (.tar.gz atau .zip)
   - Tunggu proses upload selesai

4. Ekstrak File
   - Klik kanan file yang sudah diupload
   - Pilih "Extract"
   - File akan diekstrak ke folder

5. Organisasi File
   - Pastikan file index.html berada di root directory
   - Cek struktur folder sudah benar
   - Pastikan folder uploads, backups, dll ada

METODE 2: MELALUI FTP (FILEZILLA)

1. Setup FTP Client
   - Download dan install FileZilla
   - Buka FileZilla

2. Konfigurasi Koneksi
   - Host: ftp.namadomain.com
   - Username: username cPanel
   - Password: password cPanel
   - Port: 21
   - Klik "Quickconnect"

3. Upload File
   - Navigate ke local folder project di panel kiri
   - Navigate ke public_html di panel kanan
   - Drag and drop semua file ke server
   - Tunggu proses upload selesai

METODE 3: MELALUI SSH (TERMINAL)

1. Koneksi SSH
   ```bash
   ssh username@namadomain.com
   ```

2. Upload File (dari komputer lokal)
   ```bash
   scp /path/to/hueman-backup.tar.gz username@namadomain.com:~/
   ```

3. Ekstrak di Server
   ```bash
   cd public_html
   tar -xzf ~/hueman-backup.tar.gz
   ```

================================================================================
4. KONFIGURASI DI RUMAHWEB
================================================================================

1. Set Permissions
   - Pastikan folder memiliki permission 755
   - Pastikan file memiliki permission 644
   - Folder uploads: 755
   - File HTML: 644

2. Konfigurasi .htaccess (jika diperlukan)
   Buat file .htaccess di root directory:
   ```
   # Enable compression
   <IfModule mod_deflate.c>
       AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
       AddOutputFilterByType DEFLATE application/javascript
   </IfModule>

   # Cache control
   <IfModule mod_expires.c>
       ExpiresActive On
       ExpiresByType text/html "access plus 1 hour"
       ExpiresByType image/jpeg "access plus 1 month"
       ExpiresByType image/png "access plus 1 month"
       ExpiresByType text/css "access plus 1 month"
       ExpiresByType application/javascript "access plus 1 month"
   </IfModule>

   # Security headers
   <IfModule mod_headers.c>
       Header set X-Content-Type-Options "nosniff"
       Header set X-Frame-Options "SAMEORIGIN"
       Header set X-XSS-Protection "1; mode=block"
   </IfModule>
   ```

3. Konfigurasi SSL (HTTPS)
   - Di cPanel, cari "SSL/TLS Status"
   - Pastikan SSL certificate aktif
   - Force redirect ke HTTPS:
     ```
     RewriteEngine On
     RewriteCond %{HTTPS} off
     RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
     ```

4. Test File Upload
   - Pastikan folder uploads ada di server
   - Test permission folder uploads
   - Pastikan user bisa upload file

5. Test Backup System
   - Pastikan folder backups ada di server
   - Test permission folder backups
   - Jika menggunakan cron job, setup di cPanel

================================================================================
5. TESTING DAN VERIFIKASI
================================================================================

1. Akses Website
   - Buka browser dan akses: https://namadomain.com
   - Pastikan halaman index.html terbuka
   - Cek semua link dan navigasi

2. Test Semua Halaman
   - index.html
   - kontak.html
   - aktivitas-terbaru.html
   - artikel-pemikiran.html
   - ruang-pembahasan.html
   - galeri-kegiatan.html
   - tentang-saya.html
   - admin-login.html
   - admin-dashboard.html
   - maintenance.html

3. Test Admin Login
   - Coba login ke admin dashboard
   - Pastikan username dan password berfungsi
   - Test semua fitur admin dashboard

4. Test Maintenance Mode
   - Aktifkan maintenance mode
   - Cek apakah redirect ke maintenance.html berfungsi
   - Test bypass maintenance dengan login admin

5. Test File Upload
   - Coba upload logo dan profile photo
   - Pastikan file tersimpan dengan benar
   - Test preview gambar

6. Test Email System
   - Coba compose email
   - Test save draft
   - Test kirim email (note: ini hanya simulasi)

7. Test Responsive Design
   - Test di mobile phone
   - Test di tablet
   - Test di desktop dengan berbagai ukuran layar

8. Test Cross-Browser
   - Chrome
   - Firefox
   - Safari
   - Edge

================================================================================
6. MASALAH UMUM DAN SOLUSI
================================================================================

MASALAH: Website tidak bisa diakses
SOLUSI:
- Cek apakah file index.html ada di root directory
- Pastikan domain sudah pointing ke server RumahWeb
- Cek DNS propagation (bisa memakan waktu 24-48 jam)
- Cek error log di cPanel

MASALAH: Gambar tidak muncul
SOLUSI:
- Cek path gambar (gunakan relative path)
- Pastikan file gambar sudah diupload
- Cek permission file gambar
- Clear cache browser

MASALAH: Admin login tidak berfungsi
SOLUSI:
- Pastikan localStorage berfungsi di browser
- Cek apakah file admin-login.html ada
- Test dengan browser lain
- Reset password jika perlu

MASALAH: Auto-refresh tidak berfungsi
SOLUSI:
- Cek meta tag refresh di HTML
- Pastikan interval sudah sesuai (180 detik)
- Test di browser lain

MASALAH: File upload tidak berfungsi
SOLUSI:
- Cek permission folder uploads (755)
- Pastikan folder uploads ada di server
- Test dengan file yang lebih kecil
- Cek error log di cPanel

MASALAH: Maintenance mode tidak aktif
SOLUSI:
- Cek localStorage di browser
- Pastikan script maintenance mode berjalan
- Refresh halaman
- Test dengan browser lain

MASALAH: SSL/HTTPS tidak berfungsi
SOLUSI:
- Pastikan SSL certificate sudah aktif di cPanel
- Cek konfigurasi .htaccess
- Force redirect ke HTTPS
- Contact support RumahWeb

MASALAH: Website lambat
SOLUSI:
- Enable compression di .htaccess
- Optimize gambar (compress)
- Enable browser caching
- Gunakan CDN jika perlu
- Contact support RumahWeb untuk upgrade hosting

================================================================================
7. MAINTENANCE SETELAH DEPLOYMENT
================================================================================

ROUTINE MAINTENANCE:

1. Backup Rutin
   - Backup database (jika ada)
   - Backup file website
   - Backup konfigurasi
   - Simpan backup di lokasi terpisah

2. Update Konten
   - Update artikel dan konten secara berkala
   - Update gambar dan media
   - Review dan hapus konten yang tidak relevan

3. Security Check
   - Update password secara berkala
   - Review user access
   - Cek error log secara rutin
   - Update SSL certificate

4. Performance Monitoring
   - Monitor website speed
   - Cek uptime website
   - Monitor disk space
   - Monitor bandwidth usage

5. Backup Automation
   - Setup cron job untuk backup otomatis
   - Test restore backup secara berkala
   - Simpan backup di cloud storage

6. Update Software
   - Update PHP version jika diperlukan
   - Update library dan framework
   - Patch security vulnerabilities

CONTACT SUPPORT:
- RumahWeb Support: support@rumahweb.com
- Live Chat: Available di cPanel
- Phone: (021) 535 7303
- Tiket: Buka tiket di client area

================================================================================
                        AKHIR DARI PANDUAN DEPLOYMENT
================================================================================

Dokumen ini dibuat pada: 17 Juni 2026
Versi: 1.0
Untuk informasi lebih lanjut, hubungi RumahWeb Support.

CATATAN PENTING:
- Pastikan backup sebelum melakukan perubahan besar
- Test semua fitur setelah deployment
- Monitor website secara rutin
- Siapkan rencana disaster recovery
