📞 🇺🇸 +1 361 304 4309 📞 🇮🇳 +91 76769 02281 ✉️ [email protected]
Server Management

How to Set Up OpenLiteSpeed on Ubuntu 24.04 LTS

How to Set Up OpenLiteSpeed on Ubuntu 24.04 LTS

Ubuntu 24.04 LTS with OpenLiteSpeed and PHP 8.4 LSAPI is the fastest web server stack available in 2025. This guide covers a complete production setup.

Step 1 — Prepare Ubuntu 24.04

sudo apt update && sudo apt upgrade -y
sudo apt install curl wget gnupg2 -y

Step 2 — Add OpenLiteSpeed Repository

sudo wget -O - https://repo.litespeed.sh | sudo bash
sudo apt update

Step 3 — Install OpenLiteSpeed and PHP 8.4

sudo apt install openlitespeed -y
sudo apt install lsphp84 lsphp84-common lsphp84-mysql   lsphp84-curl lsphp84-gd lsphp84-mbstring   lsphp84-xml lsphp84-zip lsphp84-redis   lsphp84-intl lsphp84-imagick -y

Step 4 — Configure PHP 8.4 JIT

sudo nano /usr/local/lsws/lsphp84/etc/php/8.4/litespeed/php.ini
[PHP]
memory_limit = 512M
max_execution_time = 300
upload_max_filesize = 128M
post_max_size = 128M

[opcache]
opcache.enable = 1
opcache.jit = tracing
opcache.jit_buffer_size = 256M
opcache.memory_consumption = 512
opcache.max_accelerated_files = 30000
opcache.validate_timestamps = 0

Step 5 — Set Admin Password

sudo /usr/local/lsws/admin/misc/admpass.sh

Step 6 — Enable and Start

sudo systemctl enable lsws --now
sudo systemctl status lsws

Step 7 — Configure Firewall

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 443/udp   # QUIC/HTTP3
sudo ufw allow 7080/tcp  # WebAdmin
sudo ufw enable

Step 8 — Access WebAdmin

https://your-server-ip:7080

Benchmark

ab -n 10000 -c 100 http://your-server-ip/

# Expected on 4-core server:
# Requests/sec: 15,000+
# Time/request: 6.6ms average

Conclusion

OpenLiteSpeed on Ubuntu 24.04 with PHP 8.4 JIT sets a new performance benchmark. Our team provides complete OpenLiteSpeed deployments for production environments.

#openlitespeed #ubuntu24 #lsphp84 #2025
Share:
🛠️ Need Expert Help?

Don't want to do this yourself?

Our certified engineers implement this for you — correctly, securely, and within hours. Available 24/7 with 15-minute emergency response.

  • ✅ 19+ years experience
  • ✅ 60+ certified engineers
  • ✅ 1,600+ servers managed
  • ✅ 40+ countries served
  • ✅ Plans from $49/mo

Get Expert Help — Free Consultation

We respond within 4 hours · No commitment required

Please enter your name and a valid email.

No spam. Privacy Policy

Comments