• Support
  • Support
  • Cart

How to check PHP version and configuration

PHPinfo() function is commonly used to check the current state of PHP configuration. It can also be used for debugging purposes as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.

To run the function, follow the steps below:


for cPanel paper_lantern theme
for cPanel x3 theme



for cPanel paper_lantern theme:

1. Log into your cPanel account, go to Files section > File Manager menu:



2. Navigate to public_html directory, click on New File and create a phpinfo.php file:





3. Find the newly created file in the list and click on Code Editor:



4. Add the lines of the code provided below to the file and click on Save Changes:

<?php
phpinfo();
?>




5. To see the detailed information about PHP configuration of your account, open http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.

NOTE: For security reasons, do not forget to delete the file once you check all the necessary information.


for cPanel x3 theme:

1. Log into your cPanel account, go to the section Files > File Manager menu:



2. Navigate to the public_html directory, click on New File and create a phpinfo.php file:



3.Find the newly created file in the list and click on Code Editor:

 

4. Add the lines of the code provided below to the file and click on Save Changes:

             
<?php
  phpinfo();
  ?>




5. To see the detailed information about PHP configuration of your account, open http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.

NOTE:
For security reasons, do not forget to delete the file once you check all the necessary information.


 That's it!


                    Need any help? Contact us via Helpdesk