博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
BAE空间 Wp-config配置
阅读量:4695 次
发布时间:2019-06-09

本文共 3428 字,大约阅读时间需要 11 分钟。

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

转载于:https://www.cnblogs.com/Bany/archive/2012/11/23/2784838.html

你可能感兴趣的文章
客户端第一天学习的相关知识
查看>>
LeetCode - Same Tree
查看>>
Python dict get items pop update
查看>>
[置顶] 程序员必知(二):位图(bitmap)
查看>>
130242014036-(2)-体验敏捷开发
查看>>
constexpr
查看>>
Nginx 流量和连接数限制
查看>>
课堂作业1
查看>>
IE8/9 本地预览上传图片
查看>>
Summary of CRM 2011 plug-in
查看>>
Eclipse+Maven环境下java.lang.OutOfMemoryError: PermGen space及其解决方法
查看>>
安全漏洞之Java
查看>>
Oracle 组函数count()
查看>>
Session的使用过程中应注意的一个小问题
查看>>
SDK,API,DLL名词解释
查看>>
试探算法
查看>>
jquery.validation.js 使用
查看>>
数据库高级查询
查看>>
C语言实现封装、继承和多态
查看>>
创建文件
查看>>