|
本站遵守 Creative Commons License 许可 转载时务必以超链接形式标明文章原始出处和作者信息 |



| Godaddy Linux 主机安装 Ioncube |
|
|
| Written by Jaleo | ||||||||
| Saturday, 27 September 2008 | ||||||||
|
Ioncube组件是用来个程序加密的,但是并非所有的Linux共享主机都预装了这个组件,比如Godaddy的Linux共享主机上就不提供,但是我准备安装Joomla的一个组件,恰好需要Ioncube支持,怎么办?下面的方法很简单。 首先去Ioncube的官方网站 http://www.ioncube.com/loaders.php 下载组件,提供了不同平台的包,共享主机一般下载Linux (x86)就可以了。zip包里有很多文件,比如 ioncube_loader_lin_5.2.so 和 ioncube_loader_lin_5.2_ts.so,这里的5.2指得是和PHP5.2.x相匹配, 然后确定自己的共享主机使用的PHP版本号,我的网站是PHP5.2.5,因此除了上面两个文件和ioncube-encoded-file.php、ioncube-loader-helper.php(共四个文件)外,其余的都删了(其余的不对应我的PHP5.2.5版本),在主机的根目录建立一个文件夹,取名ioncube,上传四个文件。 接着打开根目录下的PHP5.ini,在[Zend]区段下增加一行 zend_extension=/home/content/e/x/a/example/html/ioncube/ioncube_loader_lin_5.2.so 这里的e/x/a/example,请读者自己替换成相应的帐号。 最后打开网址 http://www.yoursite.com/ioncube/ioncube-loader-helper.php(把yoursite.com改成你自己的域名),如果看到以下信息“An ionCube Loader file is required by PHP to read files encoded with the ionCube Encoder. This page will determine how you can install Loaders on this particular server. An ionCube encoded file has been loaded successfully.Encoded files should now function correctly. If you have a problem with your PHP application, please contact the application provider.”就说明组件安装成功了。
Powered by !JoomlaComment 3.26
3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."Related items |
||||||||
| Last Updated ( Saturday, 27 September 2008 ) | ||||||||
| Next > |
|---|