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.
Last modified 8 years ago Last modified on 10/31/10 07:19:37

This HowTo describes the migration from a release installation of phTagr to the SVN version. It assumes that you installed phTagr in /var/www/phtagr and that you know the shell well :-) So if you have installed phtagr in your home directory ~/public_html adopt the migration steps below to HowToInstallInUserDir.

Note: The most important change is that the phtagr (as cakePHP application) was in /var/www/phtagr/app and is now located /var/www/phtagr/phtagr in the svn installation!

Preparation

We move the old version to a temporary directory and download the SVN version of CakePHP and phTagr.

$ cd
$ wget http://github.com/cakephp/cakephp/zipball/1.3.2
$ sudo unzip cakephp-cakephp-1.3*.zip
$ cd /var/www
$ sudo mv phtagr phtagr-old
$ sudo mv ~/cakephp-cakephp-[hash code] phtagr
$ cd phtagr
$ svn co https://svn.phtagr.org/phtagr/trunk phtagr

Now we have the SVN version in /var/www/phtagr and the old version in /var/www/phtagr-old.

Migration

We have to copy two configuration files

$ cd /var/www/phtagr
$ cp ../phtagr-old/app/config/core.php phtagr/config
$ cp ../phtagr-old/app/config/database.php phtagr/config

And we have to move files of the users to the svn version:

$ cd /var/www/phtagr
$ sudo mv ../phtagr-old/app/users/* phtagr/users

Optional you can copy the log files, too

$ cd /var/www/phtagr
$ sudo cp ../phtagr-old/app/tmp/logs/* phtagr/tmp/logs

At the end we addapt the rediction file in /var/www/phtagr/.htaccess to

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^$   phtagr/webroot/   [L]
    RewriteRule (.*) phtagr/webroot/$1 [L]
</IfModule>

Now check your straight edge gallery and call http://YOUR_SERVER/phtagr/setup to upgrade the database (if neccessary).

Cleanup

After successfull validating your new gallery you can delete the temporary directory of your old version.

$ cd /var/www
$ sudo rm -rf phtagr-old

See HowToInstallFromSvn, or HowToInstallInUserDir for futher details.