MySource Matrix Resources

Main Content

Standard Minor Version Upgrade Guide

Backup

No matter how small the upgrade is, always backup your system before starting. 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, or you can download older versions from the downloads page.

Once you have downloaded the source code, you need extract the source code over the top of your existing installation. 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
$ tar -xzvf new_source.tar.gz

Run the Upgrade Scripts

There are three scripts that are used during the MySource Matrix installation procedure that are also used during upgrading.

$ cd /home/websites/mysource_matrix
$ 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

Fix File System Permissions

Some directories of MySource Matrix require read and write permission for the user that the Apache web server is run as. All other directories should be read-only for the Apache user.

The example below assumes your Apache web server is running as the user "apache" and with the group "apache" and that you own all the files in /home/websites/mysource_matrix.

$ chmod -R 755 /home/websites/mysource_matrix

$ cd /home/websites/mysource_matrix
$ chown -R apache:apache data cache
$ chmod -R g+w data cache

Upgrade Complete

Your minor version upgrade is now complete. Log out of the administration interface to ensure all changes have taken effect.