It is possible to wrap service in lve using lve-wrappers. To do that, install lve-wrappers first:

Then rename service that you want to wrap like:

Create a new script to start service instead:

That should be it. You can specify any number as LVE_ID, just make it large enough so it would not clash with user id from /etc/passwd file.

In LiteSpeed admin interface do the following:

Configuration -> Server -> Edit -> “Enable LVE” = “Yes” -> Save 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)



See screenshot below:

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


read more