Managing the PHP version of your website is crucial for compatibility and security. With cPanel’s MultiPHP Manager, you can assign different PHP versions to individual domains, ensuring smooth performance as PHP updates are released.

Watch this tutorial to learn how to manage PHP versions in cPanel:

Why Should You Manage PHP Versions?

  • Compatibility: Older applications may not support newer PHP versions.
  • Security: Newer PHP versions include security patches to protect your website.
  • Performance: Updating to the latest PHP version can improve speed and efficiency.

How to Change PHP Versions Using MultiPHP Manager

1. Access MultiPHP Manager

  • Log into cPanel.
  • Navigate to Software > MultiPHP Manager.

2. Select the Domain

  • Find the domain you want to modify.
  • Check the box next to the domain name.

3. Choose a PHP Version

  • Use the dropdown menu to select a PHP version.
  • Click Apply to save changes.

4. Verify the PHP Version

To confirm your PHP version:

  • Create a new file in your website’s root directory named phpinfo.php.
  • Add the following code:
  • <?php phpinfo(); ?>
  • Visit yourdomain.com/phpinfo.php in your browser.
  • Check the displayed PHP version.

Best Practices for PHP Version Management

  • Update Regularly: Always use the latest stable PHP version for security and performance.
  • Test Before Upgrading: Ensure your website and plugins are compatible with the new PHP version.
  • Enable Error Reporting: Check for errors after switching versions to troubleshoot issues.

Related Documentation

MultiPHP Manager for cPanel

Need Help?

If you encounter issues switching PHP versions, UnderHost’s expert support team is available 24/7. Contact us via @CustomerPanel for assistance.