我正在使用 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/