Luckily, creating a phpinfo page can be performed fairly quickly and easily!
- Open your website files using a File Manager, FTP, or SSH.
- Navigate to your website’s root directory. This generally will be:
- Plesk: httpdocs
- cPanel: public_html
- Create a new file named phpinfo.php in your associated website root directly
You do have the option to add this file into any subdirectory of your choosing. - Add the following lines into your phpinfo.php file:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
View your phpinfo page
- To view your php info page, open a browser and go to the URL http://www.example.co/phpinfo.php

The php info page will be under example.com/phpinfo.php assuming you uploaded the file to your website root directory.
- You can view all of the information about PHP for your server for that particular directory.
- If you’d like to search for a specific module or resource limit, you can press the following keys:
- Windows: CTLR + F
- Mac: CMD + F
- Then type the name of the module or resource in question.

That’s it! You should now know how to create, view, and search through a phpinfo.php page!