MySource Matrix Resources

Main Content

Upgrading MySource Matrix from v3.8.4 to v3.8.5

Introduction

This guide will help you upgrade an existing MySource Matrix version 3.8.4 installation to version 3.8.5.

This upgrade requires you to have access to:

  • update the MySource Matrix source code
  • upgrade MySource Matrix configuration files

This guide assumes that your MySource Matrix installation is located at /home/websites/mysource_matrix. Please change any commands to the appropriate location if your installation is located elsewhere.

If your system contains the commercial or premium modules, please contact Squiz for updated versions of the modules before proceeding with the upgrade.

The modules must be upgraded at the same time as the core system.

Backup

Before starting any upgrade, always backup your MySource Matrix installation. See the MySource Matrix backup management guide for information on how to backup your MySource Matrix system.

Getting the New Source Code

The first thing you need to do is update the MySource Matrix source code. You can find out how to download the latest stable version of MySource Matrix on the installation page.

Once you have downloaded the source code, you need replace the existing code with the newer version. This will not reset any configuration options or remove any content from your system.

These steps assume MySource Matrix is installed at /home/websites/mysource_matrix and that a tar.gz archive with the new source code exists within /home/websites
$ cd /home/websites
$ mv mysource_matrix mysource_matrix_3-8-4
$ tar -xzvf new_source.tar.gz
$ cd mysource_matrix
$ cp -r /home/websites/mysource_matrix_3-8-4/data .

Set Database Cache DSN

Version 3.8.5 of MySource Matrix contains a new DSN for connecting to a dedicated cache database. Unless you really know what you are doing and have a server replicated environment, you will not have to worry about this new setting. You just need to set it correctly based on your current database connection settings.

First, run the step_01.php installation script to get the new DSN.

$ cd /home/websites/mysource_matrix
$ php install/step_01.php /home/websites/mysource_matrix

Now, edit the main.inc configuration file.

$ vi data/private/conf/main.inc
Make the value of the SQ_CONF_DBCACHE_DSN variable that same as SQ_CONF_DB2_DSN. For example, if your main.inc file contained the following content:
define('SQ_CONF_DB_DSN',      'pgsql://developers@db/matrix');
define('SQ_CONF_DB2_DSN',     'pgsql://developers@db/matrix');
define('SQ_CONF_DB3_DSN',     'pgsql://developers_secondary@db/matrix');
define('SQ_CONF_DBCACHE_DSN', '');
Update it to look like this:
define('SQ_CONF_DB_DSN',      'pgsql://developers@db/matrix');
define('SQ_CONF_DB2_DSN',     'pgsql://developers@db/matrix');
define('SQ_CONF_DB3_DSN',     'pgsql://developers_secondary@db/matrix');
define('SQ_CONF_DBCACHE_DSN', 'pgsql://developers@db/matrix');

Full System Upgrade

To complete the upgrade, the system's installation scripts should be run to ensure the asset types and language translations are up to date.

$ php install/step_02.php /home/websites/mysource_matrix
$ php install/step_03.php /home/websites/mysource_matrix
$ php install/compile_locale.php /home/websites/mysource_matrix

Upgrade Complete

Your upgrade to MySource Matrix version 3.8.5 should now be complete.