🌐 Panduan Rinci Deployment & Publishing Web Local

Web Development Server Deployment Gambar: Konfigurasi Web Environment & Hosting File Server

Setelah Control Panel aaPanel aktif, tahap akhir adalah mengonfigurasi **Web Server Stack** (LNMP/LAMP) dan mengunggah berkas website agar halaman dapat diakses secara lokal oleh perangkat lain dalam satu segmen jaringan IP.

⚙️ Tahap 1: Instalasi Software Environment (LNMP Stack)

  • 1. Login Pertama & Pemilihan Stack:
    Buka URL akses aaPanel yang didapatkan di akhir instalasi (misal: http://20.20.20.138:8888/8888xxxx). Saat pertama kali masuk, aaPanel akan menampilkan dialog jendela *One-click Package Presets*.
  • 2. Memilih LNMP (Linux, Nginx, MySQL, PHP):
    Pilih paket LNMP karena Nginx lebih teruji menangani *high-concurrency* traffic secara ringan.
    - Nginx: v1.22
    - MySQL: v5.7 / v8.0
    - PHP: v7.4 / v8.1
    - Pilih metode instalasi LNMP (LNMP Fast / Compiled) lalu klik One-click Install. Tunggu hingga proses kompilasi tuntas.

🌐 Tahap 2: Menambahkan Virtual Host Website Baru

  • 1. Membuat Site Entry:
    Di Dashboard aaPanel, klik menu Website di sidebar kiri > Klik tombol Add site.
  • 2. Form Konfigurasi Domain/IP:
    - Domain: Isikan IP Static Container (20.20.20.138) atau Domain Lokal kustom (misal: portofolio-aji.local).
    - Description: Portofolio Web Server Aji.
    - Root Directory: Otomatis mengarah ke /www/wwwroot/20.20.20.138.
    - FTP & Database: Pilih Set to Create jika membutuhkan database SQL terpisah, atau biarkan default jika situs murni HTML/CSS/JS statis.
    - Klik Submit.

📁 Tahap 3: Upload & Deployment File Source Code

  • 1. Akses File Manager:
    Masuk ke menu Files di aaPanel, buka folder lokasi website di /www/wwwroot/20.20.20.138.
  • 2. Pembersihan & Upload Source Code:
    Hapus file sampel bawaan aaPanel (index.html dan 404.html). Klik tombol Upload > Upload file arsip project website kamu (seperti website.zip atau berkas index.html, style.css, dan folder gambar).
  • 3. Ekstraksi & Hak Akses (Permission):
    Jika mengunggah format .zip, klik tombol Unzip / Extract. Pastikan file utama dinamai index.html dan hak akses folder (Permission) diset ke 755 (www:www) agar Nginx dapat membacanya.
● ● ●  testing-web-local-access
✨ Akses Hasil Akhir Website Local:
Buka browser pada komputer/laptop sejaringan, lalu buka URL HTTP standard (Port 80):
http://20.20.20.138/