1. Home
  2. Hosting & Servers
  3. Web Hosting
  4. How to check PHP version and configuration of website
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. How to check PHP version and configuration of website
  1. Home
  2. Hosting & Servers
  3. Web Hosting
  4. How to check PHP version and configuration of website
  1. Home
  2. Hosting & Servers
  3. Virtual Private Server [VPS]
  4. How to check PHP version and configuration of website

How to check PHP version and configuration of website

There are two ways to check PHP version set for the account. By default, we have PHP 7.2 set on our Shared servers.
To check what PHP version is selected for your account go to cPanel Software section > Select PHP version menu:

You will see the current PHP version above PHP extensions:

To run the function, follow the steps below:
1. Log into your cPanel account, go to the Files section > File Manager:
For cPanel Basic Theme:

 

For cPanel Retro Theme:

2. Navigate to the public_html 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 the detailed information about the PHP configuration of your account, open http://yourdomain.tld/phpinfo.php link in your browser, replacing yourdomain.tld with your main domain name.

 

 

 

Updated on April 21, 2020

Was this article helpful?