How To Tell What PHP Version Your Server Is Running

Learn how to quickly tell what version of PHP your server is using.

How To Tell What PHP Version Your Server Is RunningThis tutorial is part of our WordPress Management tutorial series. In this short tutorial, you will learn how to quickly determine what version of PHP your server is running from your cPanel account.

***

How To Tell What PHP Version Your Server Is Running

When you are managing a website or trying to install a new application, there may be times when you (or your web developer) need to know what PHP version your server is running.

Useful Information

Note: If you are not running a server that uses cPanel, then simply ask your host provider, or use the alternate method provided at the end of this tutorial.

How To Determine The PHP Version Of Your Server Using cPanel

To determine the PHP version of your current WordPress installation, log into your cPanel account …

cPanel Login Screen

Once you have logged into the control panel area, click the ‘expand stats’ link at the bottom of the sidebar menu …

PHP Version

Scroll down the expanded stats sections until you find the ‘PHP version’ number. In the screenshot below, the PHP version is “5.3.28” …

PHP Version

Determine Your Server’s PHP Version – Alternate Method

Here is an alternate method you can use to determine the PHP version of your server.

Open a new, blank text file, and type in the code show below (or just download the file we provide for you at the end of this tutorial) …

PHP Version

You will need to save the file as ‘phpinfo.php’, as shown below …

PHP Version

When saving the file, make sure to choose ‘Save as type: All Files’ as shown in the example below …

PHP Version

After saving the file, upload it to the root directory of your server, either using FTP or via cPanel’s File Manager …

PHP Version

After the file has been uploaded to your server, open up a new browser window and type in the URL address pointing to the file you have just uploaded, e.g. …

PHP Version

A page with technical information will display on your screen, with the current PHP version of your server displayed at the top of the page, as shown in the screenshot below …

PHP Version Information

(PHP Version Information)

Congratulations! Now you know how to determine the PHP version of your server.

***

"Learning WordPress has been a huge stumbling block for me. I've been looking for something that covers absolutely everything but doesn't cost an arm and a leg. Thank you so much ... you have just provided me with what I have been looking for! Truly appreciated!" - Tanya

***

Originally published as How To Tell What PHP Version Your Server Is Running.