HostGator中的PHP版本 [英] PHP version in HostGator

查看:110
本文介绍了HostGator中的PHP版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在主机(HostGator)中上载新版本时,我的项目有一个问题.

I have one problem with my project, when try to upload a new version in my host (HostGator).

这是错误:

PHP启动:SourceGuardian:无法初始化模块
使用模块API = 20131226
编译的模块 使用模块API = 20100525
编译的PHP 这些选项需要匹配

PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20131226
PHP compiled with module API=20100525
These options need to match

我在cPanel中将PHP 5.4的版本更改为5.6,但是当我从与腻子的连接中检查服务器中的PHP版本时,会收到以下消息:

I change in cPanel the version of PHP 5.4 to 5.6, but when I check the version of PHP in server from connection with putty, I receive the follow message:

PHP 5.4.45(cli)(内置:2017年4月17日15:59:08)
版权所有(c)1997-2014 The PHP Group
Zend Engine v2.4.0,版权所有(c)1998-2014 Zend Technologies
使用ionCube PHP Loader(已启用)+来自ioncube24.com的入侵保护(未配置)v10.2.4,版权所有(c)2002-2018,由ionCube Ltd.
与Zend Guard Loader v3.3,Zend Technologies版权所有(c)1998-2013

PHP 5.4.45 (cli) (built: Apr 17 2017 15:59:08)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright (c) 2002-2018, by ionCube Ltd.
    with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

也许这可能是问题所在?我读到有关此错误的信息,但无法解决.我不知道我做错了什么.

Maybe this can be the problem? I read about this error, but I cant get a solution. I don't know if I doing something wrong.

推荐答案

cPanel提供了两种设置php版本的方法.一个叫做选择PHP版本",它将全局php版本设置为新域,cron作业等的默认版本,另一个叫"MultiPHP Manager",它允许您设置不同版本的php用于不同的域.相同的cPanel帐户.您需要确保"MultiPHP Manager"也列出了您所在域的正确php版本(它可以覆盖选择PHP版本"设置).

cPanel provides 2 different methods of setting the php version. One is called "Select PHP version" which sets the global php version to be used as default for new domains, cron jobs etc, the other is "MultiPHP Manager" which allows you to set different versions of php to be used with different domains under the same cPanel account. You need to make sure "MultiPHP Manager" also lists the correct php version for your domain (It can override "Select PHP version" setting).

这篇关于HostGator中的PHP版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