✅ 1. LOGIN KE VPS
Gunakan SSH dari terminal / PowerShell:
Jika pertama kali login, Hostinger akan meminta Anda membuat password baru.
✅ 2. UPDATE SERVER
Selalu update sebelum install apa pun:
✅ 3. INSTALL NGINX
Cek apakah jalan:
Akses server di browser:
✅ 4. INSTALL MARIADB (Database Server)
Amankan MariaDB:
Rekomendasi jawaban:
-
Enter current password: ENTER
-
Switch to unix_socket: Y
-
Remove anonymous: Y
-
Disallow root remote login: Y
-
Remove test DB: Y
-
Reload privilege tables: Y
✅ 5. INSTALL PHP + EXTENSIONS
Instal versi terbaru di Ubuntu (misal PHP 8.2):
Cek versi:
✅ 6. KONFIGURASI NGINX UNTUK PHP
Buat file server block:
Isi dengan konfigurasi berikut:
Aktifkan site:
✅ 7. BUAT FOLDER WEB
Buat file test:
✅ 8. HUBUNGKAN DOMAIN (DNS HOSTINGER)
Masuk ke Hostinger → DNS Zone domain Anda.
Tambahkan:
A Record
| Name | Type | Value (IP VPS) | TTL |
|---|---|---|---|
| @ | A | IP VPS | Auto |
| www | A | IP VPS | Auto |
Tunggu propagasi 5–30 menit.
✅ 9. PASANG SSL GRATIS (Let’s Encrypt)
Install Certbot:
Dapatkan SSL:
Auto-renew cek:
0 Comments