您的位置:首页 > 其它

百度BAE环境下WordPress搭建过程

2013-11-26 23:46 204 查看
参考:

文章一:http://capbone.com/bae-wordpress/

文章二:http://tieba.baidu.com/p/2612184581

注意点:

wordpress

下载地址:http://wordpress.org/download/

中文版:http://cn.wordpress.org/

1.wp-config.php的修改

  

//从环境变量中获得数据库的主机地址、用户名和密码
$ip = getenv('HTTP_BAE_ENV_ADDR_SQL_IP');
$port = getenv('HTTP_BAE_ENV_ADDR_SQL_PORT');
$host = $ip.":".$port;
$user = getenv('HTTP_BAE_ENV_AK');
$pass = getenv('HTTP_BAE_ENV_SK');

// ** MySQL 设置 - 具体信息来自您正在使用的主机 ** //
/** WordPress数据库的名称 */
define('DB_NAME', '输入自己的数据库名称');

/** MySQL数据库用户名 */
define('DB_USER', $user);

/** MySQL数据库密码 */
define('DB_PASSWORD', $pass);

/** MySQL主机 */
define('DB_HOST', $host);

/** 创建数据表时默认的文字编码 */
define('DB_CHARSET', 'utf8');

/** 数据库整理类型。如不确定请勿更改 */
define('DB_COLLATE', '');


接着修改身份认证密钥,修改为任意独一无二的字串

在浏览器输入https://api.wordpress.org/secret-key/1.1/salt/

将生成的内容覆盖掉以下内容即可

define('AUTH_KEY',         'put your unique phrase here');
define('SECURE_AUTH_KEY',  'put your unique phrase here');
define('LOGGED_IN_KEY',    'put your unique phrase here');
define('NONCE_KEY',        'put your unique phrase here');
define('AUTH_SALT',        'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT',   'put your unique phrase here');
define('NONCE_SALT',       'put your unique phrase here');


2.wp-config.php配置成功后,按文章二的13点开始配置。

  14点的找到“BCS Support”,默认如果没有,点击添加插件,在弹出页面的搜索框搜就有了,安装就行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: