CLI Install


(Mike) #21

Thanks for everyones help,


I re-created the matrix directory and started again and it all worked. Finally got to the end of step three without errors!



However, I have set it up on a virtual host and am wondering if the CLI install automatically sets up the aliases that I require or do I do them myself?



I assume I have to put them into the .htaccess file in the root directory which I did do, but am now just getting a 500 internal server error?



The aliase I placed in the .htaccess file are as follows:

Alias "/__data" "/home/lostforw/public_html/matrix/data/public"

Alias "/__lib" "/home/lostforw/public_html/matrix/core/lib"

Alias "/__fudge" "/home/lostforw/public_html/matrix/fudge"

Alias "/" "/home/lostforw/public_html/matrix/core/web/index.php/"



Is there anything I have done wrong here or anything else I need to do?


(Avi Miller) #22

Check your Apache error log to see what's generating the 500 Server Error. It may be a PHP permissions problem on the Virtual Host.


(Mike) #23

The error message says:


[Tue Jun 21 17:18:27 2005] [alert] [client 210.8.228.69] /home/lostforw/public_html/.htaccess: Alias not allowed here



What do I need to do?


(Luke Wright) #24

What the error is saying is precisely the problem - the Alias config line isn't allowed in .htaccess files; you actually need to have access to the relevant Apache config files to be able to use that option.


(Mike) #25

Just so I understand is that normally the case, or just a problem with my host?



Should I normally be able to add these to the .htaccess file?

Alternatively is there another way I can set up this system without using the aliases?


(Luke Wright) #26

[quote]Just so I understand is that normally the case, or just a problem with my host?


Should I normally be able to add these to the .htaccess file?[/quote]



It's normally the case; it's an Apache configuration limitation - Alias lines are only allowed in the main and virtual host config files, and these generally aren't made available by hosts to end users, for obvious security reasons.


(Mike) #27

[quote][quote] Just so I understand is that normally the case, or just a problem with my host?


Should I normally be able to add these to the .htaccess file?[/quote]



It's normally the case; it's an Apache configuration limitation - Alias lines are only allowed in the main and virtual host config files, and these generally aren't made available by hosts to end users, for obvious security reasons. [/quote]

So is there any other way for me to set this up on a virtual hosted server? I do have root access (obviously with limitations) and the usual cpanel!



Is there any other place I can configure these aliases?


(Avi Miller) #28

You will need to use Symbolic Links and Rewrite rules instead. The Web-based installer can create these for you. I'll also prod Marcus to come and explain how to create these manually.


(Marcus Nyeholt) #29

In a directory somewhere in your document root (it can be the document root), create a .htaccess file and drop in the following. Note that you should change the RewriteBase to reflect the url you will use to access matrix (in this example, I access the site through www.somedomain.com/matrix)

[quote]Options +FollowSymLinks

RewriteEngine On



#Set the base uri

RewriteBase /matrix

#Now do some rules for redirection

#if index, don't redirect (again)

RewriteRule index.php - [L]

#don't redirect double-underscore dirs

RewriteRule __lib    - [L]

RewriteRule __data      - [L]

RewriteRule __fudge  - [L]

#redirect everything else to index.php

RewriteRule (.*)        index.php/$1 [L][/quote]



Next, create some symlinks in that same directory that link off to the location of your matrix installation.



ln -s /path/to/matrix/data/public __data

ln -s /path/to/matrix/fudge __fudge

ln -s /path/to/matrix/core/lib __lib

ln -s /path/to/matrix/core/web/index.php index.php


(Luke Wright) #30

Important information has been added for those installing the new 3.6.0 RC1 version of MySource Matrix (and later). Localisation features added in the new versions have required extra steps to the CLI installation. Please visit the first post in this thread for the revised installation procedure.


For those using the newly released 3.4.4 stable release, there is no change in the installation procedure compared to previous 3.4.x versions.


(Nathan Cram) #31

Hi, I'm experiencing difficulties with ‘step_02.php’ of the installation.


When the script is run the following error appears listing basically everything (below is a small snippet of the error message):


    Unknown Error Type - 2048
    var: Deprecated. Please use the public/private/protected modifiers
    
    Notice: Undefined index: SQ_SYSTEM in /home/matrix/core/include/mysource.inc on line 116
    
    Notice: Trying to get property of non-object in  /home/matrix/core/include/mysource.inc on line 116
    
    ...
    
    Unknown Error Type - 2048
    is_a(): Deprecated. Please use the instanceof operator


Any suggestions assistance would be greatly appreciated :)

(Greg Sherwood) #32

I think you're using PHP5. MySource Matrix only supports PHP4.


(Unit12) #33

Hi All,


I've run into a problem at step_03.php – the install just hangs. The php process has been running for about 10 minutes, seemingly in an infinite loop (one of my two processors is fully used).



Here's the output I've gotten thus far:



mail:/Groups/unit12/Sites/matrix.unit12.net/mysource_matrix_3-6-2 admin$ php install/step_03.php .

----------------------------------

<?php

define('SQ_CONF_DB_DSN', 'pgsql://matrix:matr1x@unix()/matrix');

define('SQ_CONF_DB2_DSN', 'pgsql://matrix:matr1x@unix()/matrix');

define('SQ_CONF_PEAR_PATH', SQ_SYSTEM_ROOT.'/php_includes');

$inc_dir = ini_get('include_path');

$inc_dir = (substr($inc_dir, 0, 2) == '.:') ? '.:'.SQ_CONF_PEAR_PATH.':'.substr($inc_dir, 2) : SQ_CONF_PEAR_PATH.':'.$inc_dir;

ini_set('include_path', $inc_dir);



define('SQ_CONF_BACKEND_SUFFIX', '_admin');

define('SQ_CONF_LIMBO_SUFFIX', '_edit');

define('SQ_CONF_NOCACHE_SUFFIX', '_nocache');

define('SQ_CONF_ASSET_TREE_BASE', 64);

define('SQ_CONF_ASSET_TREE_SIZE', 4);

define('SQ_CONF_ASSET_CACHE_SIZE_WEB', -1);

define('SQ_CONF_ASSET_CACHE_SIZE_CLI', -1);

define('SQ_CONF_ROLLBACK_ENABLED', '1');

define('SQ_CONF_DEBUG', 0);

define('SQ_CONF_SYSTEM_NAME', 'The System');

define('SQ_CONF_SYSTEM_OWNER', '');

define('SQ_CONF_SYSTEM_ROOT_URLS', 'matrix.unit12.net');

define('SQ_CONF_DEFAULT_EMAIL', 'matrix-team@squiz.net');

define('SQ_CONF_TECH_EMAIL', 'matrix-team@squiz.net');

define('SQ_CONF_MAX_LOGIN_ATTEMPTS', 3);

define('SQ_CONF_REFRESH_INTERVAL', 120);

define('SQ_CONF_LOCK_LENGTH', 600);

define('SQ_CONF_LOG_FILE', '/Groups/unit12/Sites/matrix.unit12.net/logs/matrix.log');

define('SQ_CONF_LOG_ERRORS', true);

ini_set('log_errors', '1');

define('SQ_CONF_ERRORS_HIDE_FRONTEND', false);

define('SQ_CONF_DEFAULT_FRONTEND_LANGUAGE', 'en');

define('SQ_CONF_DEFAULT_BACKEND_LOCALE', 'en_AU');

define('SQ_CONF_DEFAULT_CHARACTER_SET', 'iso-8859-1');

define('SQ_CONF_ALLOW_IP_CHANGE', '0');

define('SQ_CONF_ALLOW_HTTP_LOGIN', '0');

define('SQ_CONF_COMMIT_BUTTON_TEXT', 'Commit');

define('SQ_CONF_LOG_EXTENSION', '.log');

define('SQ_CONF_LOG_FILE_SYSTEM', 'system');

define('SQ_CONF_LOG_FILE_ERROR', 'error');

ini_set('error_log', SQ_LOG_PATH.'/'.SQ_CONF_LOG_FILE_ERROR.SQ_CONF_LOG_EXTENSION);

define('SQ_CONF_SESSION_GC_MAXLIFETIME', 604800);

ini_set('session.gc_maxlifetime', 604800);

define('SQ_CONF_EDITING_TIME', 3600);

?>

----------------------------------

----------------------------------

<?php

define('SQ_TOOL_HTML_TIDY_PATH', '/usr/bin/tidy');

define('SQ_TOOL_HTML_TIDY_ENABLED', false);

define('SQ_TOOL_PDFTOHTML_PATH', '/usr/bin/pdftohtml');

define('SQ_TOOL_PDFTOHTML_ENABLED', false);

define('SQ_TOOL_ANTIWORD_PATH', '/usr/bin/antiword');

define('SQ_TOOL_ANTIWORD_MAPPING_PATH', '/usr/share/antiword');

define('SQ_TOOL_ANTIWORD_ENABLED', false);

?>

----------------------------------

----------------------------------

<?php

define('SQ_SERVER_SYSTEM_ROOT', '');

define('SQ_SERVER_SYSTEMID', '');

define('SQ_SERVER_DOMAIN', '');

define('SQ_SERVER_PORT', 0);

?>

----------------------------------

----------------------------------

<?php

define('SQ_HIPO_USE_SERVER', false);

define('SQ_HIPO_TOTAL_THRESHOLD', 80);

define('SQ_HIPO_ACQUIRE_LOCK_THRESHOLD', 1);

define('SQ_DUPE_ASSET_THRESHOLD', 1);

define('SQ_HIPO_METADATA_THRESHOLD', 1);

define('SQ_HIPO_PERMISSIONS_THRESHOLD', 1);

define('SQ_HIPO_EDIT_STATUS_THRESHOLD', 1);

define('SQ_HIPO_WORKFLOW_SCHEMAS_THRESHOLD', 1);

define('SQ_HIPO_PURGE_TRASH_THRESHOLD', 1);

define('SQ_HIPO_REGENERATE_METADATA_THRESHOLD', 1);

define('SQ_HIPO_TRIGGER_BATCH_EVENTS_THRESHOLD', 0);

define('SQ_HIPO_LOOKUPS_THRESHOLD', 1);

?>

----------------------------------

----------------------------------

<?php

define('SQ_MS_LOG_TO_FILE_WHITE_LIST', '');

