← ServerPilot Docs

How to View PHP Settings with phpinfo

PHP includes a built-in function called phpinfo() for viewing PHP settings. This can be useful to check default PHP settings or to see if the changes to PHP settings you've made were done correctly.

Creating a phpinfo.php File

To see the output of phpinfo(), create a new file in your app named phpinfo.php (you can name it something else, if you prefer). Edit the file so that it contains only the following line:

<?php phpinfo() ?>

Next, make a request for this file using your browser. For example, if you created the file with the name phpinfo.php and your app's domain name is example.com, you'd make a request for http://example.com/phpinfo.php using your browser.

Understanding the Output of phpinfo()

When you make a request for your phpinfo.php page, you'll see a long page displaying tables of all PHP settings. For each setting, you'll see the default value (called the "master" value) and the current value (called the "local" value). The local value will be the same as the master value in all cases except where you've changed a PHP setting.

Sample phpinfo() Output

Below you can find sample phpinfo() output for each version of PHP supported by ServerPilot.

PHP 7.4

Open in new tab.

PHP 7.3

Open in new tab.

PHP 7.2

Open in new tab.

PHP 7.1

Open in new tab.

PHP 7.0

Open in new tab.

PHP 5.6

Open in new tab.

PHP 5.5

Open in new tab.

PHP 5.4

Open in new tab.

Last updated: October 10, 2019

Launch your first site in 5 minutes