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 HowToInstallInUserDir


Ignore:
Timestamp:
12/31/11 11:24:13 (7 years ago)
Author:
sebastian
Comment:

Modify for new folder structure of phTagr 2.2

Legend:

Unmodified
Added
Removed
Modified
  • HowToInstallInUserDir

    v6 v7  
    2828cd ~/public_html 
    2929wget http://sourceforge.net/projects/phtagr/files/latest 
    30 unzip phtagr-rXXX.zip 
     30unzip phtagr-master-XXX.zip 
    3131}}} 
    3232 
     
    3535{{{ 
    3636/phtagr        
    37     /cake        <-- CakePHP framework 
    38     /app         <-- phTagr as CakePHP's default application 
    39         /config  <-- Basic configuration path 
    40             /core.php      <-- Basic core configuration file 
    41             /database.php  <-- Database configuration file (can be created automatically) 
    42             ... 
    43         /users   <-- Directory of your user's files, photos, videos, cached previews, ... 
    44         /tmp     <-- Directory for log files, cache files, ... 
    45         /webroot <-- Directory of public files like javascript, css, images 
    46             .htaccess      <-- Redirection settings for apache 
    47         .htaccess          <-- Redirection settings for apache 
     37    /cakephp     <-- CakePHP framework 
     38    /config      <-- Basic configuration path 
     39        /core.php      <-- Basic core configuration file 
     40        /database.php  <-- Database configuration file (can be created automatically) 
    4841        ... 
    49     /docs 
    50     /vendors 
    51     /index.php 
    52     /.htaccess   <-- Redirection settings for apache 
     42    /users       <-- Directory of your user's files, photos, videos, cached previews, ... 
     43    /tmp         <-- Directory for log files, cache files, ... 
     44    /webroot     <-- Directory of public files like javascript, css, images 
     45       .htaccess       <-- Redirection settings for apache 
     46    .htaccess    <-- Redirection settings for apache 
     47    ... 
    5348}}} 
    5449 
     
    6358    RewriteEngine on 
    6459    RewriteBase /~YOUR_NAME/phtagr 
    65     RewriteRule ^$   app/webroot/   [L] 
    66     RewriteRule (.*) app/webroot/$1 [L] 
    67 </IfModule> 
    68 }}} 
    69  
    70 Add the !RewriteBase to {{{~/public_html/phtagr/app/.htaccess}}} 
    71  
    72 {{{ 
    73 <IfModule mod_rewrite.c> 
    74     RewriteEngine on 
    75     RewriteBase /~YOUR_NAME/phtagr/app 
    7660    RewriteRule ^$   webroot/   [L] 
    7761    RewriteRule (.*) webroot/$1 [L] 
    7862</IfModule> 
     63}}} 
    7964 
    8065# Upload Limit of 128 MB 
     
    8267}}} 
    8368 
    84 Add the !RewriteBase to {{{~/public_html/phtagr/app/webroot/.htaccess}}} 
     69Add the !RewriteBase to {{{~/public_html/phtagr/webroot/.htaccess}}} 
    8570 
    8671{{{ 
    8772<IfModule mod_rewrite.c> 
    8873    RewriteEngine On 
    89     RewriteBase /~YOUR_NAME/phtagr/app/webroot 
     74    RewriteBase /~YOUR_NAME/phtagr/webroot 
    9075    RewriteCond %{REQUEST_FILENAME} !-d 
    9176    RewriteCond %{REQUEST_FILENAME} !-f 
     
    10186If you dont see anyting the modifications in the {{{.htaccess}}}, the redirction is disabled or your are not allowed to change settings in {{{.htaccess}}}. But no panic! There is a solution!  
    10287 
    103 [http://book.cakephp.org/view/333/A-Note-on-mod_rewrite From cakePHP's book] ''If you don't want or can't get mod_rewrite (or some other compatible module) up and running on your server, you'll need to use Cake's built in pretty URLs. In {{{/app/config/core.php}}}, uncomment the line that looks like:'' 
     88[http://book.cakephp.org/view/333/A-Note-on-mod_rewrite From cakePHP's book] ''If you don't want or can't get mod_rewrite (or some other compatible module) up and running on your server, you'll need to use Cake's built in pretty URLs. In {{{/config/core.php}}}, uncomment the line that looks like:'' 
    10489 
    10590{{{ 
     
    10792}}} 
    10893 
    109 Now you should be able to open your side at your server http://YOUR_SERVER_URL/~YOUR_NAME/phtagr/app/webroot/index.php, which should open the setup page. Continue with the SetupProcedure. 
     94Now you should be able to open your side at your server http://YOUR_SERVER_URL/~YOUR_NAME/phtagr/webroot/index.php, which should open the setup page. Continue with the SetupProcedure. 
    11095 
    11196'''Note:''' __If your rewrite does not work, the files of the users are not protected and are readable by the world! __ You should move phtagr's files to another location, copy the webroot to your user directory and configure properly the settings in the {{{index.php}}}. 
     
    11398= No suPHP = 
    11499 
    115 If your server does not run with {{{suPHP}}} (your scripts are executed with your system rights), you need to make some folders accessible for the web server. The directories (and all subdirecoties of ~/public_html/phtagr/app/config, ~/public_html/phtagr/app/tmp and ~/public_html/phtagr/app/users) must be writable or should be owned by the apache process.  
     100If your server does not run with {{{suPHP}}} (your scripts are executed with your system rights), you need to make some folders accessible for the web server. The directories (and all subdirecoties of ~/public_html/phtagr/config, ~/public_html/phtagr/tmp and ~/public_html/phtagr/users) must be writable or should be owned by the apache process.  
    116101 
    117 Usually the apache runs as user {{{www-data}}} in Debian/Ubuntu. 
     102Usually the apache runs as user {{{www-data}}} in !Debian/Ubuntu. 
    118103 
    119104{{{ 
    120 $ sudo chown -R www-data /home/YOUR_NAME/public_html/app/phtagr/tmp /home/YOUR_NAME/public_html/app/tmp /home/YOUR_NAME/public_html/app/config 
     105$ cd && cd public_html/phtagr 
     106$ sudo chown -R www-data tmp users config 
    121107}}} 
    122108 
     
    124110 
    125111{{{ 
    126 $ cd phtagr/app 
     112$ cd && cd public_html/phtagr 
    127113$ find config -type d -exec chmod 777 "{}" \; 
    128114$ find config -type f -exec chmod 666 "{}" \;