HostOnNet Blog

How to create phpinfo page in Cpanel Server

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