php ionCube 安装 :: 缺少 zend_extension CentOs
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14745394/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
ionCube installation :: missing zend_extension CentOs
提问by TED
I am in middle of ionCube installation but php configuration is missing zend_extension for ionCube but not specify what is exactly
我正在 ionCube 安装过程中,但 php 配置缺少 ionCube 的 zend_extension 但没有指定究竟是什么
I am working on CentOs
我在 CentOs 上工作
All well Thanks:)
一切顺利谢谢:)
回答by TED
There were few things I have missed
我错过了一些事情
Select the correct bit release
Match the Loader with your PHP version, e.g. for PHP 5.3, ioncube_loader_lin_5.3.so (extensions are inside the folder)
Add 'zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.3.so' to php.ini
Restart the server
回答by Terrence Brannon
There are 2 parts to the solution that worked for me:
对我有用的解决方案有两个部分:
- symlink the 00-ioncube.ini file into the
conf.ddirectory from themods-availabledirectory. Do not simply copy the file into the conf.d as the loader-wizard suggests. - Restart the fastcgi daemon off and on as well as the apache daemon
- 将 00-ioncube.ini 文件符号链接到
conf.d目录中的mods-available目录。不要像加载程序向导建议的那样简单地将文件复制到 conf.d 中。 - 重新启动 fastcgi 守护进程和 apache 守护进程
See my blog postfor more details.
有关更多详细信息,请参阅我的博客文章。
回答by Derrick McCurdy
I had the exact same problem with installing on Ubuntu. Ubuntu wants a soft link from /etc/php5/apache2/conf.d/20-ioncube.ini to /etc/php5/mods-available/20-ioncube.ini. I tried THAT after following the directions given and apache restart failed with this error: "PHP Fatal error: [ionCube Loader] The Loader must appear as the first entry in the php.ini file in Unknown on line 0" in the error log /var/log/apache2/error.log
我在 Ubuntu 上安装时遇到了完全相同的问题。Ubuntu 想要一个从 /etc/php5/apache2/conf.d/20-ioncube.ini 到 /etc/php5/mods-available/20-ioncube.ini 的软链接。我按照给定的说明进行了尝试,并且 apache 重新启动失败并出现此错误:“PHP 致命错误:[ionCube Loader] 加载程序必须作为第 0 行未知的 php.ini 文件中的第一个条目出现”在错误日志/ var/log/apache2/error.log
The solution that worked for me was to delete the soft link and to add the line from /etc/php5/mods-available/20-ioncube.ini ("zend_extension=/usr/lib/php5/20121212/ioncube_loader_lin_5.5.so") to /etc/php5/apache2/php.ini
对我有用的解决方案是删除软链接并从 /etc/php5/mods-available/20-ioncube.ini ("zend_extension=/usr/lib/php5/20121212/ioncube_loader_lin_5.5.so ") 到 /etc/php5/apache2/php.ini
Possibly of note, I removed spaces on either side of the equals sign.
可能值得注意的是,我删除了等号两边的空格。
Apache restarted successfully and clicking the test link in the loader script page resulted in a success message as did subsequent script execution in my development environment dependent upon ioncube.
Apache 成功重新启动并单击加载程序脚本页面中的测试链接会产生一条成功消息,我的开发环境中的后续脚本执行也依赖于 ioncube。
回答by rangerz
You can try to execute my install ioncube script in my gist, install_ioncube.sh
您可以尝试在我的要点install_ioncube.sh 中执行我的安装 ioncube 脚本
Or manual install follow the official wizard in other script
或者按照其他脚本中的官方向导手动安装
# run-loader-wizard.sh
curl -O https://www.ioncube.com/loader-wizard/loader-wizard.tgz
tar zxvf loader-wizard.tgz
cd ./ioncube
php -S localhost:8000
# open http://localhost:8000/loader-wizard.php
回答by Waqas Khan
Actually ioncube needs its own ini files in php.d directory. Ioncube read its own file with the name of 20-ioncube.ini file.
实际上 ioncube 需要在 php.d 目录中有自己的 ini 文件。Ioncube 读取自己的名为 20-ioncube.ini 的文件。
So to do this we need to create vi /etc/php.d/20-ioncube.ini and add text: "zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so" in it. Now reload php-fpm and browser. Ioncube will find zend framework now.
为此,我们需要创建 vi /etc/php.d/20-ioncube.ini 并在其中添加文本:“zend_extension = /usr/lib/php/modules/ioncube_loader_lin_5.3.so”。现在重新加载 php-fpm 和浏览器。Ioncube 现在会找到 zend 框架。

