Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'EasyApache' started by Ajdin, Oct 26, 2016.

Tags:
  1. Ajdin

    Ajdin Member

    Joined:
    Sep 17, 2015
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Novi Travnik
    cPanel Access Level:
    Root Administrator
    Hi,

    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.
     
  2. linux4me2

    linux4me2 Well-Known Member

    Joined:
    Aug 21, 2015
    Messages:
    168
    Likes Received:
    36
    Trophy Points:
    28
    Location:
    USA
    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.
     
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page