summaryrefslogtreecommitdiff
path: root/pmwiki/README
blob: 6baaa95b181a27557a4474e659e211d0c13e9693 (plain)
    1 README for pmwiki 2.1.x
    2 
    3 REQUIREMENTS
    4 
    5 Don't install pmwiki 2 over an existing pmwiki 1 installation !
    6 A nice page how to upgrade can be found here: 
    7 http://www.pmwiki.org/wiki/PmWiki/UpgradingFromPmWiki1
    8 
    9 
   10 PRE-INSTALL
   11 
   12 POST-INSTALL
   13 
   14 1. Add the following directives to httpd.conf:
   15    
   16    LoadModule php5_module lib/apache/libphp5.so
   17    AddType application/x-httpd-php .php
   18 
   19    Alias /wiki/uploads /var/www/pmwiki/uploads/
   20    Alias /wiki/pub /var/www/pmwiki/pub/
   21    Alias /wiki /var/www/pmwiki/pmwiki.php
   22 
   23    <Directory /var/www/pmwiki/>
   24       Options None
   25       AllowOverride None
   26       Order deny,allow
   27       Deny from all
   28       <Files pmwiki.php>
   29          Allow from all
   30       </Files>
   31    </Directory>
   32    <DirectoryMatch /var/www/pmwiki/(uploads|pub)/>
   33       Allow from all
   34    </DirectoryMatch>
   35 
   36    The first alias can be omitted if file uploads
   37    are not enabled.
   38 
   39 2. Create a local configuration file
   40    
   41    cp /var/www/local/{config.php.sample,config.php}
   42 
   43 3. Edit /var/www/pmwiki/local/config.php:
   44 
   45    $ScriptUrl = 'http://<your_host_name>/wiki';
   46    $PubDirUrl = 'http://<your_host_name>/wiki/pub';
   47 
   48    and, if you want file uploads:
   49 
   50    $UploadDir = '/var/www/pmwiki/uploads';
   51    $UploadUrlFmt = 'http://<your_host_name>/wiki/uploads';
   52 
   53 4. Point your browser to http://<your_host_name>/wiki
   54    and enjoy ;-)
   55 
   56 
   57 PRECAUTION

Generated by cgit