Web20 University

How can I find which PHP Version I am running with Wordpress?

To determine the PHP version your WordPress installation is using, you can follow any of these methods:

Method 1: WordPress Site Health Info

  • Log in to your WordPress admin panel.
  • Navigate to Tools -> Site Health -> Info.
  • In the ‘Info’ tab, scroll down to the ‘Server’ section.
  • You will see the PHP version displayed there.

Method 2: Using a PHP Info file

You can create a simple PHP file to check your PHP version:

Open a text editor and put the following code in it:

<?php phpinfo(); ?>
  • Save the file as phpinfo.php.
  • Upload this file to your WordPress root directory using an FTP client or cPanel’s file manager.
  • Once it’s uploaded, navigate to yourwebsite.com/phpinfo.php in your web browser.
  • Your PHP version will be displayed at the top of the page.
  • Once done, remember to delete the phpinfo.php file from your server for security reasons.

Method 3: Using a Plugin

There are numerous plugins available that can display the PHP version:

  • One such plugin is “Display PHP Version”, which can be installed from the WordPress plugin directory.
  • Once installed and activated, it will display the PHP version in the “At a Glance” admin dashboard widget.

Always remember to keep your PHP version up-to-date as WordPress and many plugins and themes rely on the newer versions to function properly. Also, the newer versions have better performance and security enhancements.