Difference between lsphp vs php-cgi


May 30, 2014
cPanel Access Level
Website Owner
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?