Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:plesk:apache [2015/07/21 14:57]
Jackson Zhang [How to replace Apache with LiteSpeed when used with Plesk]
litespeed_wiki:plesk:apache [2015/11/06 22:15] (current)
Michael Alegre [Stopping Nginx Reverse Proxy Before LiteSpeed Installation]
Line 1: Line 1:
 ====== How to replace Apache with LiteSpeed when used with Plesk ====== ====== How to replace Apache with LiteSpeed when used with Plesk ======
  
-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 get the information from a phpinfo() page. +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.
- +
  
 +===== Stopping Nginx Reverse Proxy Before LiteSpeed Installation =====
  
 +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 [[litespeed_wiki:​plesk:​installation-12#​stopping_the_nginx_reverse_proxy|here on how to turn off nginx reverse proxy]].
  
 ===== Steps to replace Apache with LSWS ===== ===== Steps to replace Apache with LSWS =====
Line 23: Line 24:
   Please select (0-7) [0]?    Please select (0-7) [0]? 
  
-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. ​+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]?   Port Offset [2000]?
  
 to run litespeed on port 2080 and apache on 80 at the same time.  to run litespeed on port 2080 and apache on 80 at the same time. 
 +
 +  * LiteSpeed has default Admin Console Port as 7080 from long time ago, however Plesk use this port lately for reverse proxy bank-end Apache port, which causes numerous trouble and errors. We suggest to set default Admin Console Port to 7088 for Plesk users to avoid hassles. ​
  
   * Open LiteSpeed Web administration console, under "​server"​->"​General"​ tab, view configurations in "Using Apache Configuration File" table. For Debian based installation,​ you need to manually set those configurations   * Open LiteSpeed Web administration console, under "​server"​->"​General"​ tab, view configurations in "Using Apache Configuration File" table. For Debian based installation,​ you need to manually set those configurations
Line 45: Line 50:
  
  
-  * Now LSWS host web sites on port 2080 and secured sites on 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.+  * Now LSWS host web sites on port 2080 and secured sites on 2443. You can test your domains for those two ports. Some application can not be tested this way. For example, WordPress specifies front-end URL with port in WP admin page hence you have no way to test 2080 unless you change it. If this case, you may have to just switch the traffic to LiteSpeed for testing.If all sites work properly, stop Apache, change "​Apache Port Offset"​ to 0, restart LSWS, all hosted web sites are powered by LiteSpeed now.
   * in case you may fail to stop Apache(service httpd stop;​service httpd status) after LSWS installed: check if /​usr/​sbin/​httpd_ls_bak exists and /​usr/​sbin/​httpd is just an lsws wrapper. then   * in case you may fail to stop Apache(service httpd stop;​service httpd status) after LSWS installed: check if /​usr/​sbin/​httpd_ls_bak exists and /​usr/​sbin/​httpd is just an lsws wrapper. then
  
  • Admin
  • Last modified: 2015/07/21 14:57
  • by Jackson Zhang