zoukankan      html  css  js  c++  java
  • BAE空间 Wpconfig配置

    将WP上传到BAE空间是需要配置一下的,具体配置如下:

    或是点击下载文件

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don't have to use the web site, you can just copy this file
    * to "wp-config.php" and fill in the values.
    *
    * @package WordPress
    */

    // ** MySQL settings - You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define('DB_NAME', '数据库');

    /** MySQL database username */
    define('DB_USER', getenv('HTTP_BAE_ENV_AK'));

    /** MySQL database password */
    define('DB_PASSWORD', getenv('HTTP_BAE_ENV_SK'));

    /** MySQL hostname */
    define('DB_HOST', getenv('HTTP_BAE_ENV_ADDR_SQL_IP') . ":" . getenv('HTTP_BAE_ENV_ADDR_SQL_PORT'));

    /** Database Charset to use in creating database tables. */
    define('DB_CHARSET', 'utf8');

    /** The Database Collate type. Don't change this if in doubt. */
    define('DB_COLLATE', '');

    /** BCMS queue Name */
    define('BCMS_QUEUE', '云消息Key');

    /**#@+
    * Authentication Unique Keys and Salts.
    *
    * Change these to different unique phrases!
    * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    *
    * @since 2.6.0
    */
    define('AUTH_KEY',         'IVjtyhd[kS_z,ma+;p01*+?byj8AGE2-nS`7z N!75FKA<=7][+-aI%[UvH>a!Z;');
    define('SECURE_AUTH_KEY',  'A)Tp5v=a}UeX*8+UN%PSYrp-dB%#2(1]JFGR|b2H0S2l.`#%w|%Bj~9Ob|+yS(A1');
    define('LOGGED_IN_KEY',    ' LU3<h9x>p4}x/</?A^,54;udKSF03$+q5ivlTLWyNBirq}^=z)0nhC7}Chu/}>{');
    define('NONCE_KEY',        'M{.C@7q9]A4Y!bx:B=^u4.~SoV{-^x1mLe5drzi#93.bKMVsb|mp1DYjY7X|wDq-');
    define('AUTH_SALT',        '0[Y5|Fc//Vmf)(_Oof7b(IxfMo+391]Y<$1]+U?)EIy09v~IrjEs/f}Zt~?bn-ib');
    define('SECURE_AUTH_SALT', 'zgg?N]F}E/]t#DN{Bcp,en{5|J]4*,l @eI!xvCH%S*p?})VGA[ap+8#Z,*P1flE');
    define('LOGGED_IN_SALT',   'RaV1uQ+5FTTTQ+Qgi<-73z=1T0;^GA85AER:X=C@!;/E>zbv&PiV&Un~/Bbu||`@');
    define('NONCE_SALT',       'WvJ]>>P$e*6h2c72lZ%Q?rDyx;V6Eu?`Hb-mPketn`ob`<Ne?bZ8*ePSt<E@^;B)');

    /**#@-*/

    /**
    * WordPress Database Table prefix.
    *
    * You can have multiple installations in one database if you give each a unique
    * prefix. Only numbers, letters, and underscores please!
    */
    $table_prefix  = 'wp_';

    /**
    * WordPress Localized Language, defaults to English.
    *
    * Change this to localize WordPress. A corresponding MO file for the chosen
    * language must be installed to wp-content/languages. For example, install
    * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
    * language support.
    */
    define('WPLANG', 'zh_CN');

    /**
    * For developers: WordPress debugging mode.
    *
    * Change this to true to enable the display of notices during development.
    * It is strongly recommended that plugin and theme developers use WP_DEBUG
    * in their development environments.
    */
    define('WP_DEBUG', false);

    /* That's all, stop editing! Happy blogging. */

    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
        define('ABSPATH', dirname(__FILE__) . '/');

    /** Sets up WordPress vars and included files. */
    require_once(ABSPATH . 'wp-settings.php');

  • 相关阅读:
    easyui 后台系统引入富文本编辑器的使用
    easyui datagrid 表格动态隐藏部分列的展示
    java ArrayList源码分析(转载)
    propertychange方法
    CSS margin-top 属性
    easyui-textbox input输入框的一种取值方式
    jquery next()方法
    jquery children()方法
    一段简单的表格样式
    常用的排序算法的时间复杂度和空间复杂度
  • 原文地址:https://www.cnblogs.com/Bany/p/2784838.html
Copyright © 2011-2022 走看看