安装WHMCS报错

下载WHMCS后,开始install,报错了

Site error: the file /var/www/html/whmcs/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

需要在http://www.ioncube.com/loaders.php根据你的系统的种类下载tar包,解压缩后放入/usr/lib里面,然后再php.ini中添加

zend_optimizer.optimization_level=15
zend_extension = /usr/lib/ioncube_loader_lin_5.2.so

但是网页仍然报错,并且php -v显示如下错误:

ioncube_loader_lin_5.2.so: cannot restore segment prot after reloc: Permission denied

参考http://forums.zend.com/viewtopic.php?f=57&t=451,运行/usr/sbin/setenforce 0,正常.

原因是SE Linux被设置为enforcing.

To turn this off completely you can edit your selinux config:
edit and replace enforcing with disabled in ''/etc/selinux/config'' and reboot server.

如果以前装有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中是如下代码,修改完成再执行/usr/local/php/php-fpm restart ,使用Lnmp一键安装包安装的话,需要/usr/local/php/sbin/php-fpm reload重启。

ps:ioncube包里面有各个版本php的,5.3的PHP有ioncube_loader_lin_5.3.so可以用

Leave a Reply

Your email address will not be published. Required fields are marked *