24 hr Australian Support


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.

cdef256b6a6ff3626589b944b4462caf0b5bdc0b?t=592915d24e685a0fade693383a1a3f2e


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

259d08dccce3220736f6fdcb9f449e90c1118231?t=71eb5134df6fd6399f878ec1a985ffb4


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

<?php 
phpinfo(); 
?>

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


Did you find this article useful?