There are two main ways to check the PHP version set for your hosting account: through the Select PHP Version menu or by using the PHPinfo() function.
How to Check PHP Version via cPanel
For Stellar or Stellar Plus hosting accounts, go to:
- cPanel
- Software section
- Select PHP Version
You will see the current PHP version displayed above the list of available PHP extensions.
If you have a Stellar Business hosting plan, navigate to:
- Exclusive for Customers section
- PHP Tweaks menu
There, you will see the domain and the PHP version assigned to it.
How to Check PHP Version with PHPinfo()
The PHPinfo() function is a useful tool to view the current PHP configuration and server details. It also provides information for debugging.
Steps to Use PHPinfo()
- Log in to your cPanel account and open File Manager.
- Navigate to the public_html directory, then click +File to create a new file named phpinfo.php.
- Edit the file and add the following code:
<?php phpinfo(); ?>
- Save the changes.
- In your browser, open http://yourdomain.tld/phpinfo.php, replacing yourdomain.tld with your actual domain name.
Important: For security reasons, delete the phpinfo.php file after viewing the information.
That’s it! You now know how to check your PHP version in cPanel using either the Select PHP Version tool or the PHPinfo() function.
Subscribe to get latest blog updates!