How to Install WordPress in 2026: Complete Step-by-Step Guide for Beginners (Local & Server)

3 weeks ago

WordPress powers over 45% of the entire web in 2026, and installing it remains one of the most common first steps for bloggers, small business owners, freelancers, UMKM entrepreneurs, and developers in Indonesia. Whether you want to run WordPress locally on your laptop (for testing/development) or on a live server (VPS/shared hosting), the process is straightforward — but many beginners still face common errors like database connection failures, permission issues, or slow loading after setup.

All steps are updated for WordPress 6.7+, PHP 8.3, MariaDB 10.11+, and modern MacBook M-series / Windows 11 / Ubuntu 24.04.

1. Current System Requirements for WordPress (2026)

Minimum Requirements (WordPress.org official + practical 2026 recommendations):

  • PHP: 8.0+ (recommended: PHP 8.3 for best performance & security)
  • Database: MySQL 5.7+ or MariaDB 10.3+ (recommended: MariaDB 10.11)
  • Web Server: Apache 2.4+ or Nginx 1.18+
  • HTTPS: Required (free Let’s Encrypt SSL)
  • Memory: Minimum 64MB PHP memory_limit (recommended: 256MB+)
  • Browser Support: Latest Chrome, Firefox, Safari, Edge
  • Operating System: Cross-platform (Windows 10/11, macOS Ventura+, Ubuntu 22.04/24.04+)

Recommended for smooth experience in 2026:

  • PHP 8.3 with extensions: curl, gd, mbstring, xml, zip, imagick, redis (for caching)
  • MariaDB 10.11
  • Nginx + PHP-FPM (faster than Apache for high traffic)
  • At least 2 GB RAM (local) or 2–4 GB VPS

2. Option 1: Install WordPress Locally (Best for Testing & Development)

Method A: XAMPP (Windows)

  1. Download XAMPP from apachefriends.org (choose PHP 8.3 version)
  2. Install → start Apache & MySQL modules
  3. Open browser → localhost/phpmyadmin
  4. Create new database named “wordpress” (collation utf8mb4_unicode_ci)
  5. Download WordPress from wordpress.org/download
  6. Extract to C:\xampp\htdocs\wordpress
  7. Open browser → localhost/wordpress
  8. Follow 5-minute installer: enter DB name “wordpress”, user “root”, password “” (empty), host “localhost”
  9. Set site title, admin username (not “admin”), strong password, email
  10. Done! Access dashboard: localhost/wordpress/wp-admin

Method B: MAMP (Mac)

  1. Download MAMP from mamp.info (free version OK)
  2. Install & start servers
  3. phpMyAdmin → create database “wordpress”
  4. Extract WordPress to Applications/MAMP/htdocs/wordpress
  5. Browser → localhost:8888/wordpress
  6. Follow installer (DB host: localhost, port 8889, user: root, password: root)
  7. Finish setup

Method C: Docker (Advanced but clean) Use Docker Compose – one command setup:

YAML
version: '3'
services:
  db:
    image: mariadb:10.11
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: wordpress
  wordpress:
    image: wordpress:latest
    restart: always
    ports:
      - "8080:80"
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: root
      WORDPRESS_DB_PASSWORD: root
      WORDPRESS_DB_NAME: wordpress

Run: docker-compose up -d → localhost:8080

3. Option 2: Install WordPress on Live Server (VPS / Shared Hosting)

Method A: One-Click Install (Most Popular in Indonesia) Most Indonesian hosts offer 1-click WordPress:

  • Niagahoster, Rumahweb, DomaiNesia, Hostinger ID Steps:
  1. Login to cPanel / hPanel
  2. Find “WordPress Installer” or “Softaculous”
  3. Choose domain, set admin username/password/email
  4. Click “Install” → done in 1–2 minutes
  5. Access dashboard: yourdomain.com/wp-admin

Method B: Manual Install on VPS (Ubuntu 24.04 LAMP)

  1. Update server: sudo apt update && sudo apt upgrade -y
  2. Install LAMP:
    • Apache: sudo apt install apache2
    • MariaDB: sudo apt install mariadb-server
    • PHP 8.3: sudo apt install php8.3 php8.3-mysql php8.3-curl etc.
  3. Secure MariaDB: sudo mysql_secure_installation
  4. Create database & user:
    SQL
    CREATE DATABASE wordpress;
    CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strongpassword';
    GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
    FLUSH PRIVILEGES;
  5. Download WordPress: wget https://wordpress.org/latest.tar.gz
  6. Extract to /var/www/html: tar -xzvf latest.tar.gz
  7. Set permissions: chown -R www-data:www-data /var/www/html
  8. Configure wp-config.php: copy sample, edit DB details
  9. Browser → yourdomain.com → run installer
  10. Finish setup

