Documentation Level: 
Advanced
Documentation Status: 
No known problems

phpinfo: Outputs information about PHP's configuration

Some server administrators may choose to disable the PHP function phpinfo() for security reasons, because it displays information which may be used to compromise the server that your site is running on. While having phpinfo() disabled may make debugging problems in Backdrop (and PHP in general) much more difficult, the server is more secure.

You can enable/disable this function by changing the value of disable_functions in the system php.ini.

If phpinfo() is disabled and you want to enable it, try the following:

  • If you have access to the server's php.ini file, and the line that includes the disable_functions directive says disable_functions = phpinfo then change it to disable_functions =
  • If you don't have access, please contact your server administrator or hosting provider.

If phpinfo() is enabled and you want to disable it, try the following:

  • If you have access to the server's php.ini file, change the line that includes the disable_functions directive so that it says disable_functions = phpinfo
  • If you don't have access, please contact your server administrator or hosting provider.