README for pmwiki 2.2.x

REQUIREMENTS

Don't install pmwiki 2 over an existing pmwiki 1 installation !
A nice page how to upgrade can be found here: 
http://www.pmwiki.org/wiki/PmWiki/UpgradingFromPmWiki1


PRE-INSTALL

POST-INSTALL

1. Add the following directives to httpd.conf:
   
   LoadModule php7_module lib/apache/libphp7.so
   AddType application/x-httpd-php .php

   Alias /wiki/uploads /var/www/pmwiki/uploads/
   Alias /wiki/pub /var/www/pmwiki/pub/
   Alias /wiki /var/www/pmwiki/pmwiki.php

   <Directory /var/www/pmwiki/>
      Options None
      AllowOverride None
      Require all denied
      <Files pmwiki.php>
         Require all granted
      </Files>
   </Directory>
   <DirectoryMatch /var/www/pmwiki/(uploads|pub)/>
      Require all granted
   </DirectoryMatch>

   The first alias can be omitted if file uploads
   are not enabled.

2. Create a local configuration file
   
   cp /var/www/local/{config.php.sample,config.php}

3. Edit /var/www/pmwiki/local/config.php:

   $ScriptUrl = 'http://<your_host_name>/wiki';
   $PubDirUrl = 'http://<your_host_name>/wiki/pub';

   and, if you want file uploads:

   $UploadDir = '/var/www/pmwiki/uploads';
   $UploadUrlFmt = 'http://<your_host_name>/wiki/uploads';

4. Point your browser to http://<your_host_name>/wiki
   and enjoy ;-)


PRECAUTION

