The Blog

Tips For Creating The Best Website Content for Your Visitors PHP
July 13, 2020 0 Categories Knowledge Base

How to check PHP version and configuration for maintaining and optimization.

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.

Note: On most shared hosting servers, PHP 7.2 is set by default.

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()

  1. Log in to your cPanel account and open File Manager.
  2. Navigate to the public_html directory, then click +File to create a new file named phpinfo.php.
  3. Edit the file and add the following code:
<?php
phpinfo();
?>
  1. Save the changes.
  2. 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!

By Yako Cloud

The Yakocloud blog covers topics from Domain to hosting . It’s the perfect stop to learn the articles are simple but not simplistic. And they are also getting straight to the point. Main categories are Website Hosting, Website Security Website Backups, Professional Email , Website Builder WordPress Hosting.