LiteSpeed: How to add a 2nd php handler to use the DirectAdmin php selector with an LSPhp instance


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » CustomBuild » CustomBuild 2.0

LiteSpeed: How to add a 2nd php handler to use the DirectAdmin php selector with an LSPhp instanceLast Modified: Jan 3, 2016, 2:39 am

A) Setup the second version of PHP as external application in LiteSpeed Webserver control panel:

  1. Open LiteSpeed Webserver control panel: http://hostname.com:7080
  2. Go to Configuration->Server->External App->Add
  3. Select "LSAPI App" from the drop-down list. Click Next.
  4. Enter the following information in textfields provided (change PHP release (56) to the 2nd release of PHP set in CB 2.0):

    Name: lsphp56
    Address: uds://tmp/lshttpd/lsphp56.sock
    Command: /usr/local/php56/bin/lsphp

  5. Click "Save".

B) Now we need to setup a PHP handler for the external application added:

  1. Go to Configuration->Server->Script Handler->Add
  2. Enter php56 into "Suffixes" text field.
  3. Select "LiteSpeed SAPI" as Handler Type.
  4. Select "[Server Level]: lsphp56" as Handler Name.
  5. Click "Save".


This also assumes you've got DA 1.49.2 or higher, to make use of this feature:
http://help.directadmin.com/item.php?id=408

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST