How to Install LiteSpeed

Many control panels like cPanel will come with an auto Installer for LiteSpeed. However, if you want to install LiteSpeed but you either don't have a supported control panel or you have a standalone Apache server, these instructions will help guide you through the installation process.

  1. Run the following commands from SSH as root:
     
    • cd /root
      wget http://www.litespeedtech.com/packages/4.0/lsws-4.2.12-ent-x86_64-linux.tar.gz
    • Note: Make sure to replace the values in the URL for your specific OS and the version of LiteSpeed you wish to download
      • lsws-4.2.12-ent-x86_64-linux = LSWS Enterprise 4.2.12 for 64-bit Linux
      • lsws-4.2.10-std-i386-linux = LSWS Standard 4.2.10 for 32-bit Linux
      • lsws-4.2.12-ent-x86_64-freebsd6 = LSWS Enterprise 4.2.12 for 64-bit FreeBSD 6.x
         
  2. Unpack the ZIP file with tar -zxvf lsws-4.2.19-ent-x86_64-linux.tar.gz
  3. Type in cd lsws-4.2.19 into your command terminal
  4. Next, run the installation script:
     
    • cd lsws-4.2.12
      ./install.sh
    • For the Enterprise Edition, make sure to put the license file (trial.key or paid license serial.no file in the unpacked folder)
       
  5. Accept the EULA for Litespeed
  6. Click Enter for the default (/usr/local/lsws)
  7. Set up an Admin username (Don't use Admin!)
  8. Set up the password for your Admin account
  9. Set up the email address for your Admin account
  10. Set your control panel if you have one. (InterWorx = 5)
  11. "0" to replace Apache
  12. "1" to use SuEXEC or "2" if you have DirectAdmin
  13. "Y" to start it automatically when the server starts
  14. Click Enter
  15. If you have Apache still on, turn it off using:
    • service httpd stop
      chkconfig httpd off
  16. "Y" to start LiteSpeed now


Your LiteSpeed Web Server should now start successfully. Now you should test and switch everything to LiteSpeed if it didn't automatically change. If your application doesn't allow you to run an offest prot for LSWS, then you should stop your Apache web server and start LSWS for testing.

Go to http://your-ip:7080/ after you've started running your server to verify.

If that's the case, the first thing you need to do is compile PHP with LSAPI.

If you get an error on the first step, you need to install patch:

yum install patch


If you need more assistance, you can visit LiteSpeed's official Wiki page or feel free to contact us by opening a support ticket or by using our live chat feature for 24/7 support.

  • 3 Users Found This Useful
Was this answer helpful?

Also Read

How to Check Your License

If you want to check your LiteSpeed license, simply log into the LiteSpeed Web console then go to...

MySQL errors

If you are receiving MySQL errors, make sure to check PHPInfo for the MySQL section (Apache):...

Error: xml2-config not found

If at any time you receive an error: xml2-config alert or running a detailed report shows:...

LSCache Cron Job for cPanel

The easiest way to see what the LSCache cron job running for your cPanel control panel is through...

How to Enable SSL for Webadmin

As of LiteSpeed Web Server v5.2, self-signed SSL certificates are automatically created for the...