Real people, 24/7(800) 395-7779

How to Change Your PHP Version in WHM (Linux VPS) Print

  • whm, php, php version, multiphp manager
  • 6

On a Linux VPS with WHM, you control which PHP versions are installed and which version each website uses. Running a currently supported PHP version (8.2 or newer) keeps your sites faster and more secure; older versions no longer receive security fixes.

On shared hosting? You do not have WHM. Change your PHP version in cPanel instead: see How to Change the PHP Version of Your Website in cPanel.

Change the PHP Version for One or More Sites:

  1. Log in to WHM:

  2. Open MultiPHP Manager:

    • Go to Software > MultiPHP Manager (or type it in the search box).
  3. Select the domains:

    • In the domain list at the bottom, check the domains you want to change.
  4. Choose and apply:

    • Choose a version from the PHP Version menu above the list and click Apply.
  5. Test the sites:

    • Check each site's front end and admin area. If something breaks, switch back the same way.

Change the Server Default:

  • At the top of MultiPHP Manager, click Edit next to System PHP Version, choose a version, and click Apply. Domains set to "inherit" follow this default, so test them afterwards.

Need a Version That Is Not in the List?

  • PHP versions are installed with Software > EasyApache 4. Because this changes server software, we recommend opening a ticket and letting our team install it for you.
  • PHP settings such as memory_limit and upload_max_filesize are changed in Software > MultiPHP INI Editor, per PHP version.

Troubleshooting:

  • Site shows errors after switching: The application is not compatible with that version. Switch back and update the application, theme, and plugins first.
  • Version does not seem to change: Check the site's .htaccess for an old AddHandler/SetHandler PHP line and remove it.

Need help? Open a ticket at https://my.peopleshost.com/submitticket.php and our support team will be glad to assist.


Was this answer helpful?

« Back