How can we help you?

How to create a phpinfo page?

Ella McMorran
Written by
Ella McMorran

A phpinfo page shows all the PHP settings and enabled PHP modules for your website/domain and may come in very handy in troubleshooting.

  1. Log into your cPanel. (this is your domain cPanel not your WHM account)
  2. Open your File Manager.
  3. Navigate to a directory inside your domain’s public_html folder.
Note

It is important to remember where you create the file as each folder can be set in a way to have different PHP settings.

  1. In this example, we are viewing the PHP settings for our main domain, and we need to navigate to the public_html folder.
  2. In the top menu, click New File.
  3. When prompted for the file name, enter phpinfo.php.
  4. Find the phpinfo.php file in your list of files.
  5. Right-click on the file and choose “Edit”. If you see a “Text Editor” prompt, choose “utf-8” from the drop-down list and then click “Edit”.
  6. Enter the following text:
    <? phpinfo(); ?>
  7. Click Save Changes.
  8. Now go to http://yourdomain.com/phpinfo.php, and there you should see all the information about your PHP settings.
Warning

Make sure you first changed yourdomain.com with your domain name in your browser address bar.