Knowledgebase Home / How to Create a php Info File and View PHP Information – phpinfo.php

How to Create a php Info File and View PHP Information – phpinfo.php


Quick steps:

  1. Log into cPanel
  2. Open File Manager
  3. Locate your current working directory (eg public_html)
  4. create new file: phpinfo.php
  5. Enter the following code: <? phpinfo(); ?>
  6. Save the file and navigate to the phpinfo.php file from your website

The PHP installed on your hosting account and/or server has various settings that are configured. Depending on the application you’re installing, you may need to view these settings to ensure the requirements of the application are met. A php info file will display the current settings & values of the live PHP running on the server and/or hosting account.

In your document root, create a file called “phpinfo.php” and place the following code into it & then save the file:

<? phpinfo(); ?>

After adding the above code and saving the file, you should now be able to access the file in your browser.

PHP Info File

 

There’s various settings that can be viewed such as:

  • max_input_time
  • max_input_vars
  • memory_limit
  • post_max_size
  • open_basedir
  • upload_max_filesize

 

PHP Info Page

We'd love to hear your thoughts. How can we make this better?


If the steps above listed in this article do not resolve your issue, please feel free to open a support ticket and we’d be happy to take a look.

Looking for better web hosting? Sign up today and take 50% off your first month with promo code: 1stmonth50

Our Guiding Principles

  • Provide consistent, stable and reliable web hosting services.
  • Ensure rapid ticket response and quick resolutions to issues.
  • Never saturate or over-provision servers to ensure stability and speed for our customers.
  • Use only high quality enterprise-class hardware to ensure minimal downtime from hardware failures.
  • Provide clear pricing with no hidden fees or gotchas.