How to Check the PHP Version and Configuration in cPanel

February 9, 2023 / cPanel & WHM

A straightforward PHP script can be used to learn about the Configurations and versions of PHP that are installed on your computer. A PHP method called “phpinfo()” is used in the script to output details about PHP’s setup.

This guide will help you in checking the PHP version and configuration in cPanel.

To check the PHP version and configuration, follow the steps:

  1. Log in to your cPanel account.
  2. Select the “Files” option and click on the “File Manager” sub-option.
    Files Manager
  3. Find the “public_html” directory and click on the “+File” option.
  4. Enter “phpinfo.php” as a new file name and click on the “Create New File” button.
    create file
  5. You will find the new file added to the list.
  6. Select the file and click on the “Edit” button.
  7. Enter the code given below.
  8. Click on the “Save changes” button.
    save changes
  9. You will get a success message.
    success message
  10. Open the link in your browser, replacing with the name of your primary domain, to view complete information on the PHP settings of your account.
  11. For security reasons do not forget to delete the file after seeing all the information.

This way, you can check the PHP version and configuration.

Also Read: How to Install Latest PHP version using WHM

Dominos Search