Find PHP Version

From Acenet Knowledgebase
Revision as of 20:28, 17 January 2013 by Docs admin (Talk | contribs) (Created page with "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 th...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 'Stats' 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