How to check what version of PHP you are running? Print

  • 3

How to check what version of PHP you are running

How to check what version of PHP you are running

Prerequisites

  • FTP or Plesk Access to your website
There are a few ways to check what version of PHP you are running. You'll also be able to see your PHP configuration, as well as what PHP modules you have available. The following outlines how you can achieve this via a simple PHP code.

Step : 1

Create a simple web document (page) in a text editor with the following code :



Step : 2

Save your web document and call it phpinfo.php

Step : 3

Once you have created your PHP web document you will need to upload it to your where your website is hosted. This can be done several ways via the File Manager in Plesk, or FTP. You'll need to upload this to a publicly accessible area, which for Plesk based systems is in the "httpdocs" directory.

Step : 4

Now need to call the newly created phpinfo.php page from your browser. For example, it may be "http://yourdominaname.com/phpinfo.php". You should see something like the following :




Clean Up

Once you have the information you require we strongly urge you to delete phpinfo.php file from your server, as it poses a potential security risk by displaying information about your system.

Was this answer helpful?

« Back