ServerPilot uses its own PHP builds so you can have multiple versions of PHP available for apps on your servers.
If you try to use the php command and get the following error:
~$ php
The program 'php' is currently not installed. You can install it by typing:
sudo apt-get install php-cli
Do not install any PHP CLI packages using apt.
ServerPilot has already installed a separate PHP CLI command for each PHP version on your server. These commands are named, for example, php8.2-sp.
~$ php8.2-sp -v PHP 8.2.7 (cli) (built: May 20 2012 07:00:00) (NTS) Copyright (c) The PHP Group Zend Engine v4.2.7, Copyright (c) Zend Technologies with Zend OPcache v8.2.7, Copyright (c), by Zend Technologies
More information is available in our article on how to use the PHP CLI.