Use LiteSpeed with other hosting control panels
Since LiteSpeed can use Apache configuration directly, LiteSpeed should work well with any hosting control panel package that generates Apache configuration file.
Steps to replace Apache with LSWS
- Install LiteSpeed Web Server in a root shell, make sure to let it run as the same user/group that Apache run as. During installation, do NOT import Apache configuration, do NOT set 80 or 2080 as the HTTP service port, those ports will be used when httpd.conf is loaded.
- Open LiteSpeed Web administration console, under “server”→“General” tab, change configurations in “Using Apache Configuration File” table.
Load Apache Configuration => Yes Auto Reload On Changes => Yes (Changes made in WHM/cPanel will be applied automatically) Apache Configuration File => /usr/local/apache/conf/httpd.conf Apache Port Offset => 2000 (Try LiteSpeed on port 2080 and 2443 first, change to 0 later) Apache IP Offset => 0 PHP suEXEC => Yes (Run PHP in suEXEC mode) PHP suEXEC Max Conn => 5 (The maximum PHP processor each account can have)
- Restart LSWS and try web sites hosted on port 2080 and secured sites on port 2443. If all sites work properly, stop Apache, change “Apache Port Offset” to 0, restart LSWS, all hosted web sites are powered by LiteSpeed now.
If you have a script that monitors for the web server process, remember to update it to reflect the location of LSWS. If your datacenter or third-party administrator monitors your web server for you, you may want to contact them to inform them of the change.
Note for LiteSpeed Standard Edition
When LiteSpeed Standard Edition is used together with hosting control, when using Apache httpd.conf, it only can import top five <VirtualHost …> configuration sections based on the order in httpd.conf. So, if your web site shows the control panel welcome page, it means the limit has been hit, you should upgrade to our Enterprise Edition.