There are two ways to check the PHP version set for the account: through the Select PHP Version menu or via the PHPinfo() function.
 
To check what PHP version is selected for Shared hosting, go to cPanel Software section > Select PHP Version menu:
 
 
You will see the current PHP version here:
 
 
 
 
Another way to check the PHP version is the PHPinfo() function, commonly used to check the current state of the 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 and go to the Files section > File Manager:
 
chrome_VPbxTPpJgL.png
 
2. Navigate to the public_html or your domains directory, click on +File and create a phpinfo.php file:
 
 
3. Find the newly created file in the list and click on Edit in the upper corner menu or right-click on the file > Edit:
 
 

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

<?php
phpinfo();
?>

 

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

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

 

In this way, you can check your PHP version easily. If you have any problems, then please contact support

Was this answer helpful? 0 Users Found This Useful (0 Votes)