Blog

Cara Install WordPress di VPS dengan Nginx

15 Aug 2025

Pendahuluan

WordPress menguasai 43% website di dunia. Dengan VPS sendiri, kamu bisa mengoptimalkan performa WordPress secara maksimal.

Langkah 1: Setup Database

mysql -u root -p\nCREATE DATABASE wordpress;\nCREATE USER "wpuser"@"localhost" IDENTIFIED BY "password";\nGRANT ALL ON wordpress.* TO "wpuser"@"localhost";

Langkah 2: Download WordPress

cd /var/www/\nwget https://wordpress.org/latest.tar.gz\ntar xzf latest.tar.gz

Langkah 3: Konfigurasi Nginx

Buat server block dengan PHP-FPM handler, pretty permalinks, dan security headers.

Langkah 4: Setup File Permissions

chown -R www-data:www-data /var/www/wordpress\nfind /var/www/wordpress -type d -exec chmod 755 {} \;

Langkah 5: Install SSL

certbot --nginx -d domain.com

Kesimpulan

WordPress kamu sudah online dengan performa optimal! Jangan lupa install caching plugin.

Semua Artikel