Ioncube gebruiken op de shellserver @ byte voor cronjobs op php5.6 terwijl de site op php7 draait
Je kan in je environment op de shellserver zien welke php ini gebruikt wordt:
$ env | grep PHP
PHP56RC=/etc/php-klant-configs/php56/devguppie.com/
PHP70RC=/etc/php-klant-configs/php70/devguppie.com/
PHP55RC=/etc/php-klant-configs/php55/devguppie.com/
PHP54RC=/etc/php-klant-configs/php54/devguppie.com/
Vervolgens kan je de ini file localiseren:
$ find /etc/php-klant-configs/php56/devguppie.com/
/etc/php-klant-configs/php56/devguppie.com/
/etc/php-klant-configs/php56/devguppie.com/php.ini
Als je deze config file even handmatig in je homedir zet:
$ cp /etc/php-klant-configs/php56/devguppie.com/php.ini ~ /ioncube.ini
Vervolgens zelf handmatig onderin de file de extensie laden:
echo ' zend_extension=/etc/php56/ioncube/ioncube_loader_lin.so' >> ~ /ioncube.ini
Dan kan je in deze ini zelf handmatig de ioncube extensie loaden en aan de juiste php binary als config meegeven:
$ php56 -c ~ /ioncube.ini -r " phpinfo();" | grep -i ioncube
Loaded Configuration File => /home/users/devguftp/ioncube.ini
with the ionCube PHP Loader + Intrusion Protection from ioncube24.com (disabled) v5.0.7, Copyright (c) 2002-2015, by ionCube Ltd.
ionCube Loader