我按照说明中的所有步骤(https://github.com/mbassan/backstage2)。将后台2移至/ var / www / html / backstage2 /。配置了适当的数据库设置等。安装并启用了mcrypt模块。在php.ini中添加了short_open_tag = On。但是当我去myurl.com/backstage2/它显示,
print = $_REQUEST['print']; $CFG->url = ($_REQUEST['current_url'] != 'index.php') ? ereg_replace("[^a-zA-Z_\-]", "",$_REQUEST['current_url']) : ''; $CFG->action = ereg_replace("[^a-zA-Z_\-]", "",$_REQUEST['action']); $CFG->bypass = ($_REQUEST['bypass'] || $CFG->print); $CFG->is_tab = (!$CFG->url) ? 1 : $_REQUEST['is_tab']; $CFG->id = ereg_replace("[^0-9]", "",$_REQUEST['id']); $CFG->target_elem = ereg_replace("[^a-zA-Z_\-]", "",$_REQUEST['target_elem']); $CFG->in_popup = ($CFG->target_elem == 'edit_box' || $CFG->target_elem == 'message_box' || $CFG->target_elem == 'attributes box'); $_SESSION['last_query'] = $_SESSION['this_query']; $_SESSION['this_query'] = 'index.php?'.http_build_query((is_array($_POST)) ? $_POST : $_GET); date_default_timezone_set($CFG->default_timezone); String::magicQuotesOff(); if ($CFG->locale) { setlocale(LC_ALL,$CFG->locale); } if (!$CFG->bypass || ($CFG->bypass && $CFG->print)) { $header = new Header(); $header->metaAuthor(); $header->metaDesc(); $header->metaKeywords(); $header->cssFile('css/colorpicker.css'); $header->cssFile('css/reset.css'); $header->cssFile('css/'.$CFG->skin.'/default.css','all'); $header->cssFile('css/'.$CFG->skin.'/default_ie6.css','all','IE 6'); $header->cssFile('css/'.$CFG->skin.'/default_ie7.css','all','IE 7'); $header->cssFile('css/'.$CFG->skin.'/default_ie8.css','all','IE 8'); $header->jsFile('js/jquery-1.4.2.min.js'); $header->jsFile('js/jquery-ui-1.8.5.custom.min.js'); $header->jsFile('js/ajax.js'); $header->jsFile('js/calendar.js'); $header->jsFile('js/colorpicker.js'); $header->jsFile('js/comments.js'); $header->jsFile('js/form.js'); $header->jsFile('js/file_manager.js'); $header->jsFile('js/flow_chart.js'); $header->jsFile('js/gallery.js'); $header->jsFile('js/grid.js'); $header->jsFile('js/multi_list.js'); $header->jsFile('js/popups.js'); $header->jsFile('js/page_maker.js'); $header->jsFile('js/permissions.js'); $header->jsFile('js/swfupload.js'); $header->jsFile('js/jquery.swfupload.js'); $header->jsFile('ckeditor/ckeditor.js'); $header->jsFile('js/Ops.js'); $header->js('CKEDITOR.dtd.$removeEmpty[\'span\'] = false;'); $header->display(); $header->getJsGlobals(); } if ($_REQUEST['authy_form']) { $token1 = ereg_replace("[^0-9]", "",$_REQUEST['authy_form']['token']); if (!($token1 > 0)) Errors::add('Invalid token.'); if (!is_array(Errors::$errors)) { $authy_id = User::$info['authy_id']; $response = shell_exec('curl "https://api.authy.com/protected/json/verify/'.$token1.'/'.User::$info['authy_id'].'?api_key='.$CFG->authy_api_key.'"'); $response1 = json_decode($response,true); if (!$response || !is_array($response1)) Errors::merge('Authy communication error.'); if (!empty($response1['errors']) || $response1['success'] === false || $response1['success'] === 'false') Errors::merge($response1['errors']); if (!is_array(Errors::$errors)) { $_SESSION['token_verified'] = 1; Errors::$errors = false; } } } if (User::isLoggedIn() && !(User::$info['verified_authy'] == 'Y' && !($_SESSION['token_verified'] > 0))) { $CFG->user_id = User::$info['id']; $CFG->group_id = User::$info['f_id']; if (!$CFG->bypass || ($CFG->url == 'edit_page' && !$_REQUEST['tab_bypass'])) { include_once 'includes/popups.php'; ?>
我可以采取哪些措施来解决这个问题?
编辑:已安装php5-gd,无法找到php5-pcre。所有其他模块都已安装。错误仍然存在。我正在运行ubuntu 14.04答案 0 :(得分:-1)
打开php.ini并进行更改 short_open_tag =关闭 至 short_open_tag =开启
重新启动apache2并转到:)