php - OpenTBS 无法在带有 PHP5.5.9 的 Ubuntu 14.04 上运行

标签 php linux ubuntu-14.04 lamp opentbs

我正在使用 openTBS 版本 1.9.4 enter link description here在带有 PHP5.5.9 的 Ubunto 14.04 上。在使用这个应用程序时,我发现了问题发生的地方。

// Include classes
include_once('tbs_class.php'); // Load the TinyButStrong template engine
include_once('../tbs_plugin_opentbs.php'); // Load the OpenTBS plugin

// prevent from a PHP configuration problem when using mktime() and date()
if (version_compare(PHP_VERSION,'5.1.0')>=0) {
    if (ini_get('date.timezone')=='') {
        date_default_timezone_set('UTC');
    }
}

// Initialize the TBS instance
$TBS = new clsTinyButStrong; // new instance of TBS

我在创建实例 TBS 时遇到问题,它在 chrome 浏览器上抛出以下错误。

No data received

ERR_EMPTY_RESPONSE

但我在 WAMP2.5 和 PHP5.5.12 上尝试了相同的 openTBS 版本 1.9.4,它工作正常。 我还在 RHEL-7.1_HVM_GA 和 PHP5.4.16 上尝试了相同的 openTBS 版本 1.9.4,它工作正常

最佳答案

据我了解,我在 php 上配置了 xcache,但它无法正常工作。当我试图在

中将 xcache 参数“xcache.cacher”从 On 改为 Off 时

xcache.ini

它正在工作。

xcache.cacher =               Off 

关于php - OpenTBS 无法在带有 PHP5.5.9 的 Ubuntu 14.04 上运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32630307/

相关文章:

php - 从数据库中获取上一个条目

linux - 服务文件中的 After 和 Requires 标签是什么意思?

android - Ubuntu Azure 托管计算机上的 Pubnub+Python SDK。连接问题

ubuntu - 使用 vagrant、hhvm 和 Ubuntu 14.04 安装 Composer

64-bit - Android Studio :/dev/kvm device permission denied

PHP 创建的 ZIP 文件不适用于 Windows 资源管理器

php - 从 php 字符串中提取纬度/经度坐标

linux - 在 Linux 中,我如何找出哪个进程锁定了一个文件?

php - 防止 CKEditor 修复/更正(无效的)HTML 代码

c++ - 具有相互独立线程的多线程开销