How to install Peffisaur
========================

Requirements
------------
- Mysql
- An Apache with module mod_rewrite, .htaccess enabled and with PHP >= 4.2
- Sendmail or similar (that handles procmail if you want email upload
to work)
- munpack (which is a free tool that unpacks mime messages) - only if you
need the email-upload functionality


Setting up the database
-----------------------
1) Create a database called peffisaur

2) Set up the tables by executing the sql statements in tablesetup.sql
on the peffisaur database

3) Set up a peffisaur user by executing usersetup.sql

4) Do a mysqladmin reload to refresh the tables

Alternatively you can run the script setup.sh which does all of the
above


Setting up Peffisaur PHP software
---------------------------------
1) Copy all the php files, default.css and the images directory with
its content to a directory in your webserver path. 

2) Edit .htaccess so that RewriteBase is according to your system. I
install mine in root dir on my server so my base is / but say for
instance that your base is /peffisaur instead. Then your RewriteBase
would be /peffisaur and /send would be /peffisaur/send and /home.php
would be /peffisaur/home.php so you will need to edit all the rules
too. 

3) Create a directory called msgstore under your install dir. Make
that read and writable by any user (chmod a+wr msgstore)

4) Edit config.php and change ADMIN_EMAIL and ADMIN_NAME for instance
(possibly more things)

Add email upload support (optional)
-----------------------------------
1) Create a user called peffisaur on your system

2) Copy the .procmailrc file to the peffisaur user's home directory. 

3) Copy the recmail.pl to the same home directory

4) Edit recmail.pl so that the variables password and msgstore fit
your system

5) Setup your email server to catch all unknown email addresses and
send it to the peffisaur user. Consult your email server's
documentation on how to do that. 


Add admin interface (optional)
------------------------------
With the admin interface you can currently make news announcements to
your users. This is how to add it:

1) Copy the entire admin directory with content to your peffisaur
install directory. 

2) Make sure to password protect that directory so that only you have
access to it. Please consult your webserver documentation on how to do
that. 


