Loading...

Knowledge Base

How to create a phpinfo.php file in cPanel

You can create a phpinfo.php file to view your website's current PHP version, loaded modules, and PHP configuration settings. This can help you troubleshoot website issues and verify PHP settings applied to your hosting account.

 

Create a phpinfo.php file

  1. Access your cPanel File Manager.
  2. Navigate to the public_html folder.
  3. Click ✚File.
  4. Under New File Name, enter phpinfo.php and click Create a New File.
  5. Right click on the newly created phpinfo.php file and select Edit.
  6. Enter the following code:
    <?php phpinfo(); ?>
  7. Click Save Changes, then Close.

 

Review the PHP information

  1. In a web browser, enter <yourdomain.com>/phpinfo.php.
  2. Review the PHP information displayed for your website, including:
    • PHP version
    • Active PHP extensions
    • PHP configuration values
    • Server environment information

 

 

Loading...