How to Create Phpinfo Script and View Phpinfo Information

Phpinfo serves to display a page that contains information and php settings used on the server. This information is needed to find out the limitations of the server.


When you upload files to your website and then get a timeout, or when you want to import data to the server, but often fails, you can try to check the server limitations through this php info.


With Phpinfo you can see PHP information on your hosting such as:

- The PHP version you are using

- max_execution_time 

- memory_limitpost_max_size
- And so on


To make it, here are the steps:


1. If you are using Cpanel:
Please login your cpanel

Then select FILE MANAGER>>>PUBLIC_HTML>>>select File>>>then create the file phpinfo.php.>>>then in Create New FIle


After that, type the following script:


<?php phpinfo(); ?> 


And don't forget to save it.



2. If you are using Plesk:

Login to your plesk account
Select File Manager>>>httpdocs>>>New>>>Create File>>phpinfo.php








Click the phpinfo.php file that has been created and OK.



with this done you can access the info on your hosting by way of:http://namadomain.com/phpinfo.php 


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.