define('SQ_MS_LOG_TO_FILE_BLACK_LIST', 'asset.attributes

asset.workflow.invitation

asset.workflow.announce');

define('SQ_MS_LOG_TO_DB_WHITE_LIST', '
');

define('SQ_MS_LOG_TO_DB_BLACK_LIST', 'asset.attributes.fulllog

asset.workflow.invitation

asset.workflow.announce

install.');

define('SQ_MS_SEND_MAIL_WHITE_LIST', 'asset.locking.forced

config.


hipo.

inbox.


asset.status.notify

asset.workflow.invitation

asset.workflow.announce

asset.workflow.stale');

define('SQ_MS_SEND_MAIL_BLACK_LIST', '');

?>

----------------------------------

----------------------------------

<?php

define('SQ_PASSWD_RULE_LENGTH', 6);

define('SQ_PASSWD_RULE_DISALLOW_USER_INFO', 1);

define('SQ_PASSWD_RULE_NUM_CAPS', 0);

define('SQ_PASSWD_RULE_NUM_LOWER', 0);

define('SQ_PASSWD_RULE_NUM_INT', 0);

define('SQ_PASSWD_RULE_NUM_PUNC', 0);

define('SQ_PASSWD_RULE_NUM_SPC', 0);

define('SQ_PASSWD_RULE_DISALLOWED', -1);

define('SQ_PASSWD_RULE_DISABLED', 0);

?>

----------------------------------



It looks like it's stuck somewhere inside the transaction:





mail:/Groups/unit12/Sites/matrix.unit12.net/mysource_matrix_3-6-2 admin$ ps auxww | grep ^postgres

postgres 845 0.0 0.2 39828 2128 ?? S Thu01PM 0:00.62 /opt/local/lib/pgsql8/bin/postmaster -D /opt/local/var/db/pgsql8/defaultdb

postgres 847 0.0 0.3 37652 2840 ?? S Thu01PM 0:51.02 postgres: writer process

postgres 848 0.0 0.0 34792 236 ?? S Thu01PM 0:01.20 postgres: stats buffer process

postgres 849 0.0 0.0 33844 364 ?? S Thu01PM 0:00.03 postgres: stats collector process

postgres 29718 0.0 0.3 38148 2656 ?? S 9:44AM 0:00.01 postgres: matrix matrix [local] idle in transaction





Here's some info about my setup:


  • MacOS X 10.4.4
  • Using DarwinPorts, Apache 2.2/PHP 4.4.1
  • Postgres 8.1.2



    And my PEAR modules:



    Installed packages:

    ===================

    Package Version State

    Archive_Tar 1.1 stable

    Console_Getopt 1.2 stable

    DB 1.7.6 stable

    HTML_Template_IT 1.1 stable

    Mail_Mime 1.3.1 stable

    Net_UserAgent_Detect 2.0.1 stable

    PEAR 1.3.6 stable

    XML_HTMLSax 2.1.2 stable

    XML_Parser 1.2.7 stable

    XML_RPC 1.4.0 stable



    This is the second time I've done the install; the first ended the same way and I recreated everything just to be sure.



    Any ideas?



    thanks!

    christian.

(Crooney) #34

I am also having problems at step_2 (v. 3.6.2, postgres). I get:

    +------------------------------------------------+
    | MySource Error                                 |
    |------------------------------------------------|
    | File : [SYSTEM_ROOT]/core/include/mysource.inc |
    | Line : 1587                                    |
    |------------------------------------------------|
    | DB Error: extension not found                  |
    +------------------------------------------------+


I am using a clean matrix directory and am doing this as root. I opted for the CLI install because the web install kept failing at step 13 with an error about the DSN not being correct, even though the installer got past step 10 with no errors and the php session file showed a correct DSN (I went back and put in a bad database name just to test step 10, and it failed properly).

I have all the required php (except aspell) and PEAR modules installed. Any ideas what kind of extension it's talking about?

Thanks.
CJR

(Avi Miller) #35

The web-based installer cannot install v3.6.2. Your only option is the CLI install for v3.6.2.


If you view php -i on your CLI binary, do you have a pgsql section?


(Crooney) #36

[quote]The web-based installer cannot install v3.6.2. Your only option is the CLI install for v3.6.2.


If you view php -i on your CLI binary, do you have a pgsql section?

[right][post=“8668”]<{POST_SNAPBACK}>[/post][/right][/quote]





Hmmm…the report I see there (in CLI) is not the same as what I get from a browser-based call to phpinfo(). In the browser, there is a pgsql section, but not in the CLI version of the report. Actually, there are several sections missing in the CLI view of things that are in the browser report.


(Avi Miller) #37

[quote]Hmmm…the report I see there (in CLI) is not the same as what I get from a browser-based call to phpinfo(). In the browser, there is a pgsql section, but not in the CLI version of the report. Actually, there are several sections missing in the CLI view of things that are in the browser report.
[right][post=“8669”]<{POST_SNAPBACK}>[/post][/right][/quote]



And this is what’s causing your problems, no doubt. :slight_smile: You may need to recompile your CLI binary to include PostgreSQL support. It also needs access to all the PEAR modules required by the Apache module.


(Crooney) #38

[quote]And this is what’s causing your problems, no doubt. :slight_smile: You may need to recompile your CLI binary to include PostgreSQL support. It also needs access to all the PEAR modules required by the Apache module.
[right][post=“8670”]<{POST_SNAPBACK}>[/post][/right][/quote]



Right. Although I don’t understand why the apache module and the CLI aren’t seeing the same things…but that’s OT for this forum.



Thanks again.

CJR


(Filminfool) #39

Fatal error: require_once(): Failed opening required 'DB.php' (include_path='.:/usr/home/terramotorsports/www/php_includes:') in /usr/home/terramotorsports/www/core/include/mysource.inc on line 26




I recieve that error on step 2 any ideas ?


(Avi Miller) #40

You don't have the PEAR DB module installed (or PHP can't find it).