Some server administrators may choose to disable the PHP function phpinfo() for security reasons, because it displays information which can be used to compromise the server that your site is running on. In cases where phpinfo() is disabled, debugging problems in Drupal (and PHP in general) is much more difficult but the server is also more secure.

You may only change 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.

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.