php version for subdomain with cagefs and php selector + ioncube loader 6


Sep 17, 2015
Novi Travnik
cPanel Access Level
Root Administrator

We have problem with installation WHMCS 7 on our server. At this moment we have WHMCS 5.x but we need to move to new version.
We create subodimain dev3 and we now need php 7 for that subdomain and latest ionCube 6 to load.
Can somenone please tell me how to use php 7 and ionCube 6 for that subdomain because we need to have active WHMCS 5.x until we migrate to new version on same server.
Also we have installed php 7 with ionCube 6 alt-php70-ioncube-loader-6.0.4-1.el6.x86_64.rpm and we need to load it on directory dev3 and just for that subdomain.

Kind regards.


Well-Known Member
Aug 21, 2015
cPanel Access Level
Root Administrator
I went through the upgrade process to WHMCS 7 last week. The approach I recommend is to first upgrade to WHMCS 7 while you are running PHP 5.6. Once you have everything set up and working, including your crons, email piping, etc., then you can switch to PHP 7.

You don't mention it, but I guess you're using EA4? If so, once you're ready to switch to PHP 7, the first thing you need to do is make sure you have all the PHP extensions necessary for WHMCS 7 to run with PHP 7. Notably, iconv is required for WHMCS to run PHP 7, but not for PHP 5.6. Just double-check the system requirements for WHMCS 7 to make sure you have everything.

Once you've done that, log in to WHM and go Software -> MultiPHP Manager. Enter "dev3" in the search box to quickly find the subdomain you're working with. Check the box by the subdomain, then in the drop-down at the top-right select ea-php7 and click apply. If PHP 7 is not the system PHP version; i.e., you're still using PHP 5.6 for that, you're using a directory outside of the subdomain for your crons, and you want to use PHP 7 for crons, you'll need to copy the PHP handler section from the .htaccess file in the dev3 public_html folder to an .htaccess file in the crons folder.
  • Like
Reactions: cPanelMichael