I've managed to resolve the issue.
When I tried to run php -r 'echo php_sapi_name()."\n";' I received this error:
Error in argument 1, char 2: option not found r
Usage: php-5.4 [-q] [-h] [-s] [-v] [-i] [-f <file>]
php-5.4 <file> [args...]
-a Run interactively
-b...
I am trying to allow emojis on my forum. I have followed the instructions in the documentation for upgrading an existing installation (https://xenforo.com/xf2-docs/manual/unicode/). This is what gets output when I run the command using SSH:
$ php cmd.php xf:convert-utf8mb4
Content-type...