How to change your PHP version

PHP is the programming language many websites, including WordPress, run on. Older PHP versions stop receiving security fixes, and some applications need a newer one. You can change the PHP version for each domain in cPanel.

Steps

If your cPanel uses the Jupiter theme

  1. Back up your website first. See our article on downloading a backup.
  2. Log in to cPanel and open Software > MultiPHP Manager.
  3. Tick the box next to the domain you want to change.
  4. From the PHP Version menu, choose the version you want. The list shows the versions installed on your server. Recommended versions may be labeled.
  5. Click Apply.
  6. Visit your website and check that it still works.

If your cPanel uses the Meridian theme

  1. Back up your website first. See our article on downloading a backup.
  2. Log in to cPanel and click Websites in the left sidebar.
  3. In the websites table, click the domain's current PHP version. This opens the domain's Settings tab. You can also click Manage, then open Settings.
  4. In the PHP Version menu, select the version you want, or select Inherit (System default) to follow the server's default.
  5. Visit your website and check that it still works.
  6. To confirm the version later, check the PHP column in the Websites table, or the PHP Version field on the domain's Overview tab.

Before you change it

Newer PHP versions are faster and safer, but older plugins and themes may not work with them. A good approach is to update WordPress, plugins, and themes first, take a backup, and then try the newer PHP version. If something breaks, switch back and tell us what happened. We can help you decide when it is safe to move up.

Tips and troubleshooting

  • If the site shows an error after the change, set it back to the previous version and click Apply again.
  • Choose inherit to follow the server's default version.
  • Before moving to a newer version, check that your themes, plugins, and applications support it. Old plugins are the usual reason a site breaks.
  • If the version you want is not in the list, contact support. We can tell you whether it can be added.
  • Some servers show Select PHP Version instead of MultiPHP Manager. The idea is the same.
  • To change settings such as upload size or memory limit, open Software > MultiPHP INI Editor. Ask support if you are not sure which values to use.

Need help? Contact Barrett IT Support at support@barrettit.com or call 888.374.4632.

  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente ?

Articles connexes

How to set up a cron job (scheduled task)

A cron job runs a task on a schedule, for example a script that runs every night. Some...