Knowledge Base Hub

Browse through our helpful how-to guides to get the fastest solutions to your technical issues.

Home  >  VPS FAQ  >  How Do I Check PHP Version And Configuration?
Top Scroll

How Do I Check PHP Version And Configuration?

 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

<?php

phpinfo();

?>

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

http://yourdomain(dot)com/phpinfo(dot)php

Replace yourdomain.com with your domain name.

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

For our Knowledge Base visitors only
Get 10% OFF on Hosting
Special Offer!
30
MINS
59
SECS
Claim the discount before it’s too late. Use the coupon code:
STORYSAVER
Note: Copy the coupon code and apply it on checkout.