How to create a phpinfo page? Print

  • 1

A phpinfo page shows all the php setting and enabled module for your website/domain php and come very handy in trouble shooting.


1. Log into your cPanel. (this is your domain cpanel not your whm account)
2. Open your File Manager.
3. Navigate to the directory you are working with. This is important because each folder can actually be set to have different php settings. In this example, we are viewing the php settings for our main domain, so we are navigating to the public_html folder.
4. In the top menu, click New File.
5. When prompted for the file name, enter phpinfo.php (it can actually be named anything, phpinfo.php is simply a common name for the file).
6. Find the phpinfo.php file in your list of files (it should have automatically updated). Right click on it and choose "Edit". If you see a "Text Editor" prompt, choose "utf-8" from the drop down list and then click "Edit".
7.Enter the following text:
<? phpinfo(); ?>

8. Then click Save Changes.

9. Now go to http://yourdomain.com/phpinfo.php and there you can see all information for your php setting (make sure you first changed yourdomain.com with your domain name in your browser address bar)

Was this answer helpful?

« Back