Koozali.org: home of the SME Server

ionCube PHP Loader

Offline Bud

  • *
  • 487
  • +0/-0
ionCube PHP Loader
« on: June 26, 2019, 01:39:46 AM »
guys i need to install the ionCube PHP Loader on SME 9.2

i have read this article - http://howden.net.au/thowden/tag/sme-server-ion-cube-loader-php-yum-centos/

any ideas if this will work?  :P

Offline kruhm

  • *
  • 680
  • +0/-0
Re: ionCube PHP Loader
« Reply #1 on: July 21, 2019, 05:47:08 AM »
Did you ever get this working?

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: ionCube PHP Loader
« Reply #2 on: July 21, 2019, 02:44:58 PM »
I had some old notes on ioncube from 2015.  I've updated them to work w/ SME 9.2 and posted them on github -
https://github.com/mmccarn/smeserver/blob/master/Install%20IonCube.php%20on%20SME%209.2.md

This command block successfully loads or updates ioncube on a virgin up-to-date SME 9.2 system for the default PHP (v5.3.3):
Code: [Select]
mkdir -p ~/addons/ioncube
cd ~/addons/ioncube
'rm' -rf ioncube
'rm' *.zip
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
unzip ioncube_loaders_lin_x86-64.zip
'cp' -f ioncube/*5.3* /usr/lib64/php/modules
chmod a+x /usr/lib/php/modules/ion*5.5*
#
# create  /etc/e-smith/templates-custom/etc/php.ini/15ioncube
mkdir -p /etc/e-smith/templates-custom/etc/php.ini/
echo 'zend_extension                         = /usr/lib64/php/modules/ioncube_loader_lin_5.3.so' \
> /etc/e-smith/templates-custom/etc/php.ini/15ioncube
expand-template /etc/php.ini
sv t httpd-e-smith

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: ionCube PHP Loader
« Reply #3 on: July 21, 2019, 05:59:07 PM »
I've added instruction on the github page for making ioncube work with other versions of php installed using software collections:
https://github.com/mmccarn/smeserver/blob/master/Install%20IonCube.php%20on%20SME%209.2.md/#ioncube-loader-with-php-scl-on-sme-server-92


Offline kruhm

  • *
  • 680
  • +0/-0
Re: ionCube PHP Loader
« Reply #4 on: July 23, 2019, 04:41:30 AM »
Nice!

Moving away from the wiki?

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: ionCube PHP Loader
« Reply #5 on: July 23, 2019, 05:44:04 AM »
Ioncube is available on remi repo

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: ionCube PHP Loader
« Reply #6 on: July 23, 2019, 12:09:21 PM »
Moving away from the wiki?
I like to keep notes as I do things, which is easier outside the wiki.  I've been using etherpad-lite for this for years - but I don't like publishing links to my home-hosted etherpad-lite so I've started putting the notes into markdown files on github - that's all.

I consider it a tool for organizing my thoughts, not a replacement for the wiki.

Ioncube is available on remi repo

Code: [Select]
# yum --enablerepo=remi-safe list available "*ioncube*"
Loaded plugins: fastestmirror, post-transaction-actions, smeserver
Loading mirror speeds from cached hostfile
 * base: mirror.cogentco.com
 * smeaddons: mirror.canada.pialasse.com
 * smeextras: mirror.canada.pialasse.com
 * smeos: mirror.canada.pialasse.com
 * smeupdates: mirror.canada.pialasse.com
 * updates: mirror.cogentco.com
remi-safe                                                                                                       | 3.0 kB     00:00     
Available Packages
php54-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe
php55-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe
php56-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe
php70-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe
php71-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe
php72-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe
php73-php-ioncube-loader.x86_64                                       10.3.7-1.el6.remi                                       remi-safe

Admins should be able to install it for any selected version of php (php73 in this example) using:
Code: [Select]
yum --enablerepo=remi-safe install php73-php-ioncube-loader
signal-event php-update

That's easier than a running a pile of scripts *or* creating a template fragment for the default php53. Thanks!