マルチサイトインストールエラー
-
サーバー sova
すでに作成済みのワードプレスサイトをマルチサイトに対応させたいと思い、下記のサイトを参考にしてみました。
http://www.brain-solution.net/blog/web-product/wp-multi1000/プラグインを停止して【ネットワークの設置】までは表示されるのですが、インストールを進めようとすると下記のエラーが出ます。
「ネットワークの作成をするには wp-config.php ファイル内で WP_ALLOW_MULTISITE 定数を true に設定してください。」
もちろんtrueにしています。
どこを修正すればいいでしょうか?
4件の返信を表示中 - 1 - 4件目 (全4件中)
-
「ネットワークの作成をするには wp-config.php ファイル内で WP_ALLOW_MULTISITE 定数を true に設定してください。」
もちろんtrueにしています。
どこを修正すればいいでしょうか?まずは今のwp-config.phpの記述内容を教えてください。
WP_ALLOW_MULTISITE のところ以外の記述も知りたいですが、データベースの名前やパスワードだけはくれぐれもダミーに置き換えて貼ってくださいね!ご返信ありがとうございます。下記が記述内容です。
<?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 ** // $db_data = false; if ( file_exists('/opt/aws/cloud_formation.json') ) { $db_data = json_decode(file_get_contents('/opt/aws/cloud_formation.json'), true); if ( isset($db_data['rds']) ) { $db_data = $db_data['rds']; $db_data['host'] = $db_data['endpoint'] . ':' . $db_data['port']; } } if ( !$db_data ) { $db_data = array( 'database' => '*', 'username' => '*', 'password' => '*', 'host' => 'localhost', ); } /**PHP session folder**/ define('WSI_PHP_SESSION', dirname(__FILE__).'/phpsession'); session_save_path(WSI_PHP_SESSION); /** The name of the database for WordPress */ define('DB_NAME', '*'); /** MySQL database username */ define('DB_USER', '*'); /** MySQL database password */ define('DB_PASSWORD', '*'); /** MySQL 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', ''); /** * マルチサイト有効化 */ define( 'WP_ALLOW_MULTISITE', true ); unset($db_data); /**#@+ * 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', '*'); define('SECURE_AUTH_KEY', '*'); define('LOGGED_IN_KEY', '*'); define('NONCE_KEY', '*'); define('AUTH_SALT', '*'); define('SECURE_AUTH_SALT', '*'); define('LOGGED_IN_SALT', '*'); define('NONCE_SALT', '*'); define('WP_MEMORY_LIMIT', '3000M'); /**#@-*/ /** * 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', 'ja'); /** * 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); //define('WP_DEBUG', true); //define('SAVEQUERIES', true); //define('WP_DEBUG_DISPLAY', false); /** * Multisite Settings */ // define ('WP_ALLOW_MULTISITE', true); // // define('MULTISITE', true); // define('SUBDOMAIN_INSTALL', true); // define('DOMAIN_CURRENT_SITE', 'ex.com'); // define('PATH_CURRENT_SITE', '/'); // define('SITE_ID_CURRENT_SITE', 1); // define('BLOG_ID_CURRENT_SITE', 1); /** * For VaultPress */ define( 'VAULTPRESS_DISABLE_FIREWALL', true ); if ( !empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { $forwarded_ips = explode( ',', $_SERVER['HTTP_X_FORWARDED_FOR'] ); $_SERVER['REMOTE_ADDR'] = $forwarded_ips[0]; unset( $forwarded_ips ); } /** * For Nginx Cache Controller */ define('IS_AMIMOTO', true); define('NCC_CACHE_DIR', '/var/cache/nginx/proxy_cache'); /** * set post revisions */ //define('WP_POST_REVISIONS', 5); /** * disallow file edit and modifie */ //define('DISALLOW_FILE_MODS',true); //define('DISALLOW_FILE_EDIT',true); /* 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'); define( 'WP_AUTO_UPDATE_CORE', false );
ああ、なるほど、
defineの前に// が付いているとコメント扱いになるので、書いてないのと同じことになります。
必要な行の頭の//を消してみてください。ありがとうございました。
/** * Multisite Settings */ // define ('WP_ALLOW_MULTISITE', true); // // define('MULTISITE', true); // define('SUBDOMAIN_INSTALL', true); // define('DOMAIN_CURRENT_SITE', 'ex.com'); // define('PATH_CURRENT_SITE', '/'); // define('SITE_ID_CURRENT_SITE', 1); // define('BLOG_ID_CURRENT_SITE', 1);
を削除したら先に進めました!
define(‘MULTISITE’, true);
が2重に書いてあったようです。
4件の返信を表示中 - 1 - 4件目 (全4件中)
- トピック「マルチサイトインストールエラー」には新たに返信することはできません。