XCache:无法在Laravel 5.1应用程序中初始化 [英] XCache: cannot init in Laravel 5.1 application

查看:91
本文介绍了XCache:无法在Laravel 5.1应用程序中初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Laravel 5.1 Web应用程序. 该应用程序在我的本地主机上运行正常,但是当我在托管的cPanel共享上部署网站时,出现以下错误.

I'm developing a Laravel 5.1 web application. The application is working absolutely fine on my localhost but when I deploy the website on a cPanel shared hosting it get following error.

FatalErrorException在未知的行0:XCache:无法在未知的行中初始化 第0行

FatalErrorException in Unknown line 0: XCache: Cannot init in Unknown line 0

有时,此错误通过重新加载页面消失,但在重新加载几次后再次出现.我已经尝试通过编辑.htaccess文件来禁用XCache,如本

Sometimes, this error disappears by reloading the page but appears again after reloading several times. I've tried disabling the XCache by editing the .htaccess file as described in this link but it stills generates the same error. How can I resolve this error? Any help will be appreciated. Thanks.

推荐答案

将PHP版本升级到5.5并启用Xcache对我有用.

Upgrading the PHP version to 5.5 and enabling Xcache worked for me.

这篇关于XCache:无法在Laravel 5.1应用程序中初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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