简体   繁体   English

CentOs 7 WMCS显示500 http错误。 由ionCube Encoder进行PHP 5.6编码,无法在PHP 7.1下运行

[英]CentOs 7 WMCS displaying a 500 http error. Was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1

I migrated my WHMCS from a virtual machine to a full centos running machine, i am experiencing trouble when trying to view any on the WHMCS directory. 我将WHMCS从虚拟机迁移到了运行全centos的计算机,尝试查看WHMCS目录上的任何文件时遇到麻烦。 It displays a 它显示一个

This page isn't working 此页面无效

192.168.1.4 is currently unable to handle this request. 192.168.1.4当前无法处理该请求。 HTTP ERROR 500 HTTP错误500

I went into SSH and viewed the /var/log/httpd/error_log to find a relevant error. 我进入SSH并查看了/ var / log / httpd / error_log以找到相关的错误。

**[Sun Oct 29 09:51:43.886770 2017] [php7:error] [pid 5951] [client 192.168.1.8:25937] PHP Fatal error:  The file /var/www/html/client/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1.\n Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0**

The confusing thing is, i am running ioncube 7.1 on php 7.1. 令人困惑的是,我正在php 7.1上运行ioncube 7.1。 But for some reason the server does not think so. 但是由于某种原因,服务器不这么认为。

I did a php -v 我做了一个PHP -v

    [root@new-host-7 ~]# php -v
PHP 7.1.10 (cli) (built: Sep 30 2017 10:30:04) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.0.3, Copyright (c) 2002-2017, by ionCube Ltd.

In my php.ini file i told it it to use ioncube 7.1 : 在我的php.ini文件中,我告诉它使用ioncube 7.1:

zend_extension = /usr/lib64/php/modules/ioncube_loader_lin_7.1.so

And if i create a info.php page on my webserver i receive a successful response: 如果我在网络服务器上创建了一个info.php页面,我会收到一个成功的响应:

PHP Version 7.1.10

What is causing the log to say that i am using different versions? 是什么导致日志说我正在使用不同的版本?

From WHMCS System Requirements page: WHMCS 7.x supports PHP 5.6 and 7.0 从WHMCS 系统要求页面:WHMCS 7.x支持PHP 5.6和7.0

You'll need to use PHP 7.0.X for WHMCS to work. 您需要使用PHP 7.0.X才能使WHMCS正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM