How to Check the PHP Version & Configuration in cPanel

March 26, 2024 / cPanel

In this guide, we will look at how to check the PHP version and settings in cPanel. PHP scripts help us see what version of PHP is on our computer and what settings it has. We use a method called “phpinfo()” to show all the details about PHP’s setup.

Let us follow the steps-

  1. Log in to cPanel.
  2. Click on the “File Manager” sub-option under the “Files” section.
  3. Locate the “public_html” directory.
  4. Click on the “+File” option from the top-left corner.
  5. Enter the new file name as “phpinfo.php” and click on the “Create New File” button.
    new file name
  6. The newly added file will be included in the list.
  7. Select the “phpinfo.php” file and click on the “Edit” button from the top of the screen.
  8. Then enter the code outlined below-
  9. Click on the “Save Changes” button.
    save changes
  10. Finally, you will get a success message.

To view comprehensive PHP settings information for your account, open the link in your browser. Remember to replace “” with your primary domain name. For security purposes, make sure to delete the file after reviewing all the information.

Was not it easy? Hope you grasped everything well. For further assistance, contact our support staff at your earliest. You can also learn about How to Make a Single PHP Version Out of DirectAdmin.

Leave a Reply

Your email address will not be published. Required fields are marked *