Upgrade from 13 to 14 went wrong

I got numerous errors when upgrading from 13 to 14…Now I get this when I log into the server…can anyone help?

Someone or something has installed the ioncube loader on your machine. As that’s out of our control, we can’t upgrade it. You’ll have to figure out what did that, and upgrade/remove it yourself, then run the recovery script, which should fix it up.

Zend and IonCube can happily co-exist on FreePBX 13. Asternic StatsPro installs IonCube, which will break 13>14 upgrade. Unfortunately, following Asternic’s uninstall procedure did NOT remove IonCube.

Does anyone know how to uninstall IonCube? My good friend Google has not been able to tell me.

I believe the latest upgrade rpm has been modified to deal with ioncube, tho I’m not sure how it deals with it, @xrobau?

The one I install this morning, distro-upgrade-1802-1.sng7.noarch.rpm, produces:

Checking prerequsites...
        Checking FreePBX Version        [ â ] - 13.0.194.2
        Checking bitsize of machine     [ â ] - x86_64
        Checking for 32 bit packages    [ â ] - No i686 rpms found
        Checking available disk space   [ â ] - 62G Available
        Checking for IonCube Loader     [ â ]
        This machine has the IonCube Loader installed!
                This will cause the upgrade to crash! You must remove
                IonCube and any code that depends on it, as it is not
                compatible with the upgraded PHP version in 7

That is one way to deal with IonCube, I guess. :slight_smile:

2 Likes

OK, here’s how to disable ionCube so the 13>14 upgrade will work.
IonCube ini is most likely /etc/php.d/00-ioncube.ini, so move it and restart apache like so:

[[email protected] ~]# php -v
PHP 5.3.28 (cli) (built: Mar 31 2014 19:09:21)
Copyright © 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2013 Zend Technologies
with the ionCube PHP Loader v6.1.0 (), Copyright © 2002-2017, by ionCube Ltd.
with Zend Guard Loader v3.3, Copyright © 1998-2010, by Zend Technologies
[[email protected] ~]# mv /etc/php.d/00-ioncube.ini /tmp
[[email protected] ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[[email protected] ~]# php -v
PHP 5.3.28 (cli) (built: Mar 31 2014 19:09:21)
Copyright © 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright © 1998-2013 Zend Technologies
with Zend Guard Loader v3.3, Copyright © 1998-2010, by Zend Technologies
[[email protected] ~]#

2 Likes

After successful upgrade to SNG7, ionCube will not install as part of normal Asternic Stats Pro installation. However, FOP2 still works fine after upgrade. Working with Asternic and will post results when it works.

I’m not sure which IonCube loader they’re using, BUT, the latest version is built into SNG7 - you may be able to resolve it by simply running ‘yum install ioncube-loader’ after you’ve updated.

3 Likes

Here is how upgrade 13 (distro) with Asternic Stats Pro to FreePBX 14:

  1. mv /etc/php.d/00-ioncube.ini /root
  2. service httpd restart
  3. follow steps in https://wiki.freepbx.org/display/PPS/Upgrading+from+FreePBX+10.13.66+to+SNG7
  4. edit /root/00-ioncube.ini /root and change “ioncube_loader_lin_5.3.so” to “ioncube_loader_lin_5.6.so”
  5. mv /root/00-ioncube.ini /etc/php.d/
  6. service httpd restart
  7. Browse to https://my.pbx.ip/stats
  8. You may have to reactivate Asternic Stats Pro with your key as shown on this page.

Done!

You dont need to do any of that. Just remove 00-ioncube.ini then install ioncube through yum like Rob mentioned. then service httpd restart

You don’t have to re-install IonCube because all Asternic Stats and FOP2 files survive the upgrade, and ioncube_loader_lin_5.6.so is already there, so only the ini file has to be updated to new PHP version.

BTW: The upgrade script works great! You guys did an awesome job.:+1:

Sorry if I seem to be confusing the issue. Both methods work fine.

If you don’t use the SNG7 IonCube loader, the next time we have to upgrade PHP you’ll break AGAIN. If you use the built in one, it’ll automatically upgrade. But I’ll cross that bridge in a few years when we go to PHP7 (or whenever it happens!)

You’re such a kidder… :slight_smile:

FreePBX works perfectly on PHP 7.1 (and even more so recently, as we’ve had some pull requests come through to fix up some warnings). We’d love to switch to that, but there are a couple of breaking back-end technical issues that are stopping us (that I am, actually, working on behind the scenes right now).

I wouldn’t be surprised if FreePBX 16 requires PHP 7, but that’s not an official statement, that’s just a feeling. The speed improvements alone are jaw-dropping.

4 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.