Home/cPanel guides/PHP version

How to change the PHP version in cPanel

Newer PHP versions are faster and still get security updates. You can change the version, extensions and limits yourself in a few clicks.

2 minutesWritten for the standard cPanel theme

Change the PHP version

In cPanel:Software›Select PHP Version
  1. Open Select PHP Version

    In cPanel, find the Software section and click Select PHP Version. The page that opens is called PHP Selector.

  2. Pick a version

    On the Account Global Settings tab, choose the version from the PHP version list, for example 8.3. It applies to all your domains straight away.

  3. Check your site

    Open your website and click through a few pages. If something breaks, switch back to the previous version the same way.

Change extensions and limits

  1. Extensions

    Below the version list, tick the PHP extensions your app needs (for example intl, imagick, zip). If you see a notice about the native version, pick a numbered version first: extensions and options can’t be changed on native.

  2. Options

    In the same area, change values like memory_limit, upload_max_filesize, post_max_size and max_execution_time.

  3. One domain only?

    Use the Per Domain Settings tab to give a single domain a different PHP version.

Tips and common problems

  • Which version? Use the newest version your app supports. WordPress and its popular plugins run well on PHP 8.2 and 8.3.
  • The version doesn’t change? Check MultiPHP Manager: if a domain is set to a specific version there, set it to inherit, or ask support.
  • Uploads failing in WordPress? Raise upload_max_filesize and post_max_size together.

Questions

Will changing the PHP version break my site?

Usually not, if the version is supported by your app. Old plugins or themes can fail on newer PHP; switching back takes one click.

Can different sites use different PHP versions?

Yes. Open PHP Selector, go to the Per Domain Settings tab and choose a version for that domain.

See plans & pricing