Project-Id-Version: Trac 0.12
Report-Msgid-Bugs-To: trac-dev@googlegroups.com
POT-Creation-Date: 2008-01-30 09:20+0100
PO-Revision-Date: 2010-07-19 23:05+0200
Last-Translator: Jeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Language-Team: en_US <trac-dev@googlegroups.com>
Plural-Forms: nplurals=2; plural=(n != 1)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Generated-By: Babel 0.9.6

Warning: Can't synchronize with repository "(default)" (Unsupported version control system "git": Can't find an appropriate component, maybe the corresponding plugin was not enabled? ). Look in the Trac log for more information.

Changes between Version 6 and Version 7 of HowToMigratePhtagr


Ignore:
Timestamp:
12/30/11 17:17:00 (7 years ago)
Author:
sebastian
Comment:

Improve migration guilde for 2.2

Legend:

Unmodified
Added
Removed
Modified
  • HowToMigratePhtagr

    v6 v7  
    5151}}} 
    5252 
    53 = phTagr <2.2 to phTagr 2.2 = 
     53= phTagr prior 2.2 = 
    5454 
    5555In phTagr 2.2 the folder structure changed. phTagr is no longer a subfolder of the PHP framework CakePHP. Since phTagr 2.2 CakePHP is a subfolder of phTagr. The change has the advantage that CakePHP can be used as GIT submodule and simplifies the folders which where confusing in the past. Now there is only {{{/var/www/phtagr}}} as root directory. 
     
    6262/phtagr        <-- phTagr root directory 
    6363    /cakephp   <-- CakePHP framework 
     64    /webroot   <-- Webroot  
    6465    /config    <-- Configuration directory for phTagr 
    6566    /users     <-- Users directory for uploaded files 
     
    6768    ... 
    6869}}} 
     70 
     71'''Note''' Before you migrate, please ensure that you have done your backups, especially your database if the database migration fails unpredictable. 
    6972 
    7073== phTagr in /var/www from zip archive == 
     
    9396}}} 
    9497 
    95 Now everything should be working again. 
     98Now everything should be working again. If not check your web server configuration if the document root points to the correct directory. If the document root points to {{{/var/www/phtagr/app/webroot}}} it should not point to {{{/var/www/phtagr/webroot}}}. 
    9699 
    97 == phTagr in /var/www from fit == 
     100== phTagr in /var/www from git == 
    98101 
    99 In following example it is assumed that your are installed phtagr via GIT and phtagr was installed at {{{/var/www}}}. 
     102In following example assumes that phtagr is installed at {{{/var/www}}} via git. 
    100103 
    101104{{{ 
    102105cd /var/www/cake/phtagr 
     106git stash 
    103107git pull 
    104 git submodules init update 
     108git submodule init 
     109git submodule update 
     110git stash pop 
    105111cd /var/www 
    106112sudo mv cake/phtagr phtagr 
    107 sudo rm -rf cake 
    108113}}} 
    109114 
    110 The user files need to be migrated in the database. Before they where located in {{{/var/www/cake/phtagr}}} now they are in {{{/var/www/phtagr/users}}}. 
     115The user files need to be migrated in the database. Before they where located in {{{/var/www/cake/phtagr}}} now they are in {{{/var/www/phtagr/users}}}. Following example assumes that the table prefix (written in {{{config/database.php}}}) is set to {{{pt_}}}. 
    111116 
    112117{{{ 
    113118mysql -u phtagr -p phtagr 
    114 mysql> update files set path=REPLACE(path, '/var/www/cake/phtagr/users', '/var/www/phtagr/users'); 
     119mysql> update pt_files set pt_path=REPLACE(path, '/var/www/cake/phtagr/users', '/var/www/phtagr/users'); 
    115120mysql> quit; 
    116121}}} 
    117122 
    118 Done. 
     123Done. If it is not working check your web server configuration if the document root points to the correct directory. If the document root points to {{{/var/www/cake/phtagr/webroot}}} it should not point to {{{/var/www/phtagr/webroot}}}. 
     124 
     125If everything works as expected you can delete the old directory {{{/var/www/cake}}}. 
     126 
     127== phTagr in user directory == 
     128 
     129The migration works similar to the above examples. Maybe you need to adapt the {{{RewriteBase}}} in {{{.htaccess}}} files respectively. Also migrate the database entries for the files. 
    119130 
    120131= phTagr 2.1.1 To phTagr 2.1.2 (>r581) =