HostOnNet Blog

How to create phpinfo page in Cpanel Server

Looking for Linux Server Admin or WordPress Expert? We can help.

A phpinfo page displays the current PHP configuration settings of your web server. If your website is developed in PHP, you’ll find the information in a phpinfo page very helpful for your site planning and troubleshooting.

1. Log in to your cPanel and click File Manager.

2. Select your site’s home directory and click New File.

3. Name the file phpinfo.php and click Create New File. Select the file and click Edit.

4. Add the following line of code and click Save Changes.

<?php phpinfo();

You can now access this page from your browser. If you created the file in your public_html folder, then you would visit http://mysite.com/phpinfo.php. Replace mysite.com with your domain name. You’ll see all of the PHP information for your web server.

About Annie

I've been working in Technical Section for over 10 years in a wide range of tech jobs from Tech Support to Software Testing. I started writing blog for my future reference and useful for all.
Posted in Cpanel Server

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.