Table of Contents

About

The phpinfo command gives information on your php environment and is used to check the configuration (php.ini) of a php cli

Access

Command line

php -i gives you phpinfo information at the command line.

php -i

You can overwrite/define them with the -d option.

Example:

/usr/bin/php7.4 -dxdebug.client_host=127.0.0.1   -i | grep debug.client_host

php web page

Create a page phpinfo.php with the following code and get it from your webserver

<?php phpinfo(); ?>