I'm using phpbrew for switching between different versions of php. And now I can't install ioncube as php extension. What I have already done:
/home/kpot/.phpbrew/php/php-5.6.24-last/lib/php/extensions/debug-zts-20131226
extension=/home/kpot/.phpbrew/php/php-5.6.24-last/lib/php/extensions/debug-zts-20131226/ioncube_loader_lin_5.6.so
in php.inisudo service apache2 restart
PHP Warning: PHP Startup: Unable to load dynamic library '/home/kpot/.phpbrew/php/php-5.6.24-last/lib/php/extensions/debug-zts-20131226/ioncube_loader_lin_5.6.so' - /home/kpot/.phpbrew/php/php-5.6.24-last/lib/php/extensions/debug-zts-20131226/ioncube_loader_lin_5.6.so: undefined symbol: executor_globals in Unknown on line 0
after phpinfo() can't find anything associated with ioncube Additional information:
Linux KpoT 4.4.0-75-generic #96~14.04.1-Ubuntu SMP Thu Apr 20 11:06:30 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
extension_dir => /home/kpot/.phpbrew/php/php-5.6.24-last/lib/php/extensions/debug-zts-20131226 => /home/kpot/.phpbrew/php/php-5.6.24-last/lib/php/extensions/debug-zts-20131226
First of all. When you unpack your archive with ioncube, pay attension to files with _ts at the end. In my case I have php with thread safe enabled(phpinfo()), so you must choose exactly that files. Second problem occurs when php was compiled with debug. You must recompile your php without it.