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

how to install cloudlinux
Introduction: Elevating Your Web Hosting Infrastructure For web hosting providers and system administrators managing multi-tenant environments, server stabi...

The Quiet Revolution of Edge Computing
How processing data closer to its source is reshaping everything from IoT to autonomous vehicles, and why it matters more than you think.