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.

Install MariaDB on CentOS 7 with these Simple Steps

An open-source database management system, MariaDB commonly installed as part of the popular LEMP (Linux,…

How to Stop and Disable Firewalld on Linux

How to Stop and Disable Firewalld on Linux

Firewalld is a lightweight, command-line firewall tool normally used on Linux systems. While it is…

API to restore multiple backups

How can you use the API to restore multiple backups?

In this post, we’ll go over what API is and how to use it to…