How to Use the PHP CLI
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 5.4:
For PHP 5.5:
For PHP 5.6:
For PHP 7.0:
For PHP 7.1:
For PHP 7.2:
For more information, see the PHP CLI documentation.
Last updated: August 31, 2017