rfe: include ioncube loaders
Maybe add a --with-ioncube
or just make the default config include ioncube loaders.
This worked on a debian 9 system with php5.6 - 7.3, I haven't tested debian 10 nor 7.4, but I suspect it will still work:
cd /root
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar xzvf ioncube_loaders_lin_x86-64.tar.gz
cd ioncube/
for ver in `cd /etc/php; ls -1d ?.?`
do
if [ -f ioncube_loader_lin_${ver}.so ]
then
lib=`php${ver} -i | grep ^extension_dir | sed 's/^.*=> *//g'`
if [ -d ${lib} ]
then
cp ioncube_loader_lin_${ver}.so ${lib}
for f in /etc/php/${ver}/*/php.ini
do
sed -i '/^zend_extension/d' ${f}
sed -i "1i zend_extension=${lib}/ioncube_loader_lin_${ver}.so" ${f}
done
fi
service php${ver}-fpm restart
fi
done