Here are steps for creating multisite with shared users that work for me please add any idea if you have
you must know how to setup vhost in apache
our domain for the site will be
use phpmyadmin or use mySQL gui to rename these table
$db_url = 'mysqli://username:password@localhost/drupaldb';
$db_prefix = array(
'default' => '',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
);
$db_prefix = array(
'default' => '',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
);
after edit save the file and refresh browser to see if the site (http://example.com) is working. if it work then we are good to go.
$db_url = 'mysqli://username:password@localhost/drupaldb';
$db_prefix = array(
'default' => 'site1_',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
);
$db_prefix = array(
'default' => 'site1_',
'users' => 'shared_',
'sessions' => 'shared_',
'role' => 'shared_',
'authmap' => 'shared_',
);
and save
that it when you create user on example.com you will be able to see on site1.example.com
do the same on site 3
resources : https://groups.drupal.org/node/139429
Không có nhận xét nào:
Đăng nhận xét