logo
. . .

ApacheWP Auto Installer – WordPress on Apache

This guide explains how to install WordPress automatically using the BiswasHost ApacheWP installer. It deploys a complete production-ready stack with Apache, PHP-FPM 8.3, MariaDB 12.2, Redis, Memcached, phpMyAdmin, SSL, and multiple security enhancements. This installer is designed for users who prefer Apache instead of NGINX or OpenLiteSpeed.
Run:

bash <(curl -s https://www.biswashost.com/script/apache/apachewp.sh)

The installer is fully automated and requires no manual pre-configuration. But make sure your domain @ & www pointed to your server IP.


Supported Operating Systems

The ApacheWP installer works on:

  • AlmaLinux 8 / 9
  • Rocky Linux 8 / 9
  • RHEL 8 / 9

Both x86_64 and ARM (aarch64) architectures are supported.


What the Installer Sets Up

Web Stack

  • Apache (latest stable)
  • PHP 8.3 (FPM) from Remi repository
  • MariaDB 12.2
  • WordPress (latest release)
  • phpMyAdmin (installed in a random secure directory)

Performance Components

  • Redis server enabled
  • Memcached server enabled
  • OPcache enabled
  • Redis Object Cache plugin installed in WordPress
  • LiteSpeed Cache plugin installed (used for optimization and image/webp features)

Security Hardening

  • FirewallD configured for HTTP/HTTPS/SSH
  • Fail2Ban enabled for SSH protection
  • SELinux adjustments for mail and web directories
  • Disabled dangerous Redis commands
  • php.ini hardening
  • Secure phpMyAdmin directory
  • Secure permissions for all web directories
  • Apache configuration watcher service (auto reload after config changes)

Email Support

The script installs and configures Postfix.
PHP mail() will work immediately after installation.
You can configure SPF, DKIM, DMARC, and rDNS through your DNS provider.

SSL

  • Automatic SSL installation using Certbot and HTTP-01 ACME challenge
  • HTTP to HTTPS automatic redirect
  • SSL certificate paths are configured in the vhost file

Credentials

All generated credentials and URLs are saved in:

/root/apache-wp-credentials-yourdomain.txt

Installation Requirements

Minimum:

  • 1 vCPU
  • 1 GB RAM
  • 20 GB storage

Recommended:

  • 2 GB RAM
  • SSD storage
  • Swap enabled for low-RAM VPS

One-Line Installation Command

Before running the script, ensure your domain and www record are both pointed to your server’s public IP.
Run:

bash <(curl -s https://www.biswashost.com/script/apache/apachewp.sh)

The installer is fully automated and requires no manual pre-configuration.


What the Installer Does Step-by-Step

  1. Installs required system packages
  2. Installs and configures Apache (httpd)
  3. Installs PHP 8.3 + PHP-FPM + required extensions
  4. Installs MariaDB 12.2, sets root password, and runs secure hardening
  5. Creates WordPress database and user
  6. Installs WordPress automatically
  7. Installs Redis and Memcached with security adjustments
  8. Installs Postfix (PHP mail support)
  9. Configures SSL using Certbot
  10. Installs phpMyAdmin under a hidden directory
  11. Applies security, permissions, SELinux rules, and optimization
  12. Saves all login credentials into a single file

After Installation

  1. Visit
    https://yourdomain.com
  2. Complete the WordPress installation wizard
  3. Activate the following plugins:
    • LiteSpeed Cache
    • Redis Object Cache
  4. Go to Settings → Permalinks → set to “Post name”
  5. phpMyAdmin URL is included in the credentials file

Your website is now running on a fully optimized Apache + PHP 8.3 environment.


Deploy a Server for This Installer

You can use any cloud provider.
BiswasHost offers optimized VPS plans for this installer:
Cloud VPS Hosting
Linux VPS Hosting
Resource-Based VPS
Location-Based VPS



Please rate this article to help us improve our Knowledge Base.

0 0