简体   繁体   English

php.ini 未加载 Ioncube

[英]php.ini not loading Ioncube

Out of nothing the Ioncube loader stopped working. Ioncube 加载器突然停止工作。

phpinfo() shows that there is no Ioncube loaded, and the website displays a HTML-500 error with "redirected you too many times" after turning on display_errors. phpinfo()显示没有加载Ioncube,打开display_errors后网站显示HTML-500错误“redirected you too many times”。

according to phpinfo() /etc/php5/apache2/php.ini is the apache php configuration file.根据phpinfo() /etc/php5/apache2/php.ini 是 apache php 配置文件。

The first line of /etc/php5/apache2/php.ini reads /etc/php5/apache2/php.ini 第一行读取

zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.6.so

and the file ist located in the folder as previously.并且文件像以前一样位于文件夹中。

php -v was outputing some errors and warnings and after a debug attempt, I could fix them by manipulating /etc/php5/cli/php.ini, replacing some lines referring to older versions of the Ioncube and now it outputs php -v输出了一些错误和警告,在尝试调试后,我可以通过操作 /etc/php5/cli/php.ini 来修复它们,替换一些引用旧版本 Ioncube 的行,现在它输出

PHP 5.6.20-0+deb8u1 (cli) (built: Apr 27 2016 11:26:05) PHP 5.6.20-0+deb8u1 (cli)(构建时间:2016 年 4 月 27 日 11:26:05)
Copyright (c) 1997-2016 The PHP Group版权所有 (c) 1997-2016 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) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd. with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies Zend Engine v2.6.0,版权所有 (c) 1998-2016 Zend Technologies with the ionCube PHP Loader(启用)+来自 ioncube24.com(未配置)v5.0.18 的入侵保护,版权 (c) 2002-2015,由 ionCube Ltd. 和Zend OPcache v7.0.6-dev,版权所有 (c) 1999-2016,由 Zend Technologies

Still, phpinfo() shows no Ioncube loaded and the error remains.尽管如此, phpinfo()显示没有加载 Ioncube 并且错误仍然存​​在。

There seems to be similar problem reported here, Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so but with no definitive answer.这里似乎报告了类似的问题, 加载 /usr/local/IonCube/ioncube_loader_lin_5.3.so 失败,但没有明确的答案。

I am dealing with multiple php.ini files and this may explain why the discrepancy, but I cannot find the solution.我正在处理多个 php.ini 文件,这可以解释为什么会出现差异,但我找不到解决方案。 Do you have any idea how I could debug this?你知道我如何调试这个吗?

You should make sure you load ionCube encoder before any other zend_extension in your php.ini file.您应该确保在 php.ini 文件中的任何其他 zend_extension 之前加载 ionCube 编码器。

You should also take note of error_reporting setting in your php.ini, if you have already set your php.ini file to report all errors and especially before loading the ioncube loader ie您还应该注意 php.ini 中的 error_reporting 设置,如果您已经将 php.ini 文件设置为报告所有错误,尤其是在加载 ioncube 加载器之前,即

error_reporting=~E_ALL|~E_STRICT

You might get errors, but once you observe the aforementioned and update your php.ini, go ahead and save the changes and restart your apache您可能会收到错误消息,但是一旦您观察到上述内容并更新您的 php.ini,请继续保存更改并重新启动您的 apache

sudo apachectl restart

I hope this fixes your problem.我希望这可以解决您的问题。 Cheers!!干杯!!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM