View PHP settings using phpinfo()

Last updated on
8 November 2024

You can find out how PHP is configured on your server by viewing the output of the PHP function phpinfo(). Following are two methods explaining how to do that.

Access the phpinfo() page

Go to the Status report at admin/reports/status. In the PHP section, follow the link with the title, 'more information'.

State report

Manual

Create a PHP file on the web server with the following contents. Then access the file from a browser. For example, If the file name is info.php then go to https://my.drupal.site/info.php

<?php

phpinfo();

Consider Devel Module

If you find yourself doing this sort of thing often, consider using the Devel module during the development phase.

The module provides a block that includes a phpinfo() menu item. Plus there are many other useful things provided by the Devel module.

Help improve this page

Page status: No known problems

You can: