Another 3.6.0 Login problem

My last topic on this forum was about installing MSM onto FreeBSD and running into problems right at the end. I now have it working or I believe I do…


The system is FreeBSD 5.4 running

apache 2.0.55

php 4.3.11

postgres 8.0.4



I installed MSM 3.6.0 via the CLI instructions found: http://forums.matrix.squiz.net/index.php?showtopic=21 and didn’t notice any errors being outputted. The procedure I took was:


    php install/step_01.php .
    vi data/private/conf/main.inc
    php install/step_02.php .
    php install/compile_locale.php . --locale=en_AU
    php install/step_03.php .
    php install/compile_locale.php . --locale=en_AU


I then edited my apache conf to include the aliases and restarted apache
Alias "/msm/__data" "/www/msm/data/public"
Alias "/msm/__lib" "/www/msm/core/lib"
Alias "/msm/__fudge" "/www/msm/fudge"
Alias "/msm" "/www/msm/core/web/index.php"

I then pointed my browser to http://forums.matrix.squiz.net/index.php?showtopic=21 and received the following error message:
[quote]MySource Notice
URL "localhost/msm" not found [SYS0218][/quote]

I thought that maybe this was because there wasn't a default site to serve so I then tried http://forums.matrix.squiz.net/index.php?showtopic=21 and received the login screen with all images and colours. I then tried username root and password root but keep receiving:

[quote]Login Key incorrect[/quote]

I looked at a similar topic found http://forums.matrix.squiz.net/index.php?showtopic=21 but I'm running apache on the normal port 80. I added www.localhost.com pointing to 127.0.0.1 to my hosts file anyway and gave that a try but wasn't successful.

Have I missed anything?

That's all correct. Is www.localhost.com is in your main.inc file as a System Root URL? If its not, Matrix will prevent logins.

define('SQ_CONF_SYSTEM_ROOT_URLS', 'localhost/msm');


is what is in /www/msm/data/private/conf/main.inc

I only added www.localhost.com to the /etc/hosts file after reading the other topic on this forum. Do you need the whole main.inc?

[quote]define(‘SQ_CONF_SYSTEM_ROOT_URLS’, ‘localhost/msm’);
[right][post=“7366”]<{POST_SNAPBACK}>[/post][/right][/quote]



Needs to be:


    define('SQ_CONF_SYSTEM_ROOT_URLS', 'www.localhost.com/msm');


This is so that Matrix can clearly identify the security context.

[quote]Needs to be:

    define('SQ_CONF_SYSTEM_ROOT_URLS', 'www.localhost.com/msm');
[/quote]

Excellent, that now works. I wasn't aware that MSM now requires a . in the domain. It wasn't documented anywhere. I guess it's not everyday people start installing into their local computer for testing.

Thanks Avi. How's the Melb atmosphere :)

It never used to, until we introduced Site Networks. The ability to maintain a login across different domains (which is possible with Site Networks) requires a FQDN. I usually use matrix.local myself (esentially, I setup a URL with a completely bogus TLD).

[quote]Thanks Avi.  How's the Melb atmosphere :)
[right][post="7369"]<{POST_SNAPBACK}>[/post][/right][/quote]

Its just peachy, thanks for asking. :)