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_htmlor go to the desired folder, create a new file namedphpinfo.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.inisettings - Installed PHP extensions
Step 3: Delete the File
For security, delete phpinfo.php after you’re done.