The below defined steps can briefly explained how you can find the PHP version of your server, creating a phpinfo () page under public_html () directory to execute 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,
- Log into your cPanel account using your admin username and password.
2. Search for Files section and click on File manager.
3. Select home directory and click on Go it will redirect you to the root folder of your server.
4. Select Public_html() folder from the folder hierarchy to create a file.
5. After this click on the new file to add a new file to the public_html to know PHP version and other extensions.
6. Enter phpinfo.php in New File Name textbox and click on Create New file.
7. The new file has been created and you can check it under public_html().
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.
9. Add this code to the file and click on save.
<?php phpinfo(); ?>
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.