4. Post-Installation: Security & Optimization in 2026

Immediate steps after install:

  1. Change admin username – never use “admin”
  2. Strong password – use password manager (Bitwarden, LastPass)
  3. Enable 2FA – Wordfence or Two-Factor plugin
  4. Install security plugins – Wordfence (firewall), iThemes Security, Sucuri
  5. Free SSL – Let’s Encrypt via hosting panel or certbot
  6. Permalinks – Settings → Permalinks → Post name
  7. Caching – WP Rocket, LiteSpeed Cache, or FlyingPress
  8. Backup – UpdraftPlus (daily to Google Drive/Dropbox)
  9. Update everything – WordPress, themes, plugins

Indonesia-specific tips:

  • Use local hosting (Niagahoster/Rumahweb) for fastest loading in Indonesia
  • Enable Cloudflare CDN (free) for extra speed & DDoS protection
  • Use Bahasa Indonesia dashboard (Settings → General → Site Language)

5. Common Installation Errors & Fixes (2026)

Error 1: “Error establishing a database connection” Fix: Check wp-config.php (DB name, user, password correct?), restart MariaDB, ensure database exists.

Error 2: White screen / 500 error Fix: Increase PHP memory_limit to 256M in php.ini, disable plugins via file rename (/wp-content/plugins → plugins-old).

Error 3: Site loads but shows “not secure” Fix: Install SSL certificate (Let’s Encrypt), force HTTPS in .htaccess or Really Simple SSL plugin.

Error 4: Slow installation/loading Fix: Use PHP 8.3, enable OPcache, choose local server, install caching plugin.

Conclusion & Your 2026 WordPress Installation Checklist

Installing WordPress in 2026 is easier than ever thanks to one-click installers, modern PHP 8.3 support, and optimized hosting providers in Indonesia. Choose the method that fits your needs: local (XAMPP/MAMP/Docker) for development, one-click for quick live sites, manual LAMP for full control on VPS.

Quick 2026 Checklist:

  1. Check system requirements (PHP 8.3, MariaDB 10.11)
  2. Buy domain first (.com or .id)
  3. Choose & install hosting (local recommended)
  4. Use one-click installer or manual setup
  5. Complete 5-minute WordPress installer
  6. Enable SSL & change admin username
  7. Install security plugins & enable 2FA
  8. Set permalinks to “Post name”
  9. Backup immediately
  10. Test site speed & mobile responsiveness

Your WordPress site is now live! Next steps: choose a fast theme (Astra, GeneratePress), install Rank Math/Yoast for SEO, and start creating content.


How to Install WordPress in 2026: Complete Step-by-Step Guide for Beginners (Local & Server)


1. Current System Requirements for WordPress (2026)

Minimum Requirements (WordPress.org official + practical 2026 recommendations):

  • PHP: 8.0+ (recommended: PHP 8.3 for best performance & security)
  • Database: MySQL 5.7+ or MariaDB 10.3+ (recommended: MariaDB 10.11)
  • Web Server: Apache 2.4+ or Nginx 1.18+
  • HTTPS: Required (free Let’s Encrypt SSL)
  • Memory: Minimum 64MB PHP memory_limit (recommended: 256MB+)
  • Browser Support: Latest Chrome, Firefox, Safari, Edge
  • Operating System: Cross-platform (Windows 10/11, macOS Ventura+, Ubuntu 22.04/24.04+)

Recommended for smooth experience in 2026:

  • PHP 8.3 with extensions: curl, gd, mbstring, xml, zip, imagick, redis (for caching)
  • MariaDB 10.11
  • Nginx + PHP-FPM (faster than Apache for high traffic)
  • At least 2 GB RAM (local) or 2–4 GB VPS

2. Option 1: Install WordPress Locally (Best for Testing & Development)

Method A: XAMPP (Windows)

  1. Download XAMPP from apachefriends.org (choose PHP 8.3 version)
  2. Install → start Apache & MySQL modules
  3. Open browser → localhost/phpmyadmin
  4. Create new database named “wordpress” (collation utf8mb4_unicode_ci)
  5. Download WordPress from wordpress.org/download
  6. Extract to C:\xampp\htdocs\wordpress
  7. Open browser → localhost/wordpress
  8. Follow 5-minute installer: enter DB name “wordpress”, user “root”, password “” (empty), host “localhost”
  9. Set site title, admin username (not “admin”), strong password, email
  10. Done! Access dashboard: localhost/wordpress/wp-admin

