fbpx

How to check PHP version and configuration in cPanel

How to check PHP version and configuration in cPanel

PHPinfo() function is commonly used to check the current state of PHP configuration of your cPanel hosting. It can also be used for debugging purposes.

To run the function, follow these steps:

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

2cohost-file-manager-1

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

php-info-1

3. Find the newly created file in the list and click on Code Editor: (Note: if you don’t find Code Editor, use Edit)

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, open http://yourdomain.com/phpinfo.php link in your browser, replacing yourdomain.com with your main domain name.

NOTE: For security reasons, do not forget to delete this file once you check all php related information.

About the Author

Leave a Reply