FreePBX | Register | Issues | Wiki | Portal | Support

Upgrade from 13 to 14 went wrong

(Justin Gilbert) #1

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

(Rob Thomas) #2

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.

(Jerry Riggin) #3

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.

(Lorne Gaetz) #4

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

(Jerry Riggin) #5

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

Checking prerequsites...
        Checking FreePBX Version        [ â ] -
        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

(Dave Burgess) #6

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

(Jerry Riggin) #7

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:

[root@freepbx ~]# 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
[root@freepbx ~]# mv /etc/php.d/00-ioncube.ini /tmp
[root@freepbx ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@freepbx ~]# 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
[root@freepbx ~]#

(Jerry Riggin) #8

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.

(Rob Thomas) #9

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.

(Jerry Riggin) #10

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
  4. edit /root/00-ioncube.ini /root and change “” to “”
  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.


(Andrew Nagy) #11

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

(Jerry Riggin) #12

You don’t have to re-install IonCube because all Asternic Stats and FOP2 files survive the upgrade, and 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:

(Jerry Riggin) #13

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

(Rob Thomas) #14

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!)

(Dave Burgess) #15

You’re such a kidder… :slight_smile:

(Rob Thomas) #16

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.

High CPU Usage for an idle box
(system) #17

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