There may be times when you might want to view your account’s php
settings. In order to do that you will have to create a phpinfo page.
PHPInfo pages help in verifying what php modules are installed/loading
properly, or to see which php.ini a site is using.
Here are the steps that you can follow to create such a file from within your cPanel.
- Start by logging into your cPanel
- Open File Manager
- Make sure you are in the directory you want to put the phpinfo page
into. For instance, if you are making a phpinfo page for your main
domain name, you will want to be in the public_html directory. If you’re
creating a phpinfo page for an Addon domain, navigate to
- Click on the “New File” File icon at the top of the page
- In the dialog box that appears asking you for a file name, type in
phpinfo.php. Note: this file can actually be named anything you want it
to be, phpinfo is just the most common name for this file)
- Locate your new phpinfo file, right click it and select either “Edit”
or “Code Edit” from the menu. If a “Text Editor” prompt appears, in the
drop down list, choose “utf-8” and then click the “Edit” button.
- In the editor, type in the following text
<? phpinfo(); ?>
- Click the “Save Changes” button.
- To view your newly created phpinfo page simply navigate to YourDomain.com/phpinfo.php
Other Useful Resources:
We hope you have found this tutorial useful on how to create a PHP info page.
Thanks for reading and leave your questions below to keep the conversation going.