problem

解决您在不同平台环境下遇到的安装和升级问题
回复
aldryn-deployer
帖子: 2
注册时间: 2020年 9月 6日 09:32

problem

帖子 aldryn-deployer »

Help the page show a 500 error(database query error)

config.inc.php:
```
<?php
/**
* Typecho Blog Platform
*
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
* @license GNU General Public License 2.0
* @version $Id$
*/

/** 定义根目录 */
define('__TYPECHO_ROOT_DIR__', dirname(__FILE__));

/** 定义插件目录(相对路径) */
define('__TYPECHO_PLUGIN_DIR__', '/usr/plugins');

/** 定义模板目录(相对路径) */
define('__TYPECHO_THEME_DIR__', '/usr/themes');

/** 后台路径(相对路径) */
define('__TYPECHO_ADMIN_DIR__', '/admin/');

/** 设置包含路径 */
@set_include_path(get_include_path() . PATH_SEPARATOR .
__TYPECHO_ROOT_DIR__ . '/var' . PATH_SEPARATOR .
__TYPECHO_ROOT_DIR__ . __TYPECHO_PLUGIN_DIR__);

/** 载入API支持 */
require_once 'Typecho/Common.php';

/** 载入Response支持 */
require_once 'Typecho/Response.php';

/** 载入配置支持 */
require_once 'Typecho/Config.php';

/** 载入异常支持 */
require_once 'Typecho/Exception.php';

/** 载入插件支持 */
require_once 'Typecho/Plugin.php';

/** 载入国际化支持 */
require_once 'Typecho/I18n.php';

/** 载入数据库支持 */
require_once 'Typecho/Db.php';

/** 载入路由器支持 */
require_once 'Typecho/Router.php';

/** 程序初始化 */
Typecho_Common::init();

/** 定义数据库参数 */
$db = new Typecho_Db('Pdo_SQLite', 'typecho_');
$db->addServer(array (
'file' => '/app/public/usr/cb20664fc42b.db',
), Typecho_Db::READ | Typecho_Db::WRITE);
Typecho_Db::set($db);
```
the directory:
```
├─admin
│ ├─css
│ ├─img
│ └─js
├─install
├─usr
│ ├─plugins
│ │ └─HelloWorld
│ ├─themes
│ │ └─default
│ │ └─img
│ └─uploads
└─var
├─IXR
├─Typecho
│ ├─Db
│ │ ├─Adapter
│ │ │ └─Pdo
│ │ └─Query
│ ├─Http
│ │ └─Client
│ │ └─Adapter
│ ├─I18n
│ ├─Plugin
│ ├─Router
│ └─Widget
│ └─Helper
│ ├─Form
│ │ └─Element
│ └─PageNavigator
└─Widget
├─Abstract
├─Comments
├─Contents
│ ├─Attachment
│ ├─Page
│ ├─Post
│ └─Related
├─Interface
├─Metas
│ ├─Category
│ └─Tag
├─Options
├─Plugins
├─Themes
└─Users
```
can anyone resolve this problem?

- 1.database already at /usr/cb20664fc42b.db
- 2.we tried re-deploy.deploy successful,but page still 500 https://go-on-stage.us.aldryn.io
木诚诚
帖子: 12
注册时间: 2019年 5月 2日 11:00
联系:

Re: problem

帖子 木诚诚 »

无能为力 helplessly
回复