Knowledge Base
MilesWeb / VPS FAQ

How Do I Check PHP Version And Configuration?

Approx. read time : 2 min

The Phpinfo() function s used for checking the current PHP configuration. It can also be used for the purpose of debugging because it comprises of all EGPCS (Environment, GET, POST, Cookie, Server) data.

In order to run the function, follow the steps mentioned below:

Login to your cPanel account, go to Files > File manager menu

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

Locate the newly created file in the list and click on ‘Code Editor’

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




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


Replace with your domain name.

Related: How can I change my PHP Version in cPanel

Note : Please don’t forget to delete the file once you are done with checking all the necessary information for security reasons.

With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.