[英]PHP fatal error after version upgrade
I upgraded PHP version from 5.6.8 to 5.6.9 by Custombuild of Directadmin. 我通过Customadmin的Custombuild将PHP版本从5.6.8升级到5.6.9。 The problem is after that I got fatal error on php:
问题是之后,我在php上出现致命错误:
PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0
I found there is a file /usr/local/lib/php.conf.d/10-directadmin.ini that has this line: 我发现有一个文件/usr/local/lib/php.conf.d/10-directadmin.ini包含以下内容:
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.6.so
After I remove this line, there is no error but the Ioncube is not working. 删除此行后,没有错误,但Ioncube无法正常工作。
What can be the problem? 可能是什么问题? Thank you.
谢谢。
Edit: For completeness, there was indeed an issue between XCache and the ionCube Loader. 编辑:为了完整起见,XCache和ionCube Loader之间确实存在问题。 ionCube has since released a new Loader version with a workaround to this issue (v 5.0.7).
此后,ionCube发布了新的Loader版本,其中包含针对此问题的解决方法(v 5.0.7)。
As the first errors indicates, the ionCube Loader has to be the first zend_extension
loaded by PHP. 如第一个错误所示,ionCube Loader 必须是PHP加载的第一个
zend_extension
。 Removing the line 拆除线
zend_extension=/usr/local/lib/ioncube/ioncube_loader_lin_5.6.so
disables the ionCube Loader, so you won't have access to its features (such as running ionCube encoded files). 禁用ionCube Loader,因此您将无法使用其功能(例如,运行ionCube编码文件)。
To fix the error, copy this deleted line to the top of your main php.ini
file; 要解决该错误,请将已删除的行复制到主
php.ini
文件的顶部; if you don't have any zend_extension
entries in your php.ini
file, you can also try to load your config file /usr/local/lib/php.conf.d/10-directadmin.ini first, eg by renaming the file to 00-directadmin.ini
. 如果您的
php.ini
文件中没有任何zend_extension
条目,也可以尝试首先加载配置文件/usr/local/lib/php.conf.d/10-directadmin.ini ,例如,通过重命名该文件到00-directadmin.ini
。 Just make sure that the zend_extension
line for the ionCube Loader comes before any other zend_extension
entry. 只要确保ionCube Loader的
zend_extension
行位于任何其他zend_extension
条目之前即可 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.