With LSWS 3.3.1 Enterprise or later, the LSWS installer can setup configuration for Plesk automatically. The default LSWS configuration comes with support for both PHP4 and PHP5, however, only pre-built PHP4 binary is available, if you want PHP5 support, you need to install LSPHP through RPMs from LiteSpeed repository (for RHEL/CentOS Systems) or build PHP5 binary yourself. You should use the same PHP configuration used for building Apache mod_php to build the lsphp binary. You can user phpinfo page for Apache as a reference to install or build your own one.
The latest version of Plesk may configure Nginx as a reverse proxy server that stands in between the Internet and Apache. Before installing LSWS, please turn off Nginx reverse proxy so that Apache is the only web server handling live traffic. Not stopping the Nginx reverse proxy will cause system errors and block the LiteSpeed process from being started.
Please refer here on how to turn off nginx reverse proxy.
Will you use LiteSpeed Web Server with a hosting control panel? 0. NONE 1. cPanel 2. DirectAdmin 3. Plesk 4. Hsphere 5. Interworx 6. Lxadmin 7. ISPManager Please select (0-7) [0]?
For CentOS, just input 3 to select Plesk and select default. SuEXEC setting(yes or no) should be matched to exiting Apache setting.
For Debian, you should select NONE and update configurations manually via web console later. Also, you may need to set user/group to “www-data/www-data” when installer prompt for “User” and “Group” for Debian based installation.
Port Offset [2000]?
to run litespeed on port 2080 and apache on 80 at the same time.
Load Apache Configuration => Yes Auto Reload On Changes => User Apache binary Wrapper Apache Binary Path => /usr/sbin/httpd (or /usr/sbin/httpd.worker if worker MPM is used) Apache Configuration File => /etc/httpd/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)
if previously all your PHP scripts run as “apache” user, then change above “PHP suEXEC” as “No”, and restart LSWS.
For Debian based installation, you may need to set “Apache Environment” according to /etc/apache2/envvars
/usr/sbin/httpd uninstall service httpd stop service httpd status
above “service httpd status” is to ensure apache stopped. then restart LSWS, to have it running on port 80 or 2080.
cd /etc/init.d chkconfig httpd off
NOTE: If Apache worker MPM is used instead of the default prefork MPM, Plesk may complain about restarting Apache, if it happens, you have two choices to fix it.
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.