Want to know which PHP version your websites are running on? Sometimes you may want to know which PHP version you are using. For example some WordPress plugins require specific PHP versions in order to be working properly, like PHP 5.2, 5.3 or latest 5.4. See how to check PHP version on Linux server, and how to find out PHP version in cPanel below.

How to determine which PHP Version your sites are running?

The easiest way to find out the PHP version your websites are running is to create a phpinfo.php file on your Windows PC or Mac computer, then upload it to your web hosting through FTP, after that go to browse this file from web browser. See below screenshot.


How to create this phpinfo.php file on Windows or Mac?

You can use any text edit to create a new file on your PC or Mac. If you are on a Windows PC, you can create a new file using Notepad, then copy and paste below code into this file:


phpinfo(); ?>

Save the file, and rename it to phpinfo.php. Upload it from your computer to your hosting control panel or Linux server through FTP. Load this file from any web browser, you will find out the PHP version your sites are running. If you found your sites are running on a lower version and want to upgrade.

How to find out PHP version in cPanel hosting?

To find out the PHP version of your sites hosted in cPanel hosting, you can log on cPanel, there will be a sidebar on the left shows the stats of your hosting account. The current PHP version of your hosting service will be displayed with many other server information and stats. See below screenshot.


determine php version in cpanel