Question: When using the Multiple Site Manager (MSM), when attempting to log in, I enter my username and password and am returned back to the login page. If I log in from one of my other MSM sites, I can log in. What causes this?
Answer: This problem is caused by inaccurate paths somewhere in your CP General settings. Once you set them back to your original domain, you’ll be able to login successfully.
Category:Troubleshooting Category:Multiple Site Manager
If you are having trouble logging into your second(+) sites CP you might need to add your site’s url to the $site_url variable in the path.php as mentioned here.
——————-
Some More Tips:
If you are running MSM, we found it worked best to set up a separate masked login on each separate site by adding a separate admin.php file (copy from /system/utilities) at the root of each site. Then configure each respective path.php file as follows:
<?php
//———————————————————————————
// DO NOT ALTER THIS FILE UNLESS YOU HAVE A REASON TO
//———————————————————————————
// Path to the directory containing your backend files
$system_path = “./system/”; //use the actual path to your “system” directory
//———————————————————————————
// MANUALLY CONFIGURABLE VARIABLES
// See user guide for more information
//———————————————————————————
$template_group = “”;
$template = “”;
$site_url = “http://www.nameofsite.com/”; //directory where index.php file lives
$site_index = “index.php”;
$site_name = “site_short_name”; //the short name of the site as configured in MSM in CP
$site_404 = “”;
$cp_url = “http://www.nameofsite/admin.php”; //directory where you put the admin.php file - should be same directory as the index.php and path.php files.
$global_vars = array(); // This array must be associative
?>
————————
I also suggest you configure your Admin > System Preferences > Security & Session preferences as follows:
- Control Panel Session Type: Cookies & Session ID (this will make it easier to login to each separate site at the same time as a SuperAdmin)
- User Session Type: Cookies & Session ID
- Allow multiple logins from a single account? Yes
————————-
I also suggest configuring your Admin > System Preferences > Cookie Settings as follows:
- Cookie Domain: leave blank
If you can’t get the field to stay blank, then go into your System/config.php file and remove the domain name manually from the $conf[‘cookie_domain’] = “”; parameter.
————————-
Also in the System/config.php file you should add the following parameter:
- $conf[‘multi_login_sites’] = “http://www.mainsite.com|http://www.secondsite.com”;
Add another | and site URL for each additional site in your MSM setup.
————————-
Also in the System/config.php file you should adjust the $cp_url to show the masked login you set up as above in the main site root.
- $conf[‘cp_url’] = “http://www.mainsite.com/admin.php”;
If that creates an issue, just leave it blank, but be sure you have populated that same parameter in the path.php file at the root of the site.
————————
And last, but surely not least, go to your browser and delete any “exp_” cookies associated with any of your MSM site domains.
