• 百度BAE环境下WordPress搭建过程


    参考:

    文章一: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”,默认如果没有,点击添加插件,在弹出页面的搜索框搜就有了,安装就行

  • 相关阅读:
    论文尾注后无法插入分节符
    实现java对象排序的三种方式
    java数组的定义方式
    Canvas
    正则xss
    mongoDB学习记录
    查找,学习,记录
    地址
    node实战学习纪录
    nodejs学习记录
  • 原文地址:https://www.cnblogs.com/xcsn/p/3444664.html
Copyright © 2020-2023  润新知