tables( 'ms_global' ) as $table => $prefixed_table ) $wpdb->$table = $prefixed_table; $title = __( 'Create a Network of WordPress Sites' ); $parent_file = 'tools.php'; add_contextual_help( $current_screen, __( 'Network Settings') ); include( './admin-header.php' ); ?>

Network * should not be a sudden "Welcome to a new install process! Fill this out and click here." * * @since 3.0.0 */ function network_step1() { $active_plugins = get_option( 'active_plugins' ); if ( ! empty( $active_plugins ) ) { printf( '

' . __( 'Please deactivate your plugins before enabling the Network feature. Once the network is created, you may reactivate your plugins.' ) . '

', admin_url( 'plugins.php' ) ); include( './admin-footer.php' ); die(); } $hostname = get_clean_basedomain(); if ( preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname ) ) { echo '

' . __('You cannot install a network of sites with your server address.' ) . '

'; echo '

' . __('You cannot use an IP address such as 127.0.0.1.' ) . '

'; include( './admin-footer.php' ); die(); } ?>

' . __( 'Please make sure the Apache mod_rewrite module is installed as it will be used at the end of this install.' ) . '

'; else echo '

' . __( 'Warning! It looks like Apache mod_rewrite module is not installed.' ) . '

'; echo '

' . __( 'If mod_rewrite is disabled ask your administrator to enable that module, or look at the Apache documentation or elsewhere for help setting it up.' ) . '

'; } wp_nonce_field( 'install-network-1' ); if ( 'localhost' != $hostname ) : ?>

You cannot change this later.' ); ?>

Note It looks like mod_rewrite is not installed.' ); ?>

site1.example.com and site2.example.com'); ?>
example.com/site1 and example.com/site2'); ?>

%1$s before enabling the network feature. It will still be possible to visit your site using the "www" prefix with an address like %2$s but any links will not have the "www" prefix.' ), substr( $hostname, 4 ), $hostname ); ?>
%s.' ), $hostname ); ?>

localhost, the sites in your WordPress network must use sub-directories. Consider using localhost.localdomain if you wish to use sub-domains.'); ?>
%s.' ), $hostname ); ?>
' />
' />

' />

Caution: We recommend you backup your existing wp-config.php and .htaccess files.' ); ?>

  1. blogs.dir directory in %s. This directory is used to stored uploaded media for your additional sites and must be writeable by the web server.' ), WP_CONTENT_DIR ); ?>

  2. wp-config.php file in %s:' ), ABSPATH ); ?>

    '', 'SECURE_AUTH_KEY' => '', 'LOGGED_IN_KEY' => '', 'NONCE_KEY' => '', 'AUTH_SALT' => '', 'SECURE_AUTH_SALT' => '', 'LOGGED_IN_SALT' => '', 'NONCE_SALT' => '' ); foreach ( $keys_salts as $c => $v ) { if ( defined( $c ) ) unset( $keys_salts[ $c ] ); } if ( ! empty( $keys_salts ) ) { $from_api = wp_remote_get( 'https://api.wordpress.org/secret-key/1.1/salt/' ); if ( is_wp_error( $from_api ) ) { foreach ( $keys_salts as $c => $v ) { $keys_salts[ $c ] = wp_generate_password( 64, true, true ); } } else { $from_api = explode( "\n", wp_remote_retrieve_body( $from_api ) ); foreach ( $keys_salts as $c => $v ) { $keys_salts[ $c ] = substr( array_shift( $from_api ), 28, 64 ); } } $num_keys_salts = count( $keys_salts ); ?>

    wp-config.php file.', 'These unique authentication keys are also missing from your wp-config.php file.', $num_keys_salts ); ?>

  3. .htaccess file in %s, replacing other WordPress rules:' ), ABSPATH ); ?>

Once you complete these steps, your network is enabled and configured. Return to Dashboard