Credit to cdaley: https://www.openshift.com/forums/openshift/how-to-install-ioncube-loader
- First, you have to have created a gear with the Zend cartridge. (why? because you can go to zend/configuration/etc/php.ini to add the php.ini setting)
ssh
into your gear andcd app-root/data
wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
- You will end up with a folder called 'ioncube'
- Run
echo $OPENSHIFT_DATA_DIR
and make note of the output nano $HOME/zend/configuration/etc/php.ini
Add this line to the END of the file you are editing (this one depend your php version, can be 5.3, 5.4, 5.5 or even latest version)
zend_extension=<OPENSHIFT_DATA_DIR>ioncube/ioncube_loader_lin_5.3.so
Where you replace with the path from Step 6.
- Put the
loader-wizard.php
into your$OPENSHIFT_REPO_DIR/php
directory - Exit out of your ssh connection
- Run
rhc app restart $appname
where $appname is the name of your application OR you can restart on the web console. - View the $appname-$domain.rhcloud.com/loader-wizard.php in your browser and it should say that the extension is installed correctly now.