VPS侦探论坛

 找回密码
 注册
查看: 3844|回复: 1

./addons.sh install ionCube

[复制链接]
发表于 2017-2-12 17:54:45 | 显示全部楼层 |阅读模式

./addons.sh install ionCube
Writing ionCube Loader to configure files...
Restarting php-fpm......
Gracefully shutting down php-fpm . done
Starting php-fpm Failed loading /usr/local/ioncube/ioncube_loader_lin_7.0.so:  /usr/local/ioncube/ioncube_loader_lin_7.0.so: undefined symbol: executor_globals
done





目前没有判断是否为ts模式,建议增加判断
  1.     Get_PHP_Ext_Dir
  2.     if echo "${zend_ext_dir}" | grep -Eqi 'no-debug-zts'; then
  3.         if echo "${Cur_PHP_Version}" | grep -Eqi '^5.2.'; then
  4.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.2_ts.so"
  5.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.3.'; then
  6.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.3_ts.so"
  7.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.4.'; then
  8.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.4_ts.so"
  9.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.5.'; then
  10.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.5_ts.so"
  11.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.6.'; then
  12.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.6_ts.so"
  13.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.0.'; then
  14.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.0_ts.so"
  15.         else
  16.             Echo_Red "Do not support current PHP version or PHP error!"
  17.             exit 1
  18.         fi
  19.     else
  20.         if echo "${Cur_PHP_Version}" | grep -Eqi '^5.2.'; then
  21.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.2.so"
  22.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.3.'; then
  23.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.3.so"
  24.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.4.'; then
  25.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.4.so"
  26.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.5.'; then
  27.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.5.so"
  28.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^5.6.'; then
  29.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_5.6.so"
  30.         elif echo "${Cur_PHP_Version}" | grep -Eqi '^7.0.'; then
  31.            zend_ext="/usr/local/ioncube/ioncube_loader_lin_7.0.so"
  32.         else
  33.             Echo_Red "Do not support current PHP version or PHP error!"
  34.             exit 1
  35.         fi
  36.     fi
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-2-12 19:11:56 | 显示全部楼层


Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-11-17 03:49 , Processed in 0.025551 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表