我目前在 centos 6 网络服务器上安装了 vestacp,
zend 已安装,并且我相信 ioncube 也已安装,但是 ioncube 指出它实际上并未安装。
机器:
Linux fellio.example.com 2.6.32-642.11.1.el6.x86_64 #1 SMP Fri Nov 18 19:25:05 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
这里是我的 php 信息,表明 ioncube 已加载:
php -v
PHP 5.6.29RC1 (cli) (built: Nov 24 2016 10:20:09)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v6.0.8, Copyright (c) 2002-2016, by ionCube Ltd.
with Zend Guard Loader v3.3, Copyright (c) 1998-2015, by Zend Technologies
这是我的模块:
ls /usr/lib64/php/modules/
bcmath.so dom.so gettext.so ioncube_loader_lin_5.6.so mysqli.so pdo_sqlite.so shmop.so sysvmsg.so wddx.so xsl.so
bz2.so exif.so gmp.so json.so mysqlnd.so phar.so simplexml.so sysvsem.so xmlreader.so ZendGuardLoader.so
calendar.so fileinfo.so iconv.so ldap.so mysql.so posix.so soap.so sysvshm.so xmlrpc.so zip.so
ctype.so ftp.so imap.so mbstring.so pdo_mysql.so pspell.so sockets.so tidy.so xml.so
curl.so gd.so intl.so mcrypt.so pdo.so recode.so sqlite3.so tokenizer.so xmlwriter.so
php.d 输出:
00-Ioncube.ini 20-dom.ini 20-gmp.ini 20-mcrypt.ini 20-recode.ini 20-sysvmsg.ini 20-xmlwriter.ini 30-wddx.ini
20-bcmath.ini 20-exif.ini 20-iconv.ini 20-mysqlnd.ini 20-shmop.ini 20-sysvsem.ini 20-xsl.ini 30-xmlreader.ini
20-bz2.ini 20-fileinfo.ini 20-imap.ini 20-pdo.ini 20-simplexml.ini 20-sysvshm.ini 30-mysqli.ini 30-xmlrpc.ini
20-calendar.ini 20-ftp.ini 20-intl.ini 20-phar.ini 20-soap.ini 20-tidy.ini 30-mysql.ini 40-json.ini
20-ctype.ini 20-gd.ini 20-ldap.ini 20-posix.ini 20-sockets.ini 20-tokenizer.ini 30-pdo_mysql.ini 40-zip.ini
20-curl.ini 20-gettext.ini 20-mbstring.ini 20-pspell.ini 20-sqlite3.ini 20-xml.ini 30-pdo_sqlite.ini ZendGuard.ini
00-Ioncube.ini 输出:
cat 00-Ioncube.ini
zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_5.6.so
ZendGuard.ini 输出:
cat ZendGuard.ini
; Enable Zend Guard extension
zend_extension=/usr/lib64/php/modules/ZendGuardLoader.so
zend_loader.enable=1
php.ini文件:
位于 pastebin 上,由于太大,无法在此处发布:http://pastebin.com/MWS9fQ8b
错误:
service vesta restart
Stopping vesta-nginx: [ OK ]
Stopping vesta-php: [ OK ]
Starting vesta-nginx: [ OK ]
Starting vesta-php: Failed loading /usr/lib64/php/modules/ioncube_loader_lin_5.6.so: /usr/lib64/php/modules/ioncube_loader_lin_5.6.so: undefined symbol: zend_execute_ex
[ OK ]
错误日志显示:
sh: gradm: command not found
当使用 loader-wizard 安装 ioncube 时出现以下错误:
Please note that the following problems currently exist with the ionCube Loader installation:
The following ini files could not be found by the Wizard: /etc/php.ini,/etc/php.d/20-bcmath.ini,/etc/php.d/20-bz2.ini,/etc/php.d/20-calendar.ini,/etc/php.d/20-ctype.ini,/etc/php.d/20-curl.ini,/etc/php.d/20-dom.ini,/etc/php.d/20-exif.ini,/etc/php.d/20-fileinfo.ini,/etc/php.d/20-ftp.ini,/etc/php.d/20-gd.ini,/etc/php.d/20-gettext.ini,/etc/php.d/20-gmp.ini,/etc/php.d/20-iconv.ini,/etc/php.d/20-imap.ini,/etc/php.d/20-intl.ini,/etc/php.d/20-ldap.ini,/etc/php.d/20-mbstring.ini,/etc/php.d/20-mcrypt.ini,/etc/php.d/20-mysqlnd.ini,/etc/php.d/20-pdo.ini,/etc/php.d/20-phar.ini,/etc/php.d/20-posix.ini,/etc/php.d/20-pspell.ini,/etc/php.d/20-recode.ini,/etc/php.d/20-shmop.ini,/etc/php.d/20-simplexml.ini,/etc/php.d/20-soap.ini,/etc/php.d/20-sockets.ini,/etc/php.d/20-sqlite3.ini,/etc/php.d/20-sysvmsg.ini,/etc/php.d/20-sysvsem.ini,/etc/php.d/20-sysvshm.ini,/etc/php.d/20-tidy.ini,/etc/php.d/20-tokenizer.ini,/etc/php.d/20-xml.ini,/etc/php.d/20-xmlwriter.ini,/etc/php.d/20-xsl.ini,/etc/php.d/30-mysql.ini,/etc/php.d/30-mysqli.ini,/etc/php.d/30-pdo_mysql.ini,/etc/php.d/30-pdo_sqlite.ini,/etc/php.d/30-wddx.ini,/etc/php.d/30-xmlreader.ini,/etc/php.d/30-xmlrpc.ini,/etc/php.d/40-json.ini,/etc/php.d/40-zip.ini
This may be due to server restrictions in place.
The necessary zend_extension line could not be found in the configuration.
Please also note the following:
The correct loader for your system has been found at /home/admin/web/websiteguardtest.tk/public_html/ioncube/ioncube_loader_lin_5.6.so. You may wish to copy the loader from /home/admin/web/websiteguardtest.tk/public_html/ioncube/ioncube_loader_lin_5.6.so to /usr/lib64/php/modules
。
我禁用了关联的模板文件中的 open_base 目录,因为我认为这可能是问题所在,但事实并非如此,我不确定 ioncube 和我的 vestacp 机器出了什么问题,如能得到任何帮助我将不胜感激。
答案1
您必须重新编译 ioncube 或重新正确安装它。
要了解哪里出错了或者缺少什么依赖项,只需输入
ldd /usr/lib64/php/modules/ioncube_loader_lin_5.6.so