Find PHP Version

From Acenet Knowledgebase
Jump to: navigation, search

This article provides details on how you can tell what version of PHP your server is running through cPanel or through SSH.

cPanel

1) Log into your cPanel.

2) Expand the Cpanel stats tab.jpg tab to the left by clicking on it if it's not already expanded.

3) Look for 'PHP Version' under the 'Stats' tab. Your server's current PHP version is provided there.

SSH

1) Log into your server via SSH as root.

2) Type the following command to find the PHP version:

php -v

You should see output similar to:

root@ [~]# php -v
PHP 5.2.17 (cli) (built: Oct 16 2012 12:27:57)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies