Download old Matrix VM's


(Nic Hubbard) #1

Are the older Matrix version VM's still available? It would be great for testing if I could download back to 4.0.0.  

 

Anywhere?


(Chris Smith) #2

Hi Nic,

We only keep the latest one available on the download site (for space reasons and because we only want people to use the latest and greatest). What are you trying to test on an old vm?


(Nic Hubbard) #3

Wanting to test SOAP on 4.0.0 for compatibility with my app. I have other testing version, but I am running out of quick ways to test a version. I figured a VMs would be super quick to test on.


(Chris Smith) #4

Hi Nic,  
You could do it fairly easily in an existing vm.
 

# Get the checkout script
wget 'http://public-cvs.squiz.net/cgi-bin/viewvc.cgi/mysource_matrix/scripts/dev/checkout.sh?content-type=text/plain&view=co' -O checkout.sh

Check out matrix 4.0.0 to /var/www/matrix400

sh checkout.sh mysource_4-0-0 /var/www/matrix400

When that’s done, we need to run step1, step2 etc.

cd /var/www/matrix400
php install/step_01.php pwd

Create the db and enable plpgsql

createdb -U postgres -O matrix matrix400
createlang -U postgres plpgsql matrix400

Set up db.inc, main.inc

sed -i “s!define(‘SQ_CONF_SYSTEM_ROOT_URLS’, ‘’);!define(‘SQ_CONF_SYSTEM_ROOT_URLS’, ‘matrixdemo400.squiz.net’);!” /var/www/matrix400/data/private/conf/main.inc

cat <<EOF> /var/www/matrix400/data/private/conf/db.inc
<?php
$db_conf = array (
‘db’ => array (
‘DSN’ => ‘pgsql:dbname=matrix400’,
‘user’ => ‘matrix’,
‘password’ => ‘’,
‘type’ => ‘pgsql’,
),
‘db2’ => array (
‘DSN’ => ‘pgsql:dbname=matrix400’,
‘user’ => ‘matrix’,
‘password’ => ‘’,
‘type’ => ‘pgsql’,
),
‘db3’ => array (
‘DSN’ => ‘pgsql:dbname=matrix400’,
‘user’ => ‘matrix_secondary’,
‘password’ => ‘’,
‘type’ => ‘pgsql’,
),
‘dbcache’ => NULL,
‘dbsearch’ => NULL,
);

return $db_conf;
EOF

php install/step_02.php pwd
php install/compile_locale.php pwd
php install/step_03.php pwd
php install/compile_locale.php pwd

chown -R apache. data cache

cat <<EOF> /etc/httpd/conf/sites/matrix400.conf
<VirtualHost *:80>
ServerName matrixdemo400.squiz.net
DocumentRoot /var/www/matrix400/core/web

&lt;DirectoryMatch "^/var/www/matrix400/data/public/assets"&gt;
    php_flag engine off
&lt;/DirectoryMatch&gt;

Options -Indexes FollowSymLinks

&lt;Directory /var/www/matrix400&gt;
    Order deny,allow
    Deny from all
&lt;/Directory&gt;
&lt;DirectoryMatch "^/var/www/matrix400/(core/(web|lib)|data/public|fudge)"&gt;
    Order allow,deny
    Allow from all
&lt;/DirectoryMatch&gt;

&lt;FilesMatch "\.inc$"&gt;
    Order allow,deny
    Deny from all
&lt;/FilesMatch&gt;
&lt;LocationMatch "/(CVS|\.FFV)/"&gt;
    Order allow,deny
    Deny from all
&lt;/LocationMatch&gt;

Alias /__fudge   /var/www/matrix400/fudge
Alias /__data    /var/www/matrix400/data/public
Alias /__lib     /var/www/matrix400/core/lib
Alias /          /var/www/matrix400/core/web/index.php/

</VirtualHost>
EOF

service httpd restart

 
Then you just need a local hosts entry for 'matrixdemo400.squiz.net'


(Nic Hubbard) #5

This is great! Thank you!