OLSWP One-Click OpenLiteSpeed + WordPress Auto Installer
(OLS + PHP 8.3 + MariaDB 12 + Redis + Memcached + phpMyAdmin + Security)
Before running the installer, make sure your domain or sub-domain is pointed to your server IP.
You can use your domain registrar’s DNS panel or Cloudflare to point the @ and www records to your server.
This script automatically deploys a complete production-grade WordPress environment using OpenLiteSpeed and PHP 8.3 with caching, database, SSL, security hardening, and phpMyAdmin.
Run the installer:
bash <(curl -s https://www.biswashost.com/script/ols/olswp.sh)
What This Script Installs Automatically
The installer performs a full, secure setup:
Web Stack
- OpenLiteSpeed (OLS)
- PHP 8.3 (with essential extensions)
- MariaDB 12 (latest stable)
- WordPress (latest)
- phpMyAdmin (hidden under a random secure URL)
Caching & Speed
- Redis (enabled)
- Memcached (enabled)
- LSCache plugin (installed automatically)
- Redis Object Cache plugin (installed automatically)
Security
- SSH hardening
- FirewallD (HTTP/HTTPS rules auto-added)
- Fail2Ban (WordPress protections enabled)
- Disable root password login
- Disable password-based SSH
- Block common bots & attacks
- Restrict dangerous PHP functions
- Harden sysctl settings
- Secure phpMyAdmin random directory
- Auto .htaccess watcher (auto-restart OLS on changes)
SSL & ACME
- Automatic SSL using Certbot
- ACME challenge health check
- Auto-fixed listeners for OLS
- Clear instructions if DNS is not ready
Quality-of-Life Features
- Automatic database creation
- Automatic wp-config setup
- Auto-generated MySQL credentials
- Saves all passwords/URLs to
/root/ols-wp-credentials.txt - Works on fresh servers without any manual pre-setup needed
Supported Operating Systems
The installer is fully tested and stable on:
- AlmaLinux 8 / 9
- Rocky Linux 8 / 9
- RHEL 8 / 9
Note: Version 10 is not supported yet because OLS, lsphp, and MariaDB have no official EL10 repositories.
Supported CPU Architectures
The script works on all major architectures:
- Intel (x86_64)
- AMD (x86_64)
- ARM (aarch64)
Most providers’ ARM servers work fine with this script.
Minimum Server Requirements
- 1 vCPU
- 1 GB RAM (minimum)
- 25 GB Disk
Recommended for best performance:
- 2 GB RAM or higher
Works on any cloud server, VPS, or dedicated server worldwide.
What You Can Do With This Installer
✔ Deploy a fresh, optimized WordPress site in minutes
✔ Fully automatic LAMP/OLS setup without touching any configuration
✔ Get instant SSL (Let’s Encrypt)
✔ Enjoy Redis, Memcached, LSCache out of the box
✔ Use secure hidden phpMyAdmin
✔ Benefit from automatic security hardening
✔ Enjoy auto-restart OLS when .htaccess is updated
✔ Automatic firewall configuration
Perfect for:
- WordPress hosting
- Development servers
- Personal projects
- Business websites
- Client deployments
Final Notes
After installation:
- Visit
https://yourdomain.com - Complete the WordPress setup wizard
- Activate LSCache (already installed)
- Enable Redis object cache
- Save permalinks
We changed PHP 8.4 to 8.3 due to some extension not working with 8.4 yet, all credentials and secure URLs are saved in:
/root/ols-wp-credentials.txt
Need a Server?
You can deploy this installer on any provider.
BiswasHost also offers high-performance cloud and VPS plans: