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.
    file
  3. Locate the “public_html” directory.
    public_html
  4. Click on the “+File” option from the top-left corner.
    file
  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.
    phpinfo.php
  7. Select the “phpinfo.php” file and click on the “Edit” button from the top of the screen.
    Edit
  8. Then enter the code outlined below-
    <?php
    phpinfo();
    ?>
    code
  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 http://yourdomain.com/phpinfo.php in your browser. Remember to replace “yourdomain.com” 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.

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Remove the cPanel Cache Manager

This tutorial outlines the steps for removing the cPanel Cache Manager from your server, which…

How to change DNS setting in cPanel?

Go to cPanel >> Click on “Advanced DNS Zone Editor” Once you will click on…

How to Link MySQL Database to PHP With MySQLi and PDO

When creating dynamic webpages, connecting a PHP application to a MySQL database is a vital…