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 build PHP5 binary yourself. Just login to the web console then select “Actions”→“Build PHP“. You should use the same PHP configuration used for building Apache mod_php to build the lsphp binary, you can get the information from a phpinfo() page.
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) ?
For CentOS, just input 3 to select Plesk and select default, for Debian, 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 ?
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.