PHP's Command Line Interface (CLI) allows you to execute PHP scripts when logged in to your server through SSH.
ServerPilot installs multiple versions of PHP on your server so there are multiple PHP executables available to run.
Each of the following commands calls the PHP CLI for a different PHP version:
For PHP 8.2:
php8.2-sp
For PHP 8.1:
php8.1-sp
For PHP 8.0:
php8.0-sp
For PHP 7.4:
php7.4-sp
For PHP 7.3:
php7.3-sp
For PHP 7.2:
php7.2-sp
For PHP 7.1:
php7.1-sp
For PHP 7.0:
php7.0-sp
For PHP 5.6:
php5.6-sp
You can also configure the PHP version used when you call just the command php.
For more information, see the PHP CLI documentation.