Having a tough time installing MSM

Hello,


Although I've installed about 2 1/2 dozen CMSs over the past two years (I like evaluating them), I'm having a tough time installing MSM. I spent some time lurking here, and it seems that I have various issues in common with others. I didn't notice any "professional installation services" for sale on the main site, so first, I'd like to ask if they are available. If so, can someone from MSM team contact me?



Next I'd like to ask if there is an IRC channel or even a AOL chat room? I get the gist of the big issues during installation but it is the small details that are killing me, so some brief hand-holding from a veteran user in real-time would be mighty helpful.



I'm currently re-uploading everything to my server (VPS) and will start from step 0 again tomorrow. I'll post in detail what my issues are so hopefully some kind guru here can take pitty on me and lend a hand, before I go off and review the next CMS on my list (Expression Engine.)



Regards,



Carlos Camacho

Editor-in-Chief

iDevGames.com | iDevApps.com

Hi Carlos,


Squiz relies on the sale of services for income, hence we provide the highest level of expertise on all aspects of MSM and MySource Classic. You can read more detail about the services we offer:



http://www.squiz.net/services



There are a few places where you can find information on installing and running a Matrix system yourself:



Documentation: http://www.squiz.net/services

Wiki: http://www.squiz.net/services (a work in progress)



The installation can be a challenge initially, but you’ll find Matrix’s powerful asset based structure and extensive ‘out of the box’ feature set will be well worth the effort. If you would like Squiz’s assistance for implementing Matrix then you have fine control over the level of involvement you want us to take on.



Cheers,

Anthony

Well, it looks like I need to give up on MySource and move on to my next CMS evaluation. I tried installing the latest version, and got hung up again and again. I inquired about services to have it installed (twice) without an answer, and even gave an older release (for MySQL) a try since I was afraid if was my PostgreSQL setup – no good.


I feel that there is a great deal of power in this CMS, but without the ability for your everyday CMS admin to install/evaluate, adoption will always be limited to a niche. That might be the intended market, but for me (and I suppose others), moving away from small communities/niche is an important factor in picking a CMS, since so much time/resources is invested in setting them up, maintaining, training, etc.



Sorry to be negative. :frowning:

It's a shame that you weren't able to install it. If you feel like having another stab at it, which I assure you is well worthwhile, then you can post your system setup details and have someone in the forums try to assist you.

Thanks, I'll give it one last attempt.

  • PostgreSQL is the correct version
  • I have all PEAR requirements
  • PHP requirement is met
  • Here is my phpinfo:

    allow_call_time_pass_reference Off Off

    allow_url_fopen On On

    always_populate_raw_post_data Off Off

    arg_separator.input & &

    arg_separator.output & &

    asp_tags Off Off

    auto_append_file no value no value

    auto_prepend_file no value no value

    browscap no value no value

    default_charset no value no value

    default_mimetype text/html text/html

    define_syslog_variables Off Off

    disable_classes no value no value

    disable_functions no value no value

    display_errors On On

    display_startup_errors Off Off

    doc_root no value no value

    docref_ext no value no value

    docref_root no value no value

    enable_dl On On

    error_append_string no value no value

    error_log no value no value

    error_prepend_string no value no value

    error_reporting 2039 2047

    expose_php On On

    extension_dir /usr/lib/php4 /usr/lib/php4

    file_uploads On On

    gpc_order GPC GPC

    highlight.bg #FFFFFF #FFFFFF

    highlight.comment #FF8000 #FF8000

    highlight.default #0000BB #0000BB

    highlight.html #000000 #000000

    highlight.keyword #007700 #007700

    highlight.string #DD0000 #DD0000

    html_errors On On

    ignore_repeated_errors Off Off

    ignore_repeated_source Off Off

    ignore_user_abort Off Off

    implicit_flush Off Off

    include_path .:/usr/share/pear .:/usr/share/pear

    log_errors On On

    log_errors_max_len 1024 1024

    magic_quotes_gpc Off Off

    magic_quotes_runtime Off Off

    magic_quotes_sybase Off Off

    max_execution_time 30 30

    max_input_time 60 60

    memory_limit 32M 32M

    open_basedir /home/httpd/vhosts/mydomaincom/httpdocs:/tmp no value

    output_buffering no value no value

    output_handler no value no value

    post_max_size 8M 8M

    precision 14 14

    register_argc_argv On On

    register_globals On Off

    report_memleaks On On

    safe_mode On On

    safe_mode_exec_dir no value no value

    safe_mode_gid Off Off

    safe_mode_include_dir no value no value

    sendmail_from no value no value

    sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i

    serialize_precision 100 100

    short_open_tag On On

    SMTP localhost localhost

    smtp_port 25 25

    sql.safe_mode Off Off

    track_errors Off Off

    unserialize_callback_func no value no value

    upload_max_filesize 2M 2M

    upload_tmp_dir no value no value

    user_dir no value no value

    variables_order EGPCS EGPCS

    xmlrpc_error_number 0 0

    xmlrpc_errors Off Off

    y2k_compliance On On



    PostgreSQL Support enabled

    PostgreSQL(libpq) Version 7.4.2

    Multibyte character support enabled

    SSL support enabled

    Active Persistent Links 0

    Active Links 0



    I noticed that other threads recommended that display errors be set to on, I just did that.


  • PostgreSQl database was created
  • I installed PL/pgSQL language, and didn't get any error messages when installing it, though I didn't get any "success" message either. I'll assume I installed it right, right I'm not sure how to check that I did.
  • You REALLY should rename the step/procesure "System Root" to another name. It is confusing to some people, as their first thoughts are, "This script wants my server's root info!?"



    In my next post, I'll go step by step…

I forgot to mention in my last post that I set:
php_value register_globals 1

In the domain's, .htaccess file.



Also, I recall reading something about timeouts, so I also added

max_execution_time 600

max_input_time 600

to my .htaccess file.



Step 2 (screen displayed)



Setting:

/home/httpd/vhosts/mydomain.com/httpdocs/mysource



All files have correct chmod:

System Root has been set to /home/httpd/vhosts/mydomain.com/httpdocs/mysource



Step 3 (screen displayed)

PHP Modules Minumum Version

PHP 4.3.2

GD

Zlib

PSpell

PEAR Packages Minumum Version

DB 1.6.2

Archive_Tar 1.1

Mail 1.1.3

Mail_Mime 1.2.1

XML_HTMLSax 2.1.2

XML_Parser 1.0.1

Cache 1.5.3

HTTP_Client 1.0.0



Many people tend to have trouble inserting their PEAR path, I've seen advice to leave it blank. Anyways, my path is .:/usr/share/pear



I leave the PEAR path empty and proceed. As expected, I get:

PHP Modules Minumum Version

PHP 4.3.2 OK

GD OK

Zlib OK

PSpell OK

PEAR Packages Minumum Version

DB 1.6.2 Failed

Archive_Tar 1.1 Failed

Mail 1.1.3 Failed

Mail_Mime 1.2.1 Failed

XML_HTMLSax 2.1.2 Failed

XML_Parser 1.0.1 Failed

Cache 1.5.3 Failed

HTTP_Client 1.0.0 Failed

Could not find the PEAR registry. You can still proceed with install, but you may encounter some errors.

Could not find PEAR::DB

Could not find PEAR::XML_HTMLSax

Could not find PEAR::Archive_Tar

Could not find PEAR::Mail

Could not find PEAR::Mail_Mime

Could not find PEAR::XML_Parser

Could not find PEAR::Cache

Could not find PEAR::HTTP_Client



I go back to the start of this step and enter my PEAR path. I get the following messages:



Warning: processaction(): open_basedir restriction in effect. File(/usr/share/pear/PEAR/Registry.php) is not within the allowed path(s): (/home/httpd/vhosts/idevgames.com/httpdocs:/tmp) in /home/httpd/vhosts/idevgames.com/httpdocs/mysource_matrix_installer/steps/versioncheck.inc on line 298



