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
litespeed_wiki:install:commandline [2014/06/27 20:00]
Michael Armstrong [How to Set Up LiteSpeed Web Server from the Command Line]
litespeed_wiki:install:commandline [2015/07/20 19:13]
Michael Alegre removed
Line 5: Line 5:
 This wiki is meant for those familiar with the Unix/Linux console command line environment that see a GUI as a distraction and overhead. ​ This wiki is meant for those familiar with the Unix/Linux console command line environment that see a GUI as a distraction and overhead. ​
  
-This wiki is not meant for users using [[litespeed_wiki:​cpanel:​auto-installer|cPanel/​WHM]],​ [[litespeed_wiki:​plesk:​installation|Plesk]],​ or [[litespeed_wiki:​apache:da|DirectAdmin]]. Users using a control panel should use the guide associated with their control panel.+This wiki is not meant for users using [[litespeed_wiki:​cpanel:​auto-installer|cPanel/​WHM]],​ [[litespeed_wiki:​plesk:​installation|Plesk]],​ or [[litespeed_wiki:​directadmin:apache|DirectAdmin]]. Users using a control panel should use the guide associated with their control panel.
 ===== Step 1: Download the LSWS package ===== ===== Step 1: Download the LSWS package =====
  
Line 33: Line 33:
 The installer will ask you a number of questions (covered in detail [[http://​www.litespeedtech.com/​docs/​webserver/​install|here]]). The installer will ask you a number of questions (covered in detail [[http://​www.litespeedtech.com/​docs/​webserver/​install|here]]).
  
-**Note:** It may be best to set Port Offset to a number other than "​0"​. If Port Offset is set to "​0",​ LSWS may stop Apache and start LSWS after a successful installation. This is not ideal, since we still need to build the PHP binary for LiteSpeed.+**Note:​** ​The installer will ask you to set a port offset. ​It may be best to set Port Offset to a number other than "​0"​. If Port Offset is set to "​0",​ LSWS may stop Apache and start LSWS after a successful installation. This is not ideal, since we still need to build the PHP binary for LiteSpeed.
  
 ===== Step 3: Build matching PHP ===== ===== Step 3: Build matching PHP =====
Line 43: Line 43:
   - Using the WebAdmin console. This is highly recommended,​ even for users who generally prefer the command line, as it combines steps. Simply access the WebAdmin through port 7080 and go to Actions > Compile PHP. There you will be guided through the steps to build PHP.   - Using the WebAdmin console. This is highly recommended,​ even for users who generally prefer the command line, as it combines steps. Simply access the WebAdmin through port 7080 and go to Actions > Compile PHP. There you will be guided through the steps to build PHP.
   - [[litespeed_wiki:​php:​lsapi|From the command line.]]   - [[litespeed_wiki:​php:​lsapi|From the command line.]]
-===== Step 4: Start LiteSpeed again ===== 
  
-Just click "​Restart LiteSpeed"​ +===== Step 4: Verify and switch ports =====
-Then you can verify if everything works as expected. It should! 8-)+
  
-If "Port Offset"​ is set to non-zero, you can now replace Apache with LiteSpeed Web Server. Just click "​Switch to LiteSpeed"​.+Restart LSWS
  
-That's it.+  /​usr/​local/​lsws/​bin/​lswsctrl restart
  
-**WARNING:​** Do **NOT** uncheck "​httpd"​ service under WHM service managerotherwise WHM wont restart LiteSpeed automatically when configuration has been changed+Now you can verify on the port you've chosen with you port offset that everything works as expected. It should! 8-) 
 + 
 +Once you've verifiedswitch LSWS onto port 80. 
 + 
 +That's it.