A Web.com Partner

What is a phpinfo file and how to create it

A phpinfo.php file is a file that makes it easier for you to see PHP information about the server you are hosted on.

If you’re not familiar with how to create a php page, follow the steps below to create a phpinfo page using your File Manager.

  1. Log into your cPanel.
  2. Open your File Manager.
  3. Navigate to the directory you are working with. This is important because each folder can actually be set to have different php settings. In this example, we are viewing the php settings for our main domain, so we are navigating to the public_html folder.
  4. In the top menu, click New File.
  5. When prompted for the file name, enter phpinfo.php (it can actually be named anything, phpinfo.php is simply a common name for the file).
  6. Find the phpinfo.php file in your list of files (it should have automatically updated). Right click on it and choose “Edit”. If you see a “Text Editor” prompt, choose “utf-8” from the drop down list and then click “Edit”.
  7. Enter the following text:
    <? phpinfo(); ?>

    Then click Save Changes.

While it doesn’t include version information about your database scheme, it does include version information about PHP, Apache/IIS, GD, and other things. It also contains a description of many important settings, which could possibly be causing problems with your php script installation.