PHP-FPM with LiteSpeed under cPanel

Discussion in 'PHP' started by GrAlex, Mar 2, 2017.

  1. GrAlex

    GrAlex New Member


    Logged as root in cPanel, and on a page "Set PHP Version per Domain" I've set PHP Version to ea-php56 and PHP-FPM is ON for a specific domain. And still phpinfo() under the domain shows: Server API LiteSpeed V6.10.

    I see a FPM pool is created, the config files exists in /opt/cpanel/ea-php56/root/etc/php-fpm.d/ and socket is ready /opt/cpanel/ea-php56/root/usr/var/run/php-fpm/94d49cf160dc86bb345671f4a1c956d336aad50f.sock, but still LiteSpeed ignores chosen PHP-mode and still handles all the requests via lsphp.

    Is it an issue of cPanel or LiteSpeed? And how can I set LiteSpeed to use PHP-FPM for my domain?
  2. Pong

    Pong Well-Known Member Staff Member

    It is expected by design. LiteSpeed should use lsphp while apache may use fastcgi/suphp/php-fpm. LSPHP has better performance than other handlers, which is one of the reason to make LiteSpeed faster.
  3. GrAlex

    GrAlex New Member

  4. Pong

    Pong Well-Known Member Staff Member

    Unfortunately, it is unsupported on the WHM/cpanel server.
  5. GrAlex

    GrAlex New Member

    OK, thanks.

Share This Page