Difference between lsphp vs php-cgi
On Centos systems, under the directory /opt/cpanel/ea-php56/root/usr/bin/, I have seen "lsphp" and "php-cgi" executable files. It looks like they are both php handlers. Is that correct?
On Centos 6, I see php-cgi being executed like this: /opt/cpanel/ea-php56/root/usr/bin/php-cgi /home/duelta/public_html/index.php.
On Centos 7, this is executed: /opt/cpanel/ea-php56/root/usr/bin/lsphp. Is this somehow related to Lightspeed? But I am using Apache. I'm a bit confused.
On Centos 7, I've noticed a slightly higher memory consumption by the httpd process as compared to Centos 6. Are these handlers somehow related to httpd process' memory consumption or would this be a totally different issue?
-
Here is the doc on the different PHP handlers: PHP Handlers | cPanel & WHM Documentation LSPHP runs "better" on LiteSpeed web server (i.e. they are designed to work together) but it still runs fine on cPanel Apache. I can't really speak the the memory differences. My guess is that's more of CentOS 6 vs 7 thing. 0 -
I also am not aware of a difference in memory usage. That may be related to the OS, or possibly high traffic/resource usage on that particular machine. 0
Please sign in to leave a comment.
Comments
2 comments