OpenLiteSpeed Quick‑Install Guide – Faster Than a Coffee Break
Want a web server that actually responds faster than your neighbor’s Wi‑Fi? OpenLiteSpeed is the answer. It’s free, open source, and lighter on resources than most heavy‑weight Apache setups.
1. Grab the Installer
wget -O - https://openlitespeed.org/packages/ols.repo | sudo tee /etc/yum.repos.d/ols.repo && \ sudo yum install -y openlitespeed
The wget line pulls the repo file straight from OpenLiteSpeed’s servers. That means you’re installing the latest official build, not some third‑party fork that might drop a broken module.
2. Verify the Package
sudo systemctl status lsws
If you see “active (running)”, your server is alive. If it’s inactive, something went wrong during installation—most likely a missing dependency or a bad repository entry. A quick yum update often fixes that.
3. Open the Web Console
Navigate to http://localhost:7080. The first time you hit it, you’ll be prompted for a password—use something snappy, like “open123”. Once inside, tweak the server’s performance settings without touching code.
4. Point It at Your Site
In the console, go to Virtual Hosts > Add. Fill in:
- Host Name: yourdomain.com
- Document Root: /var/www/html or C:\OpenLiteSpeed\www
That tells OpenLiteSpeed where to look for files when someone types your domain. If you’re running a local test, set the host name to localhost and watch it serve pages in milliseconds.
5. Restart and Test
sudo systemctl restart lsws curl -I http://localhost
The HTTP headers should return quickly; you’ll notice the Server: LiteSpeed line instead of Apache’s. That means OpenLiteSpeed is handling requests, not a background daemon that hogs memory.
6. Keep It Secure
OpenLiteSpeed ships with a default firewall rule that blocks most common attacks. Still, set up HTTPS:
sudo openssl req -new -x509 -days 365 -nodes -out /opt/lsws/conf/certs/server.crt \
-keyout /opt/lsws/conf/certs/server.key
Then point the console to those cert files under SSL settings. Your site will be encrypted without needing a separate Let's Encrypt wrapper.
7. Monitor and Adjust
Use the built‑in Stats page ( http://localhost:7080/stats) to watch CPU, RAM, and active connections. If you notice a spike, tweak the worker thread count under Engine > Server—more threads = more concurrency, but not at the expense of memory.
Done! Your Web Server Is Ready
You now have a lean, mean OpenLiteSpeed machine that’s easier to maintain than an Apache farm. The installer took less than 10 minutes, and you’re already seeing performance gains. Happy hosting—unless your ISP starts blocking port 7080, then you’ll need a tunnel.