Langsung ke konten utama

Postingan

Instalasi dan Konfigurasi LAMP Stack untuk Menjalankan WordPress di AlmaLinux

  Panduan Instalasi LAMP + WordPress  Versi ini ditata ulang total dengan desain clean putih-biru agar terlihat profesional dan tidak mirip sumber lain. 1. Persiapan Sistem Update Sistem sudo dnf update -y Melakukan pembaruan paket agar sistem stabil dan kompatibel. Install LAMP Stack sudo dnf install httpd mariadb-server mariadb php php-mysqlnd php-fpm -y httpd → Apache Web Server mariadb-server → Server database php & php-mysqlnd → PHP & driver MariaDB php-fpm → Handler PHP berbasis FastCGI Aktifkan Layanan sudo systemctl enable --now httpd sudo systemctl enable --now mariadb sudo systemctl enable --now php-fpm 2. Konfigurasi MariaDB Amankan MariaDB sudo mysql_secure_installation Buat Database & User CREATE DATABASE wordpress CHARACTER SET utf8mb4; CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'wpuser123'; GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser...
Postingan terbaru

Instalasi dan Konfigurasi LEMP Stack untuk Menjalankan WordPress di Ubuntu Server 24.04 LTS

 

Konfigurasi Apache2 as Reverse Proxy di Ubuntu Server

  🔁 Konfigurasi Apache2 sebagai Reverse Proxy di Ubuntu Server Langkah-langkah berikut akan membuat Apache2 berfungsi sebagai Reverse Proxy yang meneruskan permintaan ke Nginx di port 8183 . 1️⃣ Ubah File Root HTML Nginx Misal file root Nginx ada di /var/www/html/index.html $ sudo nano /var/www/html/index.html Isi atau ubah menjadi: <!DOCTYPE html> <html> <head><title>Test Reverse Proxy</title></head> <body>   <h2>Nama Kalian</h2>   <pre>Reverse Proxy Sukses</pre> </body> </html> Simpan dan keluar. 2️⃣ Ubah Port Apache2 ke Port Default (80) Edit file: $ sudo nano /etc/apache2/ports.conf Pastikan terdapat baris berikut: Listen 80 Jika belum ada, tambahkan baris tersebut. 3️⃣ Ubah Port Nginx ke 8183 Edit konfigurasi default Nginx: $ sudo nano /etc/nginx/sites-available/default Ubah bagian listen menjadi: listen 8183 default_server...

Konfigurasi Apache2 as Reverse Proxy di AlmaLinux Server

 

Konfigurasi Nginx sebagai Reverse Proxy di AlmaLinux 9.6

Konfigurasi Nginx sebagai Reverse Proxy di Ubuntu Server 24.04 LTS

  ⚙️ 1. Ubah File Root HTML Apache2 Lokasi default file root Apache di Ubuntu: /var/www/html/index.html Edit dengan perintah: sudo nano /var/www/html/index.html Cari bagian: <h2>Nama Kalian</h2> Lalu tambahkan kode ini tepat di bawahnya: <pre>Reverse Proxy Sukses</pre> Simpan file: Tekan Ctrl + O → Enter Tekan Ctrl + X → keluar 🔁 2. Ubah Port Apache2 menjadi 8381 Edit file port konfigurasi Apache: sudo nano /etc/apache2/ports.conf Ubah (atau tambahkan) baris berikut: Listen 8381 Kemudian edit konfigurasi VirtualHost: sudo nano /etc/apache2/sites-available/000-default.conf Ubah bagian paling atas agar sesuai port baru: <VirtualHost *:8381>     DocumentRoot /var/www/html     ErrorLog ${APACHE_LOG_DIR}/error.log     CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost> 🔄 3. Restart Apache dan Pastikan Port Aktif sudo systemctl r...

Instalasi Apache2 di Ubuntu Server 24.04 LTS & AlmaLinux 9.6