Installation multisite WaW

By 1 février 2016 Non classé No Comments

Cleaning server FTP www.web-a-way.fr : Moving everything to folders _vrac + _waw-fr
_com always here = www.web-a-way.com
Export ALL from www.web-a-way.fr to www.pedrowill.com
I can save my articles / posts …

Après transfert FTP de WordPress

Parse error: syntax error, unexpected ‘{‘ in /home/webaway/www/wp-includes/functions.php on line 2788

We need to create an .htacccess with :

Then a very classical WordPress install – Just need database information

Then edit wp-config.php

Before /* That’s all, stop editing! Happy blogging. */ just add

Logout /wp-admin/ then Login

A new submenu / page appears in Tools

networksetup

 

 

 

 

 

 

Choose sub-domains if you want to use different URL’s (multilanguages / multidomains / …)

If sub-folders we will only have www.web-a-way.fr/site1/…  www.web-a-way.fr/site2/

Then change htaccess / wp-config.php as indicated

 

Then LogOut / LogIn

Be carefull and copy all in wp-config.php

define(‘WP_ALLOW_MULTISITE’, true) is different from define(‘MULTISITE’, true) …

Database connexion error if you forget this line !

Now we have a new NetWork admin Menu

network-admin

 

 

 

 

 

 

 

 

 

Go on Network Admin >> Sites and then add a new site – Example English version

english

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Then I can access to a new site at en.web-a-way.fr

If we want to access the website with www.web-a-way.com  we need a plugin WordPress MU Domain Mapping

Network Admin >> Plugin >> Add new >> WordPress MU Domain Mapping

WordPress MU Domain Mapping

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Install >> Network Activate

Follow the installation instructions :

Move sunrise.php from /www/wp-content/plugins/wordpress-mu-domain-mapping to wp-content/.

If there is a sunrise.php there already, you’ll just have to merge them as best you can.

sunrise

 

 

 

 

 

 

 

 

 

 

Edit wp-config.php and uncomment or add the SUNRISE definition line. If it does not exist please ensure it’s on the line above the last « require_once » command. define( ‘SUNRISE’, ‘on’ );

definesunrise

 

 

 

 

 

 

 

 

 

 

 

 

 

As a « super admin », visit Super Admin->Domain Mapping to create the domain mapping database table and set the server IP address or a domain to point CNAME records at.

domainmapping

 

 

 

 

 

 

 

 

 

 

Make sure the default Apache virtual host points at your WordPress MU site or WordPress 3.0 network so it will handle unknown domains correctly. On some hosts you may be required to get a dedicated IP address. A quick check: in a web broswer, type in the IP address of your install. If you are using CPanel, use the Park a Domain menu to set the mapped domain to your main installation.

Manager OVH – We have the WildCard already

ip-a-zonedns

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Find a TYPE A and look at the IP Adress.

Use this IP for the Mapping

mapingconfig

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Do not define COOKIE_DOMAIN in your wp-config.php as it conflicts with logins on your mapped domains.

Connect to OVH manager

Go to the main domain (the one associated with the host)

Click on Add domain or sub-domain

adddomain

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Link this domain to the root folder ./www

adddomain2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

adddomain3

 

 

 

 

Then go back to WordPress !

And add a new site :

newdomain

 

 

 

 

 

 

 

 

 

 

Don’t INSERT the WWW !!!!

Or http:// will not redirect correctly.

You can delete and start again if you made the mistake already.

nowww