1、wordpress 配置文件开启 站群
<?php
// BEGIN iThemes Security - Do not modify or remove this line
// iThemes Security Config Details: 2
define( 'DISALLOW_FILE_EDIT', true ); // Disable File Editor - Security > Settings > WordPress Tweaks > File Editor
// END iThemes Security - Do not modify or remove this line
define( 'ITSEC_ENCRYPTION_KEY', 'VCN7eiMlej5YJUlUSGV4UVt+OHolM2BxJkhgITA3djohY2szc1Y6TlZvWiBqLDl2ZjpmRUk4UTxFYHFqRzBrOw==' );
/**
* The base configuration for WordPress
*
* The wp-config.php creation script uses this file during the installation.
* You don't have to use the web site, you can copy this file to "wp-config.php"
* and fill in the values.
*
* This file contains the following configurations:
*
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
*
* @link https://wordpress.org/documentation/article/editing-wp-config-php/
*
* @package WordPress
*/
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'ch_websitegroup' );
/** Database username */
define( 'DB_USER', 'changhengwebsite' );
/** Database password */
define( 'DB_PASSWORD', 'changhengwebsite666' );
/** Database hostname */
define( 'DB_HOST', 'localhost' );
/** 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', '' );
/**#@+
* 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', 'c&Wg6S_E`sj)d}$UF)xAiaiGVVJ--Ow*;#o!u]SRKecArTlPi$]j<D*N)FFgfX^@' );
define( 'SECURE_AUTH_KEY', '0!3/*u~My(Zz[CM!>MsVU^X9}$y*S4Y T7BcwAhGlp^dE#pBP@eAFmkC`:>5u6@K' );
define( 'LOGGED_IN_KEY', 'CGRZL_#|f*T6ysdM[c7D>>SztAjMJ=#)y8$o+dB#_Yova@w~#+WcviYTif9l)g-r' );
define( 'NONCE_KEY', '^c6_xpV7 jxk$EZ59Wzxd/Oa<`X]*QHSgqoR:MG%< :]FC2]`j,;Y{dz?B65s*#C' );
define( 'AUTH_SALT', '1_.XmrE+EVj@{p,|lGZz/%>3Abv{NJUY]KPa,kBCI?{d.Z5}QGtY$b)Xsl+OEp5U' );
define( 'SECURE_AUTH_SALT', 'C;cMSGpb8F@hEKlH8Dlrjb+3QY4(+;6p%D]@.9-><)=ZRLnLca{1YlXMaECGPb#-' );
define( 'LOGGED_IN_SALT', '#aE0|}E`.}v3K.J{!6&s; xLb{yP>#H/LJmi vozC8[2*H{[(PsQhNVF?$p[1jW7' );
define( 'NONCE_SALT', 'Md(]SXH(e,3z/6ar3T 4j8=_#+c[E)?Ay,r!:$%u{W}Cf;>_6nP HxXhj[NVn3^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_';
/**
* 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.
*
* For information on other constants that can be used for debugging,
* visit the documentation.
*
* @link https://wordpress.org/documentation/article/debugging-in-wordpress/
*/
define( 'WP_DEBUG', false );
/* Add any custom values between this line and the "stop editing" line. */
// 更新上传服务器编辑器不能使用
define('WP_SITEURL', 'https://' . $_SERVER['HTTP_HOST']);
define('WP_HOME', 'https://' . $_SERVER['HTTP_HOST']);
$_SERVER['HTTPS'] = 'on';
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
define( 'DOMAIN_CURRENT_SITE', 'www.vipasiatravel.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
/* That's all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/' );
}
/** Sets up WordPress vars and included files. */
require_once ABSPATH . 'wp-settings.php';
2 ,开始新建站群 添加网站 和 用户名
3、在宝塔上新建网站 绑定好网址 复制主站代码 注意不改数据库 然后修改配置文件 域名
4、必须在主站安装好主题,然后复制主题到 第三步新建的网站里。