How to Check the PHP Configuration and PHP extension in cPanel

December 8, 2023 / cPanel & WHM

In this article, we will explain how to check the PHP version and configuration in cPanel.

The Phpinfo() function is used to inspect the present PHP configuration. Additionally, it serves as a debugging tool as it encompasses all EGPCS (Environment, GET, POST, Cookie, Server) data.

To execute the function, Follow the steps outlined below-

  1. Log into your “cPanel Account.”
    cPanel Account
  2. Click on the “File Manager.”
    File Manager
  3. Select “public_html” file.
    public_html
  4. Create ‘phpinfo.php’ file.
    phpinfo.php
  5. Click on “Edit.”
    Edit
  6. Insert the following code lines into the file and then click on “Save” changes.
    <?php
    phpinfo();
    ?>
    
  7. To access detailed information about your account’s PHP configuration, simply open the following link in your browser:
    http://yourdomain(dot)com/phpinfo(dot)php
    Now, Replace yourdomain.com with your domain name.

    Note: Ensure to delete the file once you’ve finished checking all necessary information for security reasons.

In this way, you can check the PHP configuration and PHP extension in cPanel. For more information on cPanel, visit our knowledge base section.

 

Dominos Search