You can check your PHP versions in a few ways, here, we will show you how you can check your PHP version and configurations with PHP configuration files. Where’s how to do that:

  • Log in to your cPanel account, then go to File Manager.
  • Open public_html folder and click on +File button at the top. Create the new file with filename phpinfo.php and click on “Create New File”
  • Right-click on the newly created file and click on Edit button.
  • If you are shown Encoding Check, then click on the “Edit” button. You can also click on “Disable Encoding Check” to disable this message in future edits.
  • Paste the following code in the file:

<?php

phpinfo(); 

?>

  • Click on save changes to save the file changes on the server.
  • Now you can visit your website url/phpinfo.php and you will see the PHP configuration

On this page, you will find detailed information about PHP on your site. You can check which PHP version you are using and what extensions are enabled for your website. Once you are done with checking the configuration, remove the config file so that no one else can know your server status.

That’s it!

Hjälpte svaret dig? 0 användare blev hjälpta av detta svar (0 Antal röster)