PHP configuration from the terminal, without phpinfo.php
In 2012 I swapped the file with phpinfo() for php -i over SSH. The command is still useful, but it shows the command-line configuration, which is not always the same as the website's.
PHP · Linux