PHP - Create a PHPinfo File​​ To View PHP settings


How to Create a PHPinfo File to view all PHP Settings

Note: We would recommend removing this file once you have completed troubleshooting. This file provides information about the version of PHP and various PHP limits, which would be useful to a potential hacker.

Step 1 - Log into cPanel, then create a file named phpinfo.php in your website's public_html folder.


Step 2 - Select the PHP info file, then click Edit.


Step 3 - Put this code in the file, then click Save:


Step 4 - To view your site's PHP information, simply go to the website. For example, if your website is you would visit

Did you find this article useful?  

Related Articles

© Crucial