Project-Id-Version: Trac 0.12
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 <>
Language-Team: en_US <>
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.

Version 8 (modified by sebastian, 8 years ago) (diff)

Improve file permission command

This HowTo describes the migration from a release installation of phTagr to the Git 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 Git installation!


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

$ cd
$ git clone git:// phtagr
$ cd phtagr
$ git submodule init
$ git submodule update
$ cd /var/www
$ sudo mv phtagr phtagr.old
$ sudo mv ~/phtagr .
$ cd phtagr

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


We have to copy two configuration files

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

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

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

Optional you can copy the log files, too

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

Set right for the directories

$ cd /var/www/phtagr
$ chmod -R go+w config tmp users

(Or you can assign permission to apache's group with cd /var/www/phtagr && chown -R www-data config tmp users)

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


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

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

See HowToInstallFromGit, or HowToInstallInUserDir for futher details.