三三世界-百宝箱

文章 分类 标签
130 9 247

公告

暂无站点公告

Linux Nginx+PHP环境下ionCube安装教程

三三 2021-11-14 1818 0条评论 环境搭建Linux使用 NginxLinuxPHP环境搭建ionCube安装教程

首页 / 正文

有一些程序是要求conCube的,如果没有安装就无法使用。会有提示类似于:

Site error: the file /home/test/xxx/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

根据上面的提示看来是因为没有安装ionCube。这个时候直接配置安装ionCube就可以解决了。

具体解决方法:

1、如果环境使用的是lnmp,那么低版本的可以直接执行./ionCube.sh 进行安装,如果最新版本的就可以直接执行./addon.sh。之后按照提示选择版本安装即可。

2、手动安装步骤:

2.1 首先,查看系统是32位还是64位,执行

uname -a

2.2 打开http://www.ioncube.com/loaders.php页面根据Linux是32位还是64位下载适当的软件包,比如我的是32位的,切换到/usr/local/目录,执行

cd /usr/local

2.3 然后下载ionCube:

wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz

2.4 再解压软件包,执行:

tar zxvf ioncube_loaders_lin_x86.tar.gz

2.5 修改/usr/local/php/etc/php.ini (注意,如果安装了多版本php,那找到对应的php.ini文件即可)
在文件尾部添加如下代码:

[ionCube Loader] zend_extension="/usr/local/ioncube/ioncube_loader_lin_5.2.so"

2.6 如果以前装有Zend Optimizer,安装ionCube会和Zend Optimizer发生冲突,再执行

/usr/local/php/php-fpm reload 

时会发生如下错误:

The Loader must appear as the first entry in the php.ini file in Unknown on line 0

须将Zend Optimizer的代码放在ionCube的后面,如lnmp中是如下代码,

[Zend Optimizer] zend_optimizer.optimization_level=1
zend_extension="/usr/local/zend/ZendOptimizer.so"

2.7 修改完成再重启php-fpm

/usr/local/php/php-fpm restart

2.8 修改完成,记得/usr/local/php/php-fpm reload 重新加载配置,查看phpinfo。

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with the ionCube PHP Loader v3.3.10, Copyright (c) 2002-2009, by ionCube Ltd.

到此安装完毕。

评论(0)

当前没有评论,还不快来留下第一个脚印吧


Copyright 2021 三三世界-百宝箱. All Rights Reserved.

最新评论

  • 三三

    @Doug Shume it's ok for me , you can post here.

  • refugiaguenther

    Saved as a favorite, I like your website!

  • josefa

    If some one wishes to be updated with hottest technologies after that he must be visit this site and be up to date daily.

  • Penzu

    Heello would you mind sharing which blog platform you're using? I'm planning to start my own blog in the near future but I'm having a tough time making a decision between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your layout seems different then moost blogs and I'm looking for something completely unique. P.S Apologies forr being off-topic butt I had to ask!

  • Yupoo Fendi

    Thanks to my father who shared with me regarding this webpage, this website is genuinely amazing.

  • Doug Shume

    Hi, I have an overflow of customers that I'd like to send to you but I want to make sure you can handle more leads, let me know if you'd like me to send you more info.

  • SuperWind

    zh.us.to 有效
    kms.03k.org 有效
    kms.chinancce.com
    kms.shuax.com 有效
    kms.dwhd.org 有效
    kms.luody.info 有效
    kms.digiboy.ir 有效
    kms.lotro.cc 有效
    www.zgbs.cc 有效
    cy2617.jios.org 有效

  • 三三

    @         权限问题,试试sudo 再加命令。

  •         

    你好提示Permission denied 怎么办啊

日历

2024年05月

   1234
567891011
12131415161718
19202122232425
262728293031 

文章目录

上一张 下一张