The following instructions list generic steps which can be used to upgrade from one version of QaTraq Professional to another version. The release notes supplied with a QaTraq Professional package will give any additional specific instructions (release notes can be found in the QaTraq package you download with the file name releaseNotes_x_x.txt).
If wish to upgrade an old version of the standard QaTraq application (now depreciated) to the latest QaTraq Professional version please follow the instructions below and then apply the license file by following the instructions found here.
The following upgrade instructions use an upgrade from qatraq_9_2_rc to qatraq_6_10_1 as an example.
These upgrade instructions are based around a linux installation. The same process can be followed for a windows installation (although you will have to replace commands like 'cp' with 'copy' and deal with the permissions slightly differently).
These upgrade instructions are based around a linux installation. The same process can be followed for a windows installation (although you will have to replace commands like 'cp' with 'copy' and deal with the permissions slightly differently).
- It
is recommended that you back up your existing installation of qatraq
before embarking on the upgrade. Back up both the attachments directory
and the database before you proceed! For example use the following
command to back up the database:
> mysqldump -u <user> -p <password> qatraq > qatraq_20060201.sql
- All of these commands are executed from the directory ABOVE your existing qatraq installation
- Install the new QaTraq Package
Copy qatraq_full_6_10_1.tar.gz to directory above your existing qatraq installation, so that you have the following:pwd
xxx/htdocs/
> ls -ld qatraq*
drwxrw-rw- 8 nobody nobody 5120 Dec 18 10:22 qatraq
-rw-r--r-- 1 nobody nobody 1597440 Feb 3 07:20 qatraq_full_6_10_1.tar.gzMove the existing qatraq directory to a new name> mv qatraq qatraq_oldUnpack the qatraq_full_6_10_1 release file> gunzip qatraq_full_6_10_1.tar.gz
> tar -xvf qatraq_full_6_10_1.tarAlter the permissions of the new qatraq directory> chmod 755 qatraqTemporarily alter the permissions of the following files and directories> chmod 755 qatraq/lib
> chmod 755 qatraq/includes
> chmod 755 qatraq/images
>chmod 755 qatraq/lib/db_params.inc
- Configure the Database Connection
The file specifying the database parameters (mysql user name and password) is named db_params.php. Edit this file specifying the database parameters (mysql user name and password) using a text editor:> vi qatraq/lib/db_params.php
Or alternatively just copy the db_params.php file from your old installation:
> cp qatraq_old/lib/db_params.php qatraq/lib/db_params.php
-
Upgrade the Database
Make the required database changes with the commands provided below.Upgrading from QaTraq version 6.9 to QaTraq 6.10
You must execute the following sql statements on the qatraq database:
> mysql -u<user> -p<password > qatraq < qatraq/DB/update_69_to_610.sql
Upgrading from QaTraq version 6.8 to QaTraq 6.10
You must execute the following sql statements on the qatraq database:
> mysql -u<user> -p<password> qatraq < qatraq/DB/update_68_to_610.sql - Restore any htaccess configuration files you might have
Copy any old .htaccess files in to the new installation directories> cp ./qatraq_old/.htaccess ./qatraq/.htaccess
> cp ./qatraq_old/lib/.htaccess ./qatraq/lib/.htaccess
> cp ./qatraq_old/includes/.htaccess ./qatraq/includes/.htaccess
> cp ./qatraq_old/images/.htaccess ./qatraq/images/.htaccess - Restore attachments
Copy the attachments in the old qatraq directory to the new qatraq installation> cp qatraq_old/attachements/* qatraq/attachementsOr you could create a link to the old directory if you don't want to recreate all the documents (however, if you do create a link don't forget to copy the documents when you finally delete the old qatraq installation)
Note that the directory permissions for the attachments directory have been tightened up. Directory permissions for the attachments directory should be 766. If you find these permissions prevent you from adding attachments in qatraq then try the following...
Find out which user your apache daemon runs with (e.g. wwwrun)> ps -ef | grep apachechange the ownership of the attachments directory to the same as the httpd daemon user> chown wwrun:www qatraq/attachementsReturn the following files and directories to their default permissions
(and yes there is a spelling mistake in the attachments directory name)> chmod 555 qatraq/lib
> chmod 555 qatraq/includes
> chmod 555 qatraq/images
> chmod 555 qatraq/lib/db.inc
or
> chmod 755 qatraq/lib/db.php
or
> chmod 755 qatraq/lib/db_qatraq.php - Restore Reports
If you have created your own reports copy the reports include files in the old qatraq directory to the new qatraq installation> cp qatraq_old/reports/<rep_name>.inc qatraq/reportsOr you could create a link to the old directory if you don't want to recreate all the documents (however, if you do create a link don't forget to copy the reports when you finally delete the old qatraq installation)
- Restore License File
You will need to copy the old license file across to the new install of QaTraqOr if you wish to request and install a new license file you can apply the license file by following the instructions found here.> cp qatraq_old/licence/* qatraq/licence
- Remove the old QaTraq Installation
Either retain the old qatraq installation as a back or delete the old QaTraq installation.BE CAREFUL WITH THIS LAST STEP. YOU MAY WANT TO RUN WITH YOUR NEW QATRAQ INSTALLATION FOR A WHILE BEFORE YOU DELETE THE OLD ONE. Also, if you have created a link to your attachments in the old installation don't forget to copy these attachments over first!
> rm -R qatraq_old







