ja_mageia


 


本站遵守 Creative Commons License 许可 转载时务必以超链接形式标明文章原始出处和作者信息 
  • Narrow screen resolution
  • Wide screen resolution
  • Increase font size
  • Decrease font size
  • Default font size
Home Section Table Godaddy Linux 主机安装 Ioncube
Section Table
Godaddy Linux 主机安装 Ioncube PDF Print E-mail
(2 votes, average 3.00 out of 5)
Written by Administrator   
Saturday, 27 September 2008 02:27
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.”就说明组件安装成功了。

Last Updated on Sunday, 08 February 2009 07:00
 

Add comment


Security code
Refresh

Login Form



Who's Online

We have 3 guests online