Method B: MAMP (Mac)

  1. Download MAMP from mamp.info (free version OK)
  2. Install & start servers
  3. phpMyAdmin → create database “wordpress”
  4. Extract WordPress to Applications/MAMP/htdocs/wordpress
  5. Browser → localhost:8888/wordpress
  6. Follow installer (DB host: localhost, port 8889, user: root, password: root)
  7. Finish setup

Method C: Docker (Advanced but clean) Use Docker Compose – one command setup:

YAML
version: '3'
services:
  db:
    image: mariadb:10.11
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: wordpress
  wordpress:
    image: wordpress:latest
    restart: always
    ports:
      - "8080:80"
    environment:
      WORDPRESS_DB_HOST: db
      WORDPRESS_DB_USER: root
      WORDPRESS_DB_PASSWORD: root
      WORDPRESS_DB_NAME: wordpress

Run: docker-compose up -d → localhost:8080

3. Option 2: Install WordPress on Live Server (VPS / Shared Hosting)

Method A: One-Click Install (Most Popular in Indonesia) Most Indonesian hosts offer 1-click WordPress:

  • Niagahoster, Rumahweb, DomaiNesia, Hostinger ID Steps:
  1. Login to cPanel / hPanel
  2. Find “WordPress Installer” or “Softaculous”
  3. Choose domain, set admin username/password/email
  4. Click “Install” → done in 1–2 minutes
  5. Access dashboard: yourdomain.com/wp-admin

Method B: Manual Install on VPS (Ubuntu 24.04 LAMP)

  1. Update server: sudo apt update && sudo apt upgrade -y
  2. Install LAMP:
    • Apache: sudo apt install apache2
    • MariaDB: sudo apt install mariadb-server
    • PHP 8.3: sudo apt install php8.3 php8.3-mysql php8.3-curl etc.
  3. Secure MariaDB: sudo mysql_secure_installation
  4. Create database & user:
    SQL
    CREATE DATABASE wordpress;
    CREATE USER 'wpuser'@'localhost' IDENTIFIED BY 'strongpassword';
    GRANT ALL PRIVILEGES ON wordpress.* TO 'wpuser'@'localhost';
    FLUSH PRIVILEGES;
  5. Download WordPress: wget https://wordpress.org/latest.tar.gz
  6. Extract to /var/www/html: tar -xzvf latest.tar.gz
  7. Set permissions: chown -R www-data:www-data /var/www/html
  8. Configure wp-config.php: copy sample, edit DB details
  9. Browser → yourdomain.com → run installer
  10. Finish setup

4. Post-Installation: Security & Optimization in 2026

Immediate steps after install:

  1. Change admin username – never use “admin”
  2. Strong password – use password manager (Bitwarden, LastPass)
  3. Enable 2FA – Wordfence or Two-Factor plugin
  4. Install security plugins – Wordfence (firewall), iThemes Security, Sucuri
  5. Free SSL – Let’s Encrypt via hosting panel or certbot
  6. Permalinks – Settings → Permalinks → Post name
  7. Caching – WP Rocket, LiteSpeed Cache, or FlyingPress
  8. Backup – UpdraftPlus (daily to Google Drive/Dropbox)
  9. Update everything – WordPress, themes, plugins

Indonesia-specific tips:

  • Use local hosting (Niagahoster/Rumahweb) for fastest loading in Indonesia
  • Enable Cloudflare CDN (free) for extra speed & DDoS protection
  • Use Bahasa Indonesia dashboard (Settings → General → Site Language)

5. Common Installation Errors & Fixes (2026)

Error 1: “Error establishing a database connection” Fix: Check wp-config.php (DB name, user, password correct?), restart MariaDB, ensure database exists.

Error 2: White screen / 500 error Fix: Increase PHP memory_limit to 256M in php.ini, disable plugins via file rename (/wp-content/plugins → plugins-old).

Error 3: Site loads but shows “not secure” Fix: Install SSL certificate (Let’s Encrypt), force HTTPS in .htaccess or Really Simple SSL plugin.

Error 4: Slow installation/loading Fix: Use PHP 8.3, enable OPcache, choose local server, install caching plugin.

Leave a Reply

Your email address will not be published. Required fields are marked *

Go up