How Do I Check PHP Version And Configuration?

For checking the current PHP configuration the Phpinfo() function is used. For the purpose of dubugging this function can also be used because it comprises of all EGPCS (Environment, GET, POST, Cookie, Server) data.

Follow the steps mentioned below in order to run the function:

Login to your cPanel account then navigate to Files > File manager menu

After that go to ‘public_html’ directory, click on ‘New File’ and create ‘phpinfo.php’ file

In the list locate the newly created file and click on ‘Code Editor’

Add the lines of the code as given below to the file and click on Save changes

<?php

phpinfo();

?>

Just open the following link in your browser in order to check detailed information about PHP configuration of your account:

http://yourdomain.com/phpinfo.php

Replace yourdomain.com with your domain name.