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:installation [2014/08/04 14:24]
Michael Armstrong [Install LSWS]
litespeed_wiki:plesk:installation [2015/07/21 18:36]
Michael Alegre [Stopping Nginx Reverse Proxy Before LiteSpeed Installation]
Line 1: Line 1:
 ====== Installing LSWS with Plesk ====== ====== Installing LSWS with Plesk ======
  
-This wiki will cover how to install LiteSpeed Web Server (LSWS) and LiteSpeed'​s [[http://​www.litespeedtech.com/​products/​control-panel-plugins/​plesk-extension|Plesk Extension]] on a Plesk server. There are multiple ways to go about the installation. The wiki will only cover installing the Plesk Extension first and then installing LSWS from the extension.+This wiki covers ​how to install LiteSpeed Web Server (LSWS) and LiteSpeed'​s [[http://​www.litespeedtech.com/​products/​control-panel-plugins/​plesk-extension|Plesk Extension]] on a Plesk server ​and assumes that you have a working Apache-Plesk setup. There are multiple ways to go about the installation. The wiki will only cover installing the Plesk Extension first and then installing LSWS from the extension.
  
-This wiki assumes that you have working ​Apache-Plesk setup.+===== Stopping Nginx Reverse Proxy Before LiteSpeed Installation ===== 
 +The latest version of Plesk may configure Nginx as 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. ​  
  
 +** Stopping Nginx reverse proxy: **
 +
 +From the Plesk Admin Console, navigate to...
 +
 +Server Management -> Tools and Settings -> Server Management -> Services Management -> Reverse Proxy Server (nginx)
 +
 +...and click the stop button.
 +
 +Verify that no nginx process is still running with the following command: ​
 +
 +  ps -ef | grep nginx | grep master
 +
 +If you see the following output: ​
 +
 +  root    16379    1  0 09:45 ?     ​00:​00:​00 nginx: master process /​usr/​sbin/​nginx -c /​etc/​nginx/​nginx.conf
 +  ​
 +The Nginx reverse proxy has not yet been stopped and must still be stopped before attempting LiteSpeed installation.
 ===== Prerequisites ===== ===== Prerequisites =====
  
Line 68: Line 86:
  
 {{litespeed_wiki:​plesk:​plesk_start_lsws.png?​700}} {{litespeed_wiki:​plesk:​plesk_start_lsws.png?​700}}
-==== Build PHP for LSWS ==== 
  
-LSWS requires PHP built with LSAPI. We will be building PHP through the WebAdmin console, but PHP can also be built through the command line. (When building from the command line, simply add the %%"​--with-litespeed"​%% option to have it built with LSAPI.)+==== Get PHP for LSWS ====
  
-Access the WebAdmin console by clicking "​WebAdmin Console"​.+LSWS requires PHP built with LSAPI. There are a number of ways to get PHP with LSAPI
  
-{{litespeed_wiki:​plesk:plesk_webadmin_console.png?700}}+  - Many Plesk users may find it easiest to get PHP for LSWS through the [[http://​www.litespeedtech.com/​support/​wiki/​doku.php?​id=litespeed_wiki:​php:rpm#​installing_php_from_the_litespeed_repository|Litespeed Repository]] or [[http://​rpms.famillecollet.com/​|Remi Repository]]. Follow our [[litespeed_wiki:​php:​rpm|Installing LSPHP via RPM]] guide for these steps. 
 +  - You can also build PHP through the WebAdmin console or through the command line. Building PHP yourself is covered in our [[litespeed_wiki:​php:​lsapi|Compile PHP for LSWS]] guide.
  
-Use the user name and password ​you set during ​installation to log in.+Once you have completed PHP installation, go to the next step: testing your sites. 
 +==== Test your sites with a port offset ====
  
-{{litespeed_wiki:​plesk:​plesk_webadmin_login.png?​700}} 
- 
-The Build PHP tool can be found under Actions > Compile PHP. 
- 
-{{litespeed_wiki:​plesk:​plesk_php_menu.png?​700}} 
- 
-Select your PHP version number. 
- 
-{{litespeed_wiki:​plesk:​plesk_php_version.png?​700}} 
- 
-Configure your PHP with the options you want. Pay special attention to the Configure Parameters field. These parameters must mirror the PHP options you have with Apache for LSWS to serve your PHP sites correctly. 
- 
-{{litespeed_wiki:​plesk:​plesk_php_configure.png?​700}} 
- 
-LSWS will prepare to build PHP. When it is done, click "​Next"​. 
- 
-{{litespeed_wiki:​plesk:​plesk_php_prep.png?​700}} 
- 
-You will now be asked to run a script as root to build PHP. 
- 
-{{litespeed_wiki:​plesk:​plesk_php_build.png?​700}} 
- 
-Because LSWS builds PHP from source code you may have to install some missing libraries to build PHP. 
- 
-Restart LSWS when the build is complete. 
- 
-{{litespeed_wiki:​plesk:​plesk_restart_lsws.png?​700}} 
- 
-==== Test your sites with a port offset ==== 
 The beauty of the port offset is that you can run LSWS and Apache in parallel. This means you can try out your sites with LSWS to make sure they work before atually turning off Apache. In our setup, I have set the port offset to 1000. If I want to check any sites, I can do so on ports 1080 and 1443. The beauty of the port offset is that you can run LSWS and Apache in parallel. This means you can try out your sites with LSWS to make sure they work before atually turning off Apache. In our setup, I have set the port offset to 1000. If I want to check any sites, I can do so on ports 1080 and 1443.
  
Line 121: Line 111:
  
 {{litespeed_wiki:​plesk:​plesk_lsws_running.png?​700}} {{litespeed_wiki:​plesk:​plesk_lsws_running.png?​700}}
- 
  • Admin
  • Last modified: 2015/09/04 21:26
  • by Michael Alegre