PHP: What is lsphp?

PHP needs to communicate with the WebServer (apache, nginx, litespeed or any other) in a format which both parties can understand. For example a common way of integrating apache with PHP is by using “mod-php” for apache. nginx usually is integrated using “php-fpm” which is a modern way of “cgi” interface (basically informations are shared over a port or socket). litespeed server which most likely you have installed on your machine communicates using a special “api” (application programming interface) called lsphp (https://www.php.net/manual/de/install.unix.litespeed.php). So if you are using apache or nginx then most likely there is something wrong that lsphp processes are running but if you have LiteSpeed Web Server or OpenLiteSpeed Web Server then it is more than normal.

Most likely the problem with resources is not due to the processes, but due to what they do. Have you checked the logs of your webserver for unusual behavior? For example maybe you are being DDoSed by a bot and simply numerous instances of PHP are fired to handle the traffic.

Leave a Comment