Knowledge Base

How to Change the PHP Version in cPanel

How to Change the PHP Version in cPanel

Different websites and applications may require different versions of PHP. Older websites sometimes need an earlier PHP version, while newer versions of WordPress, themes and plugins may work best with a more recent release.

On your Cheap Host cPanel account, you can usually change the PHP version for a domain directly from cPanel.

Before Changing the PHP Version

Changing PHP can affect how your website works, so it is a good idea to make sure you have a recent backup first.

You should also check whether your website, theme, plugins or custom scripts support the PHP version you want to use.

For WordPress websites, newer PHP versions generally offer better performance and security, but an old plugin or theme may occasionally cause compatibility problems.

Change the PHP Version

  1. Log in to your Cheap Host cPanel account.

  2. Go to the Software section.

  3. Click MultiPHP Manager.

  4. Find the domain you want to change.

  5. Tick the checkbox next to the domain.

  6. Use the PHP Version drop-down menu to choose the version you want.

  7. Click Apply.

cPanel will update the PHP version for the selected domain.

The change normally takes effect very quickly.

Which PHP Version Should I Use?

In most cases, you should use a current PHP version that is supported by your website software.

If you are running WordPress, it is also important to keep WordPress itself, your theme and your plugins updated.

You should avoid using an old PHP version simply because a website has always used it. Older versions may eventually stop receiving security updates and may also prevent you from using newer website software.

However, you should not move a live website to a newer PHP version without checking compatibility first.

Test Your Website After Changing PHP

After changing the PHP version, open your website and check several pages.

You should also test important features such as:

  • Contact forms
  • Login pages
  • Shopping carts
  • Checkout pages
  • WordPress administration
  • Plugins that process payments or forms

If everything works normally, the PHP change has probably been successful.

What If the Website Stops Working?

If the website displays a blank page, a 500 error, a critical error or another unexpected message after changing PHP, the website may contain software that is not compatible with the selected PHP version.

You can normally return to MultiPHP Manager and change the domain back to the previous PHP version.

Once the website is working again, you can investigate which theme, plugin or script caused the problem.

PHP Version vs PHP Settings

Changing the PHP version is different from changing individual PHP settings.

Settings such as:

memory_limit

upload_max_filesize

post_max_size

max_execution_time

can normally be adjusted separately using MultiPHP INI Editor.

You do not usually need to change your PHP version just to increase an upload limit or PHP memory limit.

Multiple Domains on One Hosting Account

If your Cheap Host account contains more than one domain, different domains may be able to use different PHP versions.

Make sure you select the correct domain in MultiPHP Manager before applying any changes.

Need Help?

If you are unsure which PHP version your website should use, or your website stops working after changing PHP, please contact Cheap Host support and we can help check the configuration.

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

0 0