将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 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 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');