Set PHP Version Per Domain VPS Server

The following tutorial Set PHP Version Per Domain VPS Server, shows you how to set up the php version to each domain added in your vps server.

Last Updated: August 10, 2019

Latest News: I updated the tutorial. 

The following instructions shows you how simple it is to assign a php version to each domain added to your vps server. This is much easier now in EasyApache 4. You don’t have to restart the server or use command line in the backend anymore to change the php version.

VPS Server PHP Tutorials

  1. Update PHP Version
  2. Set PHP Version
  3. MultiPHP Ini Editor

Note: Make sure you notify your clients just in case there is any downtime. That is, if you are hosting other accounts in your VPS or Dedicated server.

Set PHP Version Per Domain VPS Server

Step 1 ) Log into WHM (Web Host Manager) as illustrated in the image below. Make sure you log in using https. This is a more secure way of logging in.

update-php-version-vpn-server-log-into-whm

Step 2 ) Click on MultiPHP Manager as illustrated in the image below.

1-multiphp-manager-vpn-server-whm-software

Step 3 ) Click on PHP Versions tab as illustrated in the image below.

2-php-version-multiphp-manager-whm-software

Step 4 ) The following image System PHP Version allows you to edit the default PHP version you want to assign by default when adding a new domain. In this example ea-php56 is set as default.

3-system-php-version-multiphp-manager-whm-software

Step 5 ) The following image Set PHP Version per Domain, allows you to select one ore more domains from the list and set the php version. This is a great opportunity to carry out some test. It is always a good idea to have a site for testing a new php version.

Set PHP Version per Domain

  • Select one ore more domains from your list.
  • Select PHP Version from the list “If you have more than one version added”. Once you are ready, click on Apply button.
  • Search for a domain name when you have many domains added to your server.

4-set-php-version-per-domain-multiphp-manager

That is all it takes to set up a php version per domain in your server.

If you have any questions please let me know. I will be updating this tutorial from time to time. Come back to read the latest updates.

Enjoy.

Author: Manuel Ballesta Ruiz

I have been working in IT since 1999 and am enjoying the challenges it brings me. I love WordPress and love developing websites. I have being writing tutorials since 2011. I now started working on VPS servers.

Leave a Reply

Your email address will not be published. Required fields are marked *