800-how-to-create-phpinfo-file

The below-defined steps can briefly explain how you can find the PHP version of your server, creating a Phpinfo () page under public_html () directory to execute the different task. The PHP version matters a lot if you’re trying to run PHP software on your website, it will require a minimal or specific PHP version, and it can also be used for debugging purposes as it contains all EGPCS (Environment, GET, POST, Cookie, Server) extensions entered in for the various setting options.

Follow the Steps to check PHP version and configuration,

  1. Log into your cPanel account using your admin username and password.

image 1

2. Search for Files section and click on the File manager.

image 1

3. Select Home Directory and click on Go it will redirect you to the root folder of your server.

image 2

4. Select Public_html() folder from the folder hierarchy to create a file.

image 3

5. After this click on the new file to add a new file to the public_html to know PHP version and other extensions.

image 4

6. Enter phpinfo.php in New File Name textbox and click on Create New file.

image 5

7. The new file has been created and you can check it under public_html().

image 6

8. Select phpinfo.php file and right click on file to select Code edit to add a small line of code shown in the next step.

image 7

image 8

9. Add this code to the file and click on save.

<?php
phpinfo();
?>

image 9

10. Open a new tab in your browser and type your domain name, add this /phpinfo () .php (www.yourdomainname.com/phpinfo.php) to get all the details related to PHP version and extensions.