PHP SAPI modules

Server Application Programming Interface - SAPI helps interacting between the outside world and the PHP/Zend engine. PHP comes with muliple SAPI modules for using it in command line, with web servers or even embedding it in other applications.

CLI - command line interface

Using PHP in command line interface.

phpdbg - interactive PHP debugger

PHP includes an interactive debugger called phpdbg implemented as a SAPI module.

CGI - common gateway interface

Embed

FPM

Litespeed

Apache2Handler