Managing PHP Versions in cPanel

PalmHost Logo

Managing PHP Versions in cPanel

PHP is the scripting language that powers the vast majority of websites on the internet, including virtually all WordPress installations. As the web evolves, the PHP language is regularly updated to include new security patches, performance improvements, and modern coding standards. Running an outdated PHP version is not only a performance bottleneck; it is a significant security liability.

At PalmHost, we provide you with the ability to switch between multiple PHP versions directly within your cPanel dashboard. Whether you are troubleshooting a compatibility issue with a legacy plugin or optimising your web hosting environment for the latest WordPress version, knowing how to manage your PHP settings is essential.

Why PHP Version Management Matters

Software developers constantly improve PHP to make it faster and more secure. Newer versions (like 8.2 or 8.3) are significantly more efficient than older versions (like 7.4), often resulting in faster page load speeds for your visitors. However, because older themes or plugins may rely on deprecated code, upgrading your PHP version can sometimes cause your site to display a "Critical Error." By understanding how to change your PHP version, you can quickly revert to a previous state if an incompatibility arises, giving you full control over your managed hosting environment.

How to Change Your PHP Version in cPanel

Accessing the selector

Step 1: Open the MultiPHP Manager

Log in to your cPanel dashboard. Scroll down to the "Software" section and click on the MultiPHP Manager icon. This tool is designed to manage the PHP settings for your entire account or specific domains.

Selecting your domain

Step 2: Choose the Domain

You will see a list of your domains. Tick the box next to the domain name you wish to update. If you have only one website on your hosting account, you can select the top-level checkbox.

Applying the version

Step 3: Change and Apply

In the "PHP Version" dropdown menu on the right side of the screen, select the newest stable version (we recommend keeping this on the latest version available). Click the "Apply" button. The server will instantly update the PHP handler for your domain.

Troubleshooting PHP Compatibility Issues

If you update your PHP version and your website immediately throws a critical error, do not panic. This is usually caused by an outdated plugin or theme that is not yet compatible with the modern PHP syntax.

  • Check your Plugins: Navigate to your WordPress admin dashboard (if accessible). Deactivate all your plugins and then reactivate them one by one. If the site crashes after activating a specific plugin, that is the culprit.
  • Switch to a Default Theme: If your dashboard is inaccessible, use the cPanel File Manager to rename your active theme folder in wp-content/themes/. This forces WordPress to revert to a default theme (like Twenty Twenty-Four), which will almost certainly be compatible with current PHP versions.
  • Check Server Logs: If you cannot identify the error, open a support ticket via our contact us page. Our technicians can examine your error logs to identify the exact file causing the crash.

When to Seek Help

Upgrading PHP is a standard maintenance task, but if you are running complex, legacy code, the transition can be delicate. Our managed hosting clients enjoy proactive PHP version management where our engineers handle these upgrades and compatibility tests for you. If you are stuck or if you need to revert to an older version while you fix your code, please reach out. We are committed to your uptime and will help you navigate your version settings swiftly.

Please rate this article to help us improve our Knowledge Base.

0 0