Does cPanel with LiteSpeed on CloudLinux support PHP-FPM?
Hello,
Just wondering does cPanel+LiteSpeed on CloudLinux support PHP-FPM?
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.
Why do I need it? Well, let it stay out of the scope, please. I really need to know whether or not it's possible. And if it is yes, then please let what do I miss and how to set it up.
Regards,
Alex.
-
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 -
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 -
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 -
OK, thanks. I will update the thread with my findings if I dig out anything useful on the matter. 0 -
Perfect thanks :) 0 -
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 -
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 -
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 -
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 -
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 -
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.
Comments
11 comments