Lindy dB.23 Jan 2024Updated 16 Mar 2026Web Hosting2 min read

How to Check PHP Version and Configuration in your Cpanel Dashboard.

On this page

There are two ways to check the PHP version for your account - First,  through the Select PHP Version menu.

To check what PHP version is selected for your hosting account, go to cPanel > Software > Select PHP Version menu:

how to import and export a database with ssh

You will see the current PHP version above by switching to extensions

how to import and export a database with ssh

Second, the PHPinfo() function.

The 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.

Follow the steps below to run the function:

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

how to import and export a database with ssh

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

how to import and export a database with ssh

how to import and export a database with ssh

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 your domain.tld with your main domain name.

For security reasons, delete the file once you check all the necessary information.

There you have it!  Need further assistance, Contact us.

Ready to put your site online?

Fast, reliable web hosting with free migrations and 24/7 support.

Avatar for Lindy dB.

Lindy dB.

The Author

Lindy brings over 7 years of experience in SEO, web development, UI/UX design, and marketing to the table, with a special focus on the hosting industry. When not geeking out over the latest digital trends, you can find Lindy buried in a good book or exploring worlds in video games.