How to check PHP version and configuration

Phpinfo() function is commonly used to check the current state of PHP configuration. It can also be used for debugging purposes as it contains all EGPCS (Environment, GET, POST, Cookie, Server) data.

   To run the function, follow the steps below:

1. Log into your cPanel account, go to section Files >> File Manager menu


2. Navigate to public_html directory, click on New File and create phpinfo.php file


3. Find the newly created file in the list and click on Code Editor


4. Add the lines of the code provided below to the file and click on Save Changes

                     ? php
                      phpinfo();
                         ?


5. To see the detailed information about PHP configuration of your account, just open
http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.

NOTE: do not forget to delete the file once you check all the necessary information, for security reasons.   

Need any help? Contact our Helpdesk
                     

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to use PHP Selector

In some cases correct functioning of your website depends on PHP version installed on the...

How to switch PHP version on shared servers

Our shared servers are set up to allow each customer to choose the PHP version to use for the...

SuPHP directive for php.ini on shared servers

SuPHP (Single user PHP) is a php handler, which executes PHP scripts with the permissions of...

How to switch PHP version on business servers

Our business servers are running with FSGI module and have PHP 5.2, 5.3, 5.4, 5.5 versions...

How to edit php.ini on shared servers

The php.ini file is the default configuration file for running applications that require PHP. It...

Powered by WHMCompleteSolution