Find PHP Version: Difference between revisions
Jump to navigation
Jump to search
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..." |
Docs admin (talk | contribs) |
||
Line 5: | Line 5: | ||
1) Log into your cPanel. | 1) Log into your cPanel. | ||
2) Expand the | 2) Expand the [[File: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. | 3) Look for 'PHP Version' under the 'Stats' tab. Your server's current PHP version is provided there. |
Latest revision as of 15:31, 17 January 2013
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 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:
<syntaxhighlight lang="bash">php -v</syntaxhighlight>
You should see output similar to:
<syntaxhighlight lang="bash">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</syntaxhighlight>