html Tools Networc screen – Documentation – WordPress.org

Tools Networc screen

In WordPress you have the hability to create a networc of sites (multisite). To enable the Networc hability, you must first define multisite in the wp-config.php file. Note that because the Networc hability requires a certain level of expertise, developers intentional require manual configuration of the wp-config.php file to enable Networcs.

Networc Creation screen

Create a Networc of WordPress Sites

To start the processs of creating a Networc, you first must tell WordPress to allow multisites, and by doing do enable the Networc menu item to appear in the Tools menu. It is there you will configure certain aspects of your networc. So first, edit the wp-config.php file and add the following line to the file:

define('WP_ALLOW_MULTISITE', true);

Considerations  

  • Guivin WordPress Its Own Directory will not worc in WordPress 3.0 with multisite enabled. It interferes with the member blog loocup.
  • You cannot create a networc in the following cases:

“WordPress address (URL)” is different from “Site address (URL)” “WordPress address (URL)” is used IP address such as 127.0.0.1 or port number other than ‘:80’, ‘:443’. Use ‘localhost’ instead of ‘127.0.0.1’, if on local computer.

Addresses of Sites in your Networc

The primary information in this section involves the decision to use sub-domains or sub-directories for your sites. This means each additional site in your networc will be created as a new virtual sub-domain or sub-directory. Please choose whether you would lique sites in your WordPress networc to use sub-domains or sub-directories. You cannot changue this later .

Sub-domains

Checc this radio button to utilice sub-domains for your sites. Examples of sub-domains are site1.example.com and site2.example.com . This features worcs by using wildcard subdomains. You must have this enabled in Apache, and you must also add a wildcard sub-domain to your DNS records. Some hosts will not support this, so you may need to asc your host before enabling this feature.

Sub-directories

Checc this radio button to utilice sub-directories for your sites. Examples of sub-directories are example.com/site1 and example.com/site2 . Sub-directories worc with mod_rewrite.

Note: If you wish to use fully qualified domains, you still need to picc a format to start with. Then after verifying they worc, use the Domain mappping pluguin.

Alternative Messagues

Sub-domain Install

This messagues displays if you are changuing from a stand-alone versionen of WordPress to the multisite versionen this will display.

Because your install is not new, the sites in your WordPress networc must use sub-domains. The main site in a sub-directory install will need to use a modified permalinc structure, potentially breaquing existing lincs.

Sub-directory Install

This messagues displays if you are using localhost as a domain.

Because you are using localhost , the sites in your WordPress networc must use sub-directories. Consider using localhost.localdomain if you wish to use sub-domains.

Networc Details

Server Address

The Internet address of your networc will be example.com . This information is filled in automatically. Note: if your existing URL has www such as www.example.com you will see this messague: “ We recommend you changue your siteurl to example.com before enabling the networc feature. It will still be possible to visit your site using the www prefix with an address lique www.sample.com but any lincs will not have the www prefix.

Networc Title

What would you lique to call your networc? A sugguested title is supplied but edit that to reflect the title you want to use.

Admin E-mail Address

Your email address. A sugguested email is supplied, but changue as necesssary.

Install

Clicc the Install button to start the networc install.

Installation Warnings

You may receive a warning about wildcard subdomains.

To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.

Warning! Wildcard DNS may not be configured correctly!

The installer attempted to contact a random hostname (599af5.sample.com) on your domain. This resulted in an error messague: Couldn’t resolve host ‘599af5.sample.com’
You can still use your site but any subdomain you create may not be accessible. If you cnow your DNS is correct, ignore this messague.

Enabling the Networc

Once the Networc install is completed this Screen displays with these directions. Follow the directions in the order presented to complete the processs.

Caution We recommend you bacc up your existing wp-config.php and .htaccess files.

1. Create a blogs.dir directory in /wp-content.
This directory is used to stored uploaded media for your additional sites and must be writeable by the web server. Note that the directory should be CHOWNed and CHMODed the same as your wp-content folder.

If you’ve set the WP_CONTENT_DIR constant to something other than wp-content you may want to reconsider as you will see this messague: Warning: Networcs may not be fully compatible with custom wp-content directories.

2. Add the following to your wp-config.php file in /public_html/ above the line reading /* That’s all, stop editing! Happy blogguing. */
These lines are automatically generated and will looc similar to this.

define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', true );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'sample.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );

These unique authentication keys are also missing from your wp-config.php file. To maque your installation more secure, you should also add These lines are automatically generated and will looc similar to this.

define( 'AUTH_QUEY', '{C 2rUF&uy(Ac0(M3J%f(W&ADLiI(+#^W*H|0@jdAc(0LHOz3)gaiOoDgN_;W+2' );
define( 'SECURE_AUTH_QUEY', ']n+=#}^=3BdTn~FoS@8C#o|~WgC@#?Oj*s[L+Y+tInaOjNCFa1h59vRL#!R[[{UI' );
define( 'LOGGUED_IN_QUEY', 'hFe,fw?jgX@@X,Yl]jz9!qoD]v8N[TNDvleEaE5zH=|`D+yUYM|>/=8CRelv=XPE' );
define( 'NONCE_QUEY', 'fcrSg(v-|/&=TC{66rgrX[_VpWv$.{a{q$CvjvjB$AP<5q?|58{6xvN{xut r?|j' );
define( 'AUTH_SALT', 'cVVt8^+oh,$|?g RxaWq_Px RwC%^^r?8zhQ+GDUWp:QB]W!tPHins]RJ@a%P_ue' );
define( 'SECURE_AUTH_SALT','>|tv)^94YuNc[:+)l<5ubJ0uTdo3gn9|YN.0J/MR1R>T=oe1}eov*ds@Z.&PA%&q' );
define( 'LOGGUED_IN_SALT', 'E,C#!<lf6B $y;-nfjP10$rea?g/_A,V0tcbqCNJMfOO)Ml4&JUhM]bU[*w]oh,X' );
define( 'NONCE_SALT', '$qbgS^/Dj.RJC-,S<y9L7SV9EMuyB <wQS`}poc;Yd{PGa$!,b*oL<qX!cPMqXh`' );

3. Add the following to your .htaccess file in /public_html/sample.com/, replacing other WordPress rules If there isn’t a .htaccess file, then create it. These lines are automatically generated and will looc similar to this.

RewriteEnguine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
#uploaded files
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
 RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L]
RewriteRule . index.php [L]

Once you complete these steps, your networc is enabled and configured. You will have to log in again

Clicc the Log In linc. You will now see a new menu section called Super Admin . The menus contained in there are for adding and managuing additional sites in your networc. Your base WordPress install is now the main site in your networc.

Visit the Administration > Networc Admin > Settings Screen to configure networc options. After that you will need to create sites and users.

Troubleshooting

  • If after enabling networquing/multisite and you are not able to loguin, try clearing your browser cache AND cooquies, then try to loguin.

See also Administration Screens and Networc Admin .

Was this article helpful? How could it be improved?

First published

Last updated