How to check the PHP version and configuration for your website?

'phpinfo.php' is the file which is used for checking the PHP version and configuration on cPanel server. You can create the phpinfo.php file using below steps under cPanel -

1. Login to cPanel.
2. Follow File Manager >> public_html.
3. Click on option 'File' ( + sing on top left corner of the page).
4. Enter the file name as phpinfo.php >> Create New File.
5. Now right click on the file phpinfo.php >> Code Edit.
6. Enter the below code in file -
<?php
phpinfo();
?>
7. Click on Save Changes option (top right corner of the page).
Once done then open the web-browser and enter "http://domain_name/phpinfo.php". This will display the PHP configuration of your website.

(Make sure to replace domain_name with name name of your website)

Note -
When you will done with verification then remove or rename the 'phpinfo' file from cPanel.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to limit email recipients on exim to 10 email addresses?

You might come under a situation where your client expects you to secure their mail server and...

An --**warning**-- occurred while installing profile “--**warning**--: failed to create directory /home/cPanel_username/.cagefs”.

While updating Easy Apache 3 to Easy Apache 4 on CloudLinux server using below command - cd...

Server connection timed out - Unable to access website and cPanel

I tried accessing the website and cPanel from my system (local network) but I was getting error...

Install PHP-SSH2 extension in cPanel

PHP SSH2 extension to be loaded into the cPanel server as this module is not available inside...

Failed to send your message. Please try later or contact the administrator by another method - WordPress Contact Form is not working

While sending email from WordPress's contact form, I was getting below error -Failed to send your...

Powered by WHMCompleteSolution