Warning: processaction(PEAR/Registry.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/idevgames.com/httpdocs/mysource_matrix_installer/steps/versioncheck.inc on line 298



Warning: processaction(): Failed opening 'PEAR/Registry.php' for inclusion (include_path='.:/usr/share/pear') in /home/httpd/vhosts/idevgames.com/httpdocs/mysource_matrix_installer/steps/versioncheck.inc on line 298



Fatal error: Cannot instantiate non-existent class: pear_registry in /home/httpd/vhosts/idevgames.com/httpdocs/mysource_matrix_installer/steps/versioncheck.inc on line 299



Since the advice seems to forge on, without entering the PEAR path, I leave it blank.



Step 4 (screen displayed)

I enter the various info.



Step 5 (screen displayed)

I'm told to use the following aliases:

Alias "/__data" "/home/httpd/vhosts/mydomain.com/httpdocs/mysource/data/public"

Alias "/__lib" "/home/httpd/vhosts/mydomain.com/httpdocs/mysource/core/lib"

Alias "/__fudge" "/home/httpd/vhosts/mydomain.com/httpdocs/mysource/fudge"

Alias "/" "/home/httpd/vhosts/mydomain.com/httpdocs/mysource/core/web/index.php/"



Can I just add that to my .htaccess in the domain's root? I try…

I get a Internal Server 500 error. Should I add them to httpf?



Next I try "Create Symbolic Links", but I get these errors:



Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/DB.php) is not within the allowed path(s): (/home/httpd/vhosts/idevgames.com/httpdocs:/tmp) in /home/httpd/vhosts/mydomain.com/httpdocs/mysource_matrix_installer/matrixstepaction.inc on line 26



Warning: main(DB.php): failed to open stream: Operation not permitted in /home/httpd/vhosts/mydomain.com/httpdocs/mysource_matrix_installer/matrixstepaction.inc on line 26



Fatal error: main(): Failed opening required 'DB.php' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/mydomain.com/httpdocs/mysource_matrix_installer/matrixstepaction.inc on line 26



Well, I can't go to the next step, so I will stop here.



I hope I have provided ALL the info you need to better help me this time around.



Thanks,

You have open_basedir restrictions in place, which is preventing PHP from accessing the PEAR modules in /usr/share/pear – you either need to remove the open_basedir restriction completely, or add the /usr/share/pear location to the list of allowed locations.


Also, there is no requirement to turn register_globals on for MySource Matrix.



Edited to add more information:



Alias lines are only valid in the httpd.conf file for Apache (not .htaccess), which is why you get a 500 error when you try adding them. For virtual hosts, you're more likely to have success using the symbolic link and rewrite rules method (which does use the .htaccess file).

Yeah, unless you really really need it, turn open_basedir off.

>there is no requirement to turn register_globals on for MySource Matrix.
Odd, I was pretty sure one thread recommended that. Anyways, I will turn them off.



I went to my virtual hosts conf file and added:


    php_admin_value open_basedir off


Restarted Apache. Looked at my php info, and didn't notice any change for this parameter. (Still says, open_basedir /home/httpd/vhosts/mydomaincom/httpdocs:/tmp no value)

I think I understand how to add the aliases to my vhosts conf file now, rather than .htaccess, so I suppose the main thing to overcome at this step is to turn off open_basedir for just this vhost/domain.

Regards,

Ah, I just noticed that there was another reply in this thread that said,

[quote]you either need to remove the open_basedir restriction completely, or add the /usr/share/pear location to the list of allowed locations.[/quote]

If you don't mind, could you explain how to do either one. I might know CMS systems, but I'm not that experienced with server admin.



Thanks,

As you're on shared hosting, you may not be able to turn open_basedir off completely (ie. your host may block that).


Do you have a php.ini file in your vhost? If so, there is an open_basedir setting in there, that could either be disabled, or have /usr/share/pear added to it.

Actually, I am on a VPS, which means I have full root access. I just happen to be talking about vhost since I am setting up MySource for just one site (at the moment.)

[quote]Do you have a php.ini file in your vhost? If so, there is an open_basedir setting in there, that could either be disabled, or have /usr/share/pear added to it.[/quote]

Actually, that is what I tried first, but it didn't work. Unless I got the command in php.ini wrong. What is the exact line I need to have so that it is correct?



Thanks,



(Thanks for holding my hand everone)

All you should have to do is comment out the [font=“courier”]open_basedir = [/font] line in php.ini. Then, restart Apache (at least for that vhost, if possible).

LIke an inch worm, I seem to be inching my way to the end of this install process.


I beleive my open base_dir issues are behind me.



I've managed to get up to step 13. At this point, I got the error:



SQ_SYSTEM_ROOT /home/httpd/vhosts/mydomains.com/httpdocs/mysource

SQ_CONF_DB_DSN pgsql://idevgames_cms:***@unix()/idevgames_content

SQ_CONF_DB2_DSN pgsql://idevgames_cms:***@unix()/idevgames_content

SQ_CONF_SYSTEM_ROOT_URLS www.mydomains.com

SQ_INCLUDE_PATH /home/httpd/vhosts/mydomains.com/httpdocs/mysource/core/include

