How to Create a phpinfo File to Check Your PHP Settings

Category: cPanel & Hosting  •  Est. reading time: 3 minutes

A phpinfo file is a tiny page that reports exactly how PHP is configured on your server: the version, memory limits, upload sizes, and which extensions are active. It is a handy diagnostic when a plugin complains about a setting. Just remember to remove it when you are done, because it reveals details you do not want public.

The Steps

  1. Log in to cPanel and open File Manager in the Files section.
  2. Open your public_html folder.
  3. Click + File and name it info.php.
  4. Select the new file, click Edit, and paste in exactly this: <?php phpinfo(); ?>
  5. Save, then visit yourdomain.com/info.php in your browser to see the report.

Delete it afterward, without fail. A phpinfo page tells strangers a lot about your server, which is a gift to attackers. The moment you have the info you need, delete info.php from File Manager.

Chasing a PHP setting and not sure what to change? On our managed hosting we tune this for you. Reach us at support@allydrez.com or 1-321-209-2004.

Ally Drez Web & IT Services home