In LiteSpeed admin interface do the following:

Configuration -> Server -> Edit -> "Enable LVE" = "Yes" -> Save
Note:

If you are using CageFS then choose cagefs there.

To enable PHP Selector with LiteSpeed you have to adjust more settings in Admin:
  1. CloudLinux (Admin Console --> Configuration --> Server --> General): CageFS;
  2. Enable SuExec: Server-> General -> PHP SuEXEC -> Yes;
  3. LSPHP5 external app runs in SUEXEC non-daemon mode ONLY (Run On Start Up --> Yes or No);
  4. In LSPHP5 external app (Admin Console --> Configuration --> Server --> External App --> lsphp5).

Change the command:

$SERVER_ROOT/fcgi-bin/lsphp5

To

/usr/local/bin/lsphp
Note:

1) In order to use PHP Selector and custom php.ini, lsphp5 needs to be in SuEXEC non-daemon mode.

2) Some PHP configurations require more memory for SuEXEC to work properly. If you are getting error 500 after switching suEXEC to non-daemon mode, try to increase Memory Soft Limit and Memory Hard Limit for external App (Admin Console --> Configuration --> Server --> External App --> lsphp5 ) to at least 650/800M.

Related services

KVM VPS hosting

NVMe SSD and full root access, with Free Basic Managed Support.

Unmanaged dedicated servers

full root access and free IPMI KVM, with Free Basic Managed Support.

Managed dedicated servers

our engineers look after the server for you, from $135 a month.

Was this answer helpful?

Still stuck? Open a ticket