Skip to main content

Does cPanel with LiteSpeed on CloudLinux support PHP-FPM?

Comments

11 comments

  • Jcats
    Alex, Doing some Googling: litespeed_wiki:php:lsapi [LiteSpeed Wiki] "LSWS can also use PHP with FastCGI (PHP-FPM), but LSAPI has repeatedly been shown to be faster and more efficient than FastCGI." You may want to stick with mod_lsapi.
    0
  • GrAlex
    Thanks for the link. It seems Google hid the page from me. One question is now answered, that's good. Now I'd like to know whom should I address the question on why PHP-FPM selected in cPanel is not activated for my domain? 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. CloudLinux as it seems does not support PHP-FPM as of now.
    0
  • Jcats
    I cannot find any documentation on it, you would most likely be better off just disabling LiteSpeed all together and use Apache with PHP-FPM otherwise I would post on LiteSpeed's forums.
    0
  • GrAlex
    OK, thanks. I will update the thread with my findings if I dig out anything useful on the matter.
    0
  • Jcats
    Perfect thanks :)
    0
  • GrAlex
    Found out that it's CloudLinux which changes the PHP mode: # selectorctl --user-current --user=user 5.6 5.6.30 /opt/alt/php56/usr/bin/php-cgi But it stops working if I set it to native even with ea-php56 (PHP-FPM OFF) in cPanel. Stops working here means the following a PHP script in a browser returns 0-size page with HTTP 200, OK. Could you please let me know what might be wrong?
    0
  • cPanelMichael
    Could you please let me know what might be wrong?

    Hello, Could you open a support ticket using the link in my signature so we can take a closer look at your system to see what's happening? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • GrAlex
    Hello, OK, I will open a ticket. As for PHP-FPM they say it's not support on WHM/cPanel servers with LiteSpeed: PHP-FPM with LiteSpeed under cPanel | LiteSpeed Support Forums
    0
  • GrAlex
    I've opened a ticket. Support Request ID is: 8282149. No access is provided. So I guess you won't help to resolve it.
    0
  • cPanelMichael
    I've opened a ticket. Support Request ID is: 8282149. No access is provided. So I guess you won't help to resolve it.

    Hello, You could send a reply to the ticket to explain that you prefer to not provide access, but it's generally easier for us to troubleshoot an issue with access to the affected system. Thank you.
    0
  • Anoop P Alias
    Apache => mod_proxy_fcgi => php-fpm Apache=>mod_lsapi(CloudLinux) => lsphp Litespeed =>lsapi => lsphp This is how it works. FastCGI and LSAPI are protocols . I think its better to stick with lsapi/lsphp if using LiteSpeed as LiteSpeed is mostly used and tested to run php this way
    0

Please sign in to leave a comment.