Hi Shane
Many thanks for your help. Below is my current setup. I hope it is clear.
Please note that the site folders are in different locations - the paths are shown below. The username1, which is the domain manager for domain1, is not the base admin user for the VPS - that is username 2, which is the domain manager for domain2.
The paths to system from the index and admin files in domain2 look wrong. However I have tried all sorts of paths including ‘../system’, ‘/home/username1/www/domain1.com/system’ and variations of relative and absolute paths - always no result. And bear in mind that before I tried the upgrade to 2.5.2 from 2.1.3, I had no index or admin file whatsoever in the domain2 folder - but MSM worked fine and I had no CP access problem. I can’t explain it, but it’s true.
Site 1 absolute path - /home/username1/www/domain1url
admin.php
$system_path = './system';
Multiple Site Manager
// $assign_to_config['site_name'] = 'domain2_short_name';
// $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
index.php
$system_path = './system';
Multiple Site Manager
// $assign_to_config['site_name'] = 'domain2_short_name';
// $assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
// $assign_to_config['site_url'] = 'http://domain2.com';
_________________________________
Site 2 absolute path - /home/username2/www/domain2url
admin.php
$system_path = './system';
Multiple Site Manager
$assign_to_config['site_name'] = 'domain2_short_name';
$assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
index.php
$system_path = './system';
Multiple Site Manager
$assign_to_config['site_name'] = 'domain2_short_name';
$assign_to_config['cp_url'] = 'http://domain2.com/admin.php';
$assign_to_config['site_url'] = 'http://domain2.com';
_________________________________
system/expressionengine/config/config.php
$config['app_version'] = "252";
$config['install_lock'] = '1';
$config['license_number'] = "";
$config['debug'] = "1";
$config['cp_url'] = "http://www.domain1/admin.php";
$config['doc_url'] = "http://ellislab.com/expressionengine/user-guide/";
$config['is_system_on'] = "y";
$config['manual_templates_move'] = 'y';
$config['cookie_prefix'] = "";
$config['allow_extensions'] = "y";
$config['multiple_sites_enabled'] = "y";
$config['sc_paypal_account'] = '';
$config['sc_encrypt_buttons'] = 'n';
$config['sc_certificate_id'] = '';
$config['sc_public_certificate'] = '';
$config['sc_private_key'] = '';
$config['sc_paypal_certificate'] = '';
$config['sc_temp_path'] = '/tmp';
$config['cookie_domain'] = '';
$config['cookie_path'] = '';
$config['cookie_prefix'] = '';
$config['forum_is_installed'] = "y";
As mentioned before, on the above setup, when I point the browser at domain1/system, it tries briefly to load
/index.php?S=0&D=cp&C=homepage
before instantly switching to
/index.php?S=0&D=cp&C=login
- and a blank screen. But the sites are visible and working fine - it’s just a CP access problem.
I would be very grateful for any further thoughts you or anyone else might have. I am sure it will be, as usual, a simple problem of something I have overlooked - but I can’t see it right now.
Many thanks.