SQ_LIB_PATH /home/httpd/vhosts/mydomains.com/httpdocs/mysource/core/lib

SQ_DATA_PATH /home/httpd/vhosts/mydomains.com/httpdocs/mysource/data

SQ_FUDGE_PATH /home/httpd/vhosts/mydomains.com/httpdocs/mysource/fudge

SQ_PHP_CLI

SQ_CONF_PEAR_PATH /home/httpd/vhosts/mydomains.com/httpdocs/mysource/php_includes

SQ_CONF_ASSET_TREE_BASE 36

SQ_CONF_ASSET_TREE_SIZE 4

SQ_CONF_SYSTEM_NAME iDevGames

SQ_CONF_SYSTEM_OWNER admin

SQ_CONF_ROLLBACK_ENABLED 0

SQ_CONF_DEFAULT_EMAIL idevgames@gmail.com

SQ_CONF_TECH_EMAIL idevgames@gmail.com

SQ_CONF_DEBUG 0

SQ_CONF_LOG_FILE /home/httpd/vhosts/mydomains.com/httpdocs/mysource/data/private/logs/error.log



Config files were NOT successfully created. The following output was given by the config writing script



Notice: Use of undefined constant SQ_INCLUDE_PATH - assumed 'SQ_INCLUDE_PATH' in /home/httpd/vhosts/mydomains.com/httpdocs/mysource_matrix_installer/steps/createconfigs.inc on line 185



Warning: mkdir(): No such file or directory in /home/httpd/vhosts/mydomains.com/httpdocs/mysource/fudge/general/file_system.inc on line 270



Warning: Unable to create directory: / in /home/httpd/vhosts/mydomains.com/httpdocs/mysource/fudge/general/file_system.inc on line 271



Now what?



(Password removed)

That's actually a bug in the code; on that line there's defined() statement that's not referencing using a string. Try replacing line 185 of createconfigs
(it's just those quotes there).

    $SQ_INCLUDE_PATH = defined(SQ_INCLUDE_PATH) ? SQ_INCLUDE_PATH : $_SESSION['sys_root'].'/core/include';

with

    $SQ_INCLUDE_PATH = defined('SQ_INCLUDE_PATH') ? SQ_INCLUDE_PATH : $_SESSION['sys_root'].'/core/include';



Can I ask what version of matrix you're trying to install? I know there's some issues trying to install 3.6 with the current installer; this may have something to do with that.

I'm trying to install version mysource_matrix_3-4-4.tar. Since 3.6.0 RC1 is beta, I figured I would stay away from it. I'll next try your advice of editing the code.


Thanks,

You may be running into file permission issues (with Matrix not able to write out the configuration files during installation). As a test, run:

    chmod -R 777 *


In your Matrix root directory. This will allow full write access to the Web process. If the installation completes, it indicates that the original file permissions were too restrictive.

I'm still on step 13…


I edited the file and changed the code, that eliminated the error:

[quote]Notice: Use of undefined constant SQ_INCLUDE_PATH - assumed 'SQ_INCLUDE_PATH' in /home/httpd/vhosts/mydomains.com/httpdocs/mysource_matrix_installer/steps/createconfigs.inc on line 185[/quote]



I made sure that ALL files/dirs are chmod to 777, but STILL get:


[quote]Config files were NOT successfully created. The following output was given by the config writing script



Warning: mkdir(): No such file or directory in /home/httpd/vhosts/idevgames.com/httpdocs/mysource/fudge/general/file_system.inc on line 270



Warning: Unable to create directory: / in /home/httpd/vhosts/idevgames.com/httpdocs/mysource/fudge/general/file_system.inc on line 271[/quote]



Now what?

The code in file_system.inc says:

    function create_directory($path)
    {
    	$branches = explode('/', $path);
    	$trunk = '';
    	$old_umask = umask(0);
    	for ($i = 0, $count = count($branches); $i < $count; $i++) {
      $trunk .= $branches[$i].'/';
      if (file_exists($trunk)) continue;
      if (!mkdir(substr($trunk,0,-1), 0775)) {
     	 trigger_error('Unable to create directory: '.$trunk, E_USER_WARNING);
     	 clearstatcache();
     	 return false;
      }
    	}
    	umask($old_umask);
    	clearstatcache();
    	return true;
    
    }//end create_directory()

I have no idea what you problem is - but I would recommend using the CLI installer instead of the web based one if your having problems. We use the CLI one every day and it works fine.