26 Apr

How to Check PHP Version and Settings on a cPanel Server

Want to know which PHP version your site is using or check settings like memory limit, upload size, etc.? Here’s a quick way to do it using a phpinfo() file.

Step 1: Create a phpinfo.php File

  • Log in to cPanel and go to File Manager.
  • Inside public_html or go to the desired folder, create a new file named phpinfo.php.
  • Edit it and add:
<?php phpinfo(); ?>

Step 2: View It in Your Browser

Visit https://yourdomain.com/phpinfo.php — this shows:

  • PHP version
  • Active php.ini settings
  • Installed PHP extensions

Step 3: Delete the File

For security, delete phpinfo.php after you’re done.

Leave a Reply

Your email address will not be published. Required fields are marked *