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 5 and Version 6 of HowToMigratePhtagr


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

Migration guide to 2.2

Legend:

Unmodified
Added
Removed
Modified
  • HowToMigratePhtagr

    v5 v6  
    5151}}} 
    5252 
     53= phTagr <2.2 to phTagr 2.2 = 
     54 
     55In 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. 
     56 
     57Due this change the phTagrs folder {{{/var/www/cake/phtagr}}} becomes {{{/var/www/phtagr}}} ({{{/var/www/phtagr/phtagr}}} becomes {{{/var/www/phtagr}}} or {{{~/public_html/phtagr/app}}} becomes {{{~/public_html/phtagr}}}). Or in more abstract words phtagr root directory __was__ CakePHP's root directory and both switches their roles. 
     58 
     59The new folder structure is  
     60 
     61{{{ 
     62/phtagr        <-- phTagr root directory 
     63    /cakephp   <-- CakePHP framework 
     64    /config    <-- Configuration directory for phTagr 
     65    /users     <-- Users directory for uploaded files 
     66    /tmp       <-- Temporary directory for cached files 
     67    ... 
     68}}} 
     69 
     70== phTagr in /var/www from zip archive == 
     71 
     72In following example it is assumed that your are installed phtagr from a ZIP archive and phtagr was installed at {{{/var/www}}}. 
     73 
     74{{{ 
     75# download and extract phtagr 2.2 in your home directory 
     76cd  
     77wget http://sourceforge.net/projects/phtagr/files/latest # phtagr-2.2.zip 
     78unzip phtagr-2.2.zip 
     79cd /var/www 
     80sudo mv phtagr phtagr.old 
     81sudo mv ~/phtagr . 
     82cp phtagr.old/app/config.php phtagr.old/app/database.php phtagr/config 
     83rm -rf phtagr/users phtagr/tmp 
     84mv phtagr.old/app/tmp phtagr.old/app/users phtagr 
     85}}} 
     86 
     87Now the user files have a new location. Before they where in {{{/var/www/phtagr/app/users}}} now they are in {{{/var/www/phtagr/users}}}. These change must be updated in the database as well. The following example assumes that phTagr uses no table prefixes. Otherwise check command {{{mysql> show tables;}}} 
     88 
     89{{{ 
     90mysql -u phtagr -p phtagr 
     91mysql> update files set path=REPLACE(path, '/var/www/phtagr/app/users', '/var/www/phtagr/users'); 
     92mysql> quit; 
     93}}} 
     94 
     95Now everything should be working again. 
     96 
     97== phTagr in /var/www from fit == 
     98 
     99In following example it is assumed that your are installed phtagr via GIT and phtagr was installed at {{{/var/www}}}. 
     100 
     101{{{ 
     102cd /var/www/cake/phtagr 
     103git pull 
     104git submodules init update 
     105cd /var/www 
     106sudo mv cake/phtagr phtagr 
     107sudo rm -rf cake 
     108}}} 
     109 
     110The 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}}}. 
     111 
     112{{{ 
     113mysql -u phtagr -p phtagr 
     114mysql> update files set path=REPLACE(path, '/var/www/cake/phtagr/users', '/var/www/phtagr/users'); 
     115mysql> quit; 
     116}}} 
     117 
     118Done. 
     119 
    53120= phTagr 2.1.1 To phTagr 2.1.2 (>r581) = 
    54121