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.
- Create a simple web document (page) in a text editor with the following code:
<?php phpinfo(); ?>
- Save your web document and call it "phpinfo.php".
- 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.
- 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:
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.