how to install litespeed on HostCart VPS
Learn how to handle how to install litespeed on a HostCart VPS with clear steps for Indian production workloads.
LiteSpeed Web Server (or OpenLiteSpeed) is a drop-in way to serve PHP sites faster than Apache on a Linux VPS. This walkthrough installs OpenLiteSpeed, enables PHP, and puts a site on port 80/443.
Install OpenLiteSpeed
On Ubuntu/Debian, add the official repo and install the package. On AlmaLinux/Rocky, use the LiteSpeed yum repo. After install, the admin console listens on port 7080.
- wget -O - https://repo.litespeed.sh | sudo bash
- sudo apt-get install openlitespeed -y (or: sudo yum install openlitespeed)
- sudo /usr/local/lsws/admin/misc/admpass.sh (set admin user)
- Open https://YOUR_IP:7080 and log in
PHP and a virtual host
Install a LiteSpeed PHP build (lsphp81 or lsphp82) and map it in the WebAdmin console under Server → PHP. Create a virtual host with a document root such as /usr/local/lsws/Example/html or /var/www/site. Point the listener on port 80 to that vhost.
Put a phpinfo file in the docroot and request it. If you see PHP, the handler is wired. Remove phpinfo after the test.
Cut over from Apache or Nginx
Stop Apache/Nginx so ports 80 and 443 are free: sudo systemctl stop apache2 nginx; sudo systemctl disable apache2 nginx. Copy certificates into the LiteSpeed listener SSL tab. Update the firewall for 80, 443, and 7080 (admin). Confirm the homepage, then enable openlitespeed at boot.
For WordPress, enable cache in the LiteSpeed Cache plugin after the site loads. Check /usr/local/lsws/logs/error.log if a vhost fails to start.
More in Technology
Mastering ESG in Data Centers: How to Accurately Measure PUE for Enterprise Hosting
Data centers are the backbone of the digital economy, yet their environmental impact is under growing scrutiny. By measuring and optimizing Power Usage Effectiveness (PUE), enterprise hosting providers can demonstrate tangible ESG progress, unlock green financing, and gain a competitive edge in a market where sustainability is as critical as performance.
Defending Against AI-Driven DDoS Attacks: How Next‑Gen Behavioral WAFs Protect Your Site
AI‑driven DDoS attacks now blend massive traffic with human‑like request patterns, rendering traditional signature‑based firewalls ineffective. Next‑generation behavioral Web Application Firewalls use machine learning to model legitimate user behavior, score each request in real time, and adaptively challenge or block malicious traffic—all while preserving the user experience. Deploying these AI‑powered WAFs, especially at the edge, turns reactive defenses into intelligent, self‑evolving barriers against sophisticated bot attacks.
Building an AI‑Compliant Hosting Architecture: Mastering Data Sovereignty and Regulatory Guardrails
In today’s hyper‑connected world, embedding AI into operations demands more than raw compute—it requires a hosting architecture that safeguards data sovereignty, meets global regulations, and establishes robust guardrails. By integrating geographic‑aware infrastructure, policy‑driven access controls, auditable data lifecycles, and rigorous model governance, organizations can deploy trustworthy AI that scales while staying compliant with the world’s toughest standards.
