How to Check the PHP Version

Knowing the exact PHP version your server runs helps you verify compatibility, meet security requirements, and plan upgrades. This guide shows three quick methods – cPanel, a phpinfo() page, and the command line – so you can confirm the version that powers your sites. You can manage PHP versions from cPanel on every JetHost web hosting plan.

Method 1: View the PHP version in cPanel

1. Log in to your cPanel account.
2. Scroll to the Software section.
3. Click Select PHP Version (sometimes labeled MultiPHP Manager).
Your current PHP version appears at the top of the page or next to each domain. If multiple versions are available you can switch to a newer one here – just be sure to test your site afterward.

Method 2: Create a temporary phpinfo() page

1. In your site’s document root (usually public_html), create a file named info.php.
2. Add this one-line script and save it:

<?php phpinfo(); ?>

3. Visit https://your-domain.com/info.php in a browser.
4. The top of the page lists the PHP version and SAPI (server API).
5. Important: delete the info.php file afterward – exposing detailed server data can create a security risk.

Method 3: Check via the command line (SSH)

1. Connect to your hosting account with SSH.
2. Run:

php -v

The first line shows the full version, build date, and architecture – for example PHP 8.4.3 (cli) (built: ...) (NTS). Once you’ve confirmed the version, you can be sure your applications run on a supported release and plan upgrades with confidence.

JetHost Experts Tip

The php -v command over SSH can show the server’s default PHP, not the version a domain uses on the web. To check a specific version in the shell, run its full path – for example /opt/cpanel/ea-php84/root/usr/bin/php -v (replace 84 with your version).

Need more help?

Need a hand confirming or updating your PHP version? Open a ticket through Client Area → Support Tickets and our team will help.