cpanel

How to Change PHP Version on cPanel

Easily change your PHP version in cPanel by accessing the 'Select PHP Version' tool and choosing your desired version.

#cpanel#php#version-change

Struggling with server limits? Upgrade to a managed Cloud VPS.

View Options on TAJHOST →

Root Cause

Changing the PHP version on cPanel is necessary when your application requires a different version for compatibility or performance reasons. cPanel provides tools to manage PHP versions easily.

Step-by-Step Fix

  • Log in to cPanel: Access your cPanel account using your username and password.
  • Find the "Select PHP Version" Tool: Navigate to the "Software" section and click on "Select PHP Version." If unavailable, use "MultiPHP Manager."
  • Select the Desired PHP Version:
    • In "Select PHP Version," choose your preferred PHP version from the dropdown menu.
  • Set as Current: Click "Set as current" to apply the new PHP version.
  • Adjust PHP Extensions (Optional): Enable or disable specific PHP extensions by checking or unchecking the boxes next to each extension.
  • Save Changes: Click "Save" or "Apply" to confirm the changes.
  • Verify the Change: Create a phpinfo.php file in your web directory with the following content to verify the PHP version:
    <?php
    phpinfo();
    ?>
    
    Access this file via your web browser to see the current PHP configuration.

Prevention

Regularly check for updates and compatibility requirements of your applications to ensure you are using the optimal PHP version. Stay informed about the latest PHP releases and end-of-life announcements to avoid running unsupported versions.

Struggling with server limits? Upgrade to a managed Cloud VPS.

Get enterprise-grade hosting with full support from TAJHOST — the hosting provider that powers HostAssistant.

View Options on TAJHOST →