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
- Installs required system packages
- Installs and configures Apache (httpd)
- Installs PHP 8.3 + PHP-FPM + required extensions
- Installs MariaDB 12.2, sets root password, and runs secure hardening
- Creates WordPress database and user
- Installs WordPress automatically
- Installs Redis and Memcached with security adjustments
- Installs Postfix (PHP mail support)
- Configures SSL using Certbot
- Installs phpMyAdmin under a hidden directory
- Applies security, permissions, SELinux rules, and optimization
- Saves all login credentials into a single file
After Installation
- Visit
https://yourdomain.com - Complete the WordPress installation wizard
- Activate the following plugins:
- LiteSpeed Cache
- Redis Object Cache
- Go to Settings → Permalinks → set to “Post name”
- 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