简体   繁体   English

加载 /usr/local/IonCube/ioncube_loader_lin_5.3.so 失败

[英]Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so

I just cloned a website from one server to another using cPanel import tool (probably this last part is not relevant)我刚刚使用 cPanel 导入工具将网站从一台服务器克隆到另一台服务器(可能这最后一部分不相关)

The site is a Magento CE store.该站点是 Magento CE 商店。

The new server is a shared one, and only in this new Magento website I am having a 500 error:新服务器是共享服务器,只有在这个新的 Magento 网站中,我才会遇到 500 错误:

tail /usr/local/apache/logs/error_log
Failed loading /usr/local/IonCube/ioncube_loader_lin_5.3.so:  /usr/local/IonCube/ioncube_loader_lin_5.3.so: cannot open shared object file: No such file or directory

php -i|grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

cat /usr/local/lib/php.ini|grep IonCube
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so"

php -v
PHP 5.4.25 (cli) (built: Mar  4 2014 15:41:00)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies 
with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.

So it looks to me very confusing... the 500 error is thrown because it is failing to load ioncube 5.3 even when the php.ini has the 5.4 version and the correspondent file exists, but even more confusing is that php -v shows version 4.4 ...所以它在我看来非常令人困惑……抛出 500 错误是因为即使 php.ini 具有 5.4 版本并且对应文件存在,它也无法加载 ioncube 5.3,但更令人困惑的是 php -v 显示版本4.4 ...

Any help?有什么帮助吗?

Thanks.谢谢。

With zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so" you are telling PHP to install the Linux Loader for PHP 5.4.使用 zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.4.so" 您是在告诉 PHP 为 PHP 5.4 安装 Linux Loader。 Your server is running PHP 5.4 so that matches.您的服务器正在运行 PHP 5.4,以便匹配。

The PHP output of "with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd." PHP 输出“with the ionCube PHP Loader v4.4.1, Copyright (c) 2002-2013, by ionCube Ltd.” confirms that version 4.4.1 of the ionCube Loader is installed successfully.确认 ionCube Loader 4.4.1 版本安装成功。

The error you had indicates that a php.ini file is also requesting PHP to install the Loader for PHP 5.3, and this fails because the server is not running PHP 5.3.您遇到的错误表明 php.ini 文件也请求 PHP 安装用于 PHP 5.3 的加载程序,但由于服务器未运行 PHP 5.3 而失败。

The system you migrated from uses a different version of PHP and you are using the wrong configuration file.您迁移的系统使用了不同版本的 PHP,并且您使用了错误的配置文件。

load up phpinfo and look for "Loaded Configuration File"加载 phpinfo 并查找“加载的配置文件”

update your settings to use the config file mentioned by phpinfo.更新您的设置以使用 phpinfo 提到的配置文件。

I had a related issue with cron jobs for magento which gave me the same errors.我有一个与 magento 的 cron 作业相关的问题,这给了我同样的错误。
In my case PHP 5.6 > PHP 7在我的情况下 PHP 5.6 > PHP 7

All the files were present, but what a mentioned above showed me the root of the error.所有文件都存在,但是上面提到的内容向我展示了错误的根源。

OLD COMMAND +旧命令 +

/usr/local/bin/php -c /usr/local/lib/php.ini /home/devlivingfresh/public_html/bin/magento cron:run | /usr/local/bin/php -c /usr/local/lib/php.ini /home/devlivingfresh/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/devlivingfresh/public_html/var/log/magento.cron.log grep -v "按计划运行作业" >> /home/devlivingfresh/public_html/var/log/magento.cron.log

NEW COMMAND新命令

/usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini /home/devlivingfresh/public_html/bin/magento cron:run | /usr/local/bin/php -c /opt/cpanel/ea-php70/root/etc/php.ini /home/devlivingfresh/public_html/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /home/devlivingfresh/public_html/var/log/magento.cron.log grep -v "按计划运行作业" >> /home/devlivingfresh/public_html/var/log/magento.cron.log

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

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