How to check PHP version and configuration

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: 

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



2. Navigate to public_html directory, click on New File and create 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: 
do not forget to delete the file once you check all the necessary information, for security reasons. 
  • 2 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Related Articles

How to set up FileZilla

How to set up FileZilla Once you’ve downloaded and installed FileZilla, launch the program....

Uploading Your Website Files

Uploading Your Website Files   There are three possible ways to use FTP: cPanel File Manager...

File permissions

File permissions   Each file and folder located in your account has certain permissions...

How to create and maintain MySQL Databases in cPanel

How to create and maintain MySQL Databases in cPanel   This tutorial describes the process of...

How to manage databases with phpMyAdmin

How to manage databases with phpMyAdmin   phpMyAdmin is an application for MySQL databases...