什么是ioncube:
ionCube was founded in 2002, and introducedtools to protect software written using the PHP programming language from beingviewed, changed, and run on unlicensed computers. The encoding technology grewout of earlier work on the PHP Accelerator project, and at first launchincluded an online encoding service where PHP scripts can be uploaded and anencoded version downloaded in return, and a command line tool for Linux soonafter. The tools use the technique of compiling to bytecode prior to encodingso that source code is eliminated, and runtime overheads are reduced. A PHPextension called the ionCube Loader handles the reading and execution ofencoded files at run time. —— [ 维基百科 ]
翻译过来就是说,ioncube是一个保护使用PHP编程语言编写的软件不被查看的工具。这些工具使用在编码之前编译为字节码的技术,从而消除了源代码,减少了运行时开销(加密)。还有一个名为ionCube Loader 的PHP 扩展在运行时处理编码文件的读取和执行(解密)。
安装步骤:
检测php版本
ioncube不支持测试版本的php,所以在使用之前,可以先查看phpinfo,来确定自己的php版本。确保phpinfo界面的 Debug Build 为 no ,如下图所示:
下载loader-wizard.php:
ioncube提供了一个安装的向导程序,可以非常方便的帮助检测php的运行环境,自动给出提示。
通过下面的地址下载loader-wizard:
http://www.ioncube.com/loader-wizard/loader-wizard.zip
注意:支持php5.3、php5.4、php5.5、php5.6、php7.0版本
下载之后,将其解压,然后整个目录放到web根目录
运行loader-wizard.php程序:
打开浏览器,输入地址:
http://localhost/ioncube/loader-wizard.php
如果设置了虚拟主机,请输入对应的地址 + /ioncube/loader-wizard.php
这个loader程序经过计算之后,会自动给出提示:
按照程序给出的步骤开始:
程序运行后,会给步骤提示,然后按照他这个提示,一步步的来就可以了。
根据这个向导程序的提示,下载相应的解密软件
将下载下来的解密软件放在它指定的目录中
下载向导程序计算出来新的php.ini文件,替换系统原来的php.ini文件
重新启动apache
验证是否成功
重启后,点击页面第五步给出的那个链接,就会看到是否成功啦,成功如下图所示
不成功的话会有新的提示,照着一步步来就可以搞定啦
博客原文:
领取专属 10元无门槛券
私享最新 技术干货