Jun 192018
 

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.

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.

Update PHP Version VPS Server Tutorials

  1. How To Update PHP Version in a VPS Server
  2. Set PHP Version Per Domain VPS Server

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 your login has https in the URL address. The following URL is an example of a secured login.

Note: In your server the login URL address might be different.

https://yoursite.com:2087/

If you see the “Feature Showcase” scroll to the bottom and click the Exit to WHM button.

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.

Jun 192017
 

The following tutorial How To Update PHP Version in a VPS Server, shows you how to update the PHP Version in EasyApache 4 and more.

Last Updated: June 19, 2018

Latest News: I have updated the tutorial. 

The following instructions refer to Justhost VPS or Dedicated servers. Changing the PHP versions, loading custom Apache mods, and other Apache/PHP customization are all performed in the Web Host Manager (WHM). Nowadays updating the PHP version in EasyApache 4 has become very easy. During the process your server might be down for a period of time.

Update PHP Version VPS Server Tutorials

  1. How To Update PHP Version in a VPS Server
  2. Set PHP Version Per Domain VPS Server

Note: You should make sure you have a backup just in case something goes wrong. Make sure you notify your clients of the downtime if you are hosing other accounts in your VPS or Dedicated server.

How To Update PHP Version in a VPN Server

Step 1 ) Log into WHM (Web Host Manager) as illustrated in the image below. Make sure your login has https in the URL address. The following URL is an example of a secured login.

Note: In your server the login URL address might be different.

https://yoursite.com:2087/

If you see the “Feature Showcase” scroll to the bottom and click the Exit to WHM button.

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

Step 2 ) Go to the search field, in the upper left hand corner, search for EasyApache. Or you can scroll down until you see Software. Select EasyApache 4 as illustrated in the following image.

update-php-version-vpn-server-select-whm-software-new

Step 3 ) Click on Customize button as illustrated in the following image. This allows you to begin customizing EasyApache 4 in your server.

update-php-version-vpn-server-customize-profile-new

Step 4 ) The following image shows you a list of the steps needed to build the profile. Click on PHP Versions as illustrated in the image below. This allows you to select all the different PHP versions you might decide to include in the profile.

Profile Build Steps

  • Apache MPM
  • Apache Modules
  • PHP Versions
  • PHP Extensions
  • Ruby Via Passenger
  • Review

update-php-version-vpn-server-profile-start-menu-new

Step 4-a ) The following image shows you the PHP versions selected to be added to the profile.

PHP Versions Selected

  • php56 = Currently the php version is updated to version 5.6.36
  • php71 = Currently the php version is updated to version 7.1.18
  • php72 = Currently the php version is updated to version 7.2.6
  • Click on Next button to continue with the profile update.

select-php-versions-vpn-server

Step 4-b ) Once you have completed selecting the different PHP versions to the profile, click on PHP Extensions as illustrated in the following image. Start to add the extensions you want per PHP version selected previously.

Note: If you are running WordPress as it is in this case, make sure you select the minimum required extensions to run WordPress for all PHP versions. Or else you will run into all sorts of issues. Another option is to install the same extensions you have running in the current PHP version installed.

select-php-extensions-in-vpn-server

Step 4-c ) The following image Review, shows you the server preparing to review the selected packages.

start-reviewing-php-version-packages-vpn-server

Step 5 ) The following image shows you the review process completed. If everything goes well you will not have to carry out any more actions. As you can see below, there is nothing to do for this profile build.

PHP Packages Reviewed

  • Please review the following list of packages you are about to install by provisioning this profile. There are no packages to be installed.
  • Please review the following list of packages you are about to upgrade by provisioning this profile. There are no packages to be upgraded.
  • Please review the following list of packages you are about to uninstall by provisioning this profile. There are no packages to be uninstalled.

review-php-versions-vpn-server

Step 5-a ) Once you are happy with your selection, click on Provision button as illustrated in the image below. You can also click on Save as profile button, if you wish to save the profile for future usage. Alternative you can also click on Cancel button to cancel the profile build. If you update or add new extensions, you will the option to download a log file to your computer.

save-php-versions-packages-vpn-server

That is all it takes to build or rebuild an Apache profile through WHM. The next step is to associate the profile built to the sites running in your server. This will be included in another tutorial.

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.