\part{Quick installation}
\section{Unpacking}
\paragraph{}
If you have GNU tar, simply do :
\begin{verbatim}
tar xzvf mifayn1.0.0.tgz
\end{verbatim}

else do

\begin{verbatim}
gunzip mifayn1.0.0.tgz
tar xvf mifayn1.0.0
\end{verbatim}

Move the src directory in a subtree of your exported web directory :
\begin{verbatim}
mv mifayn1.0.0/src/ /var/www/html/mysite/
\end{verbatim}
for example ... 

\paragraph{}
Changing some permissions (mifayn must create files):
\begin{verbatim}
chmod 777 /var/www/html/mysite/
chmod 777 /var/www/html/mysite/upgrade.htm
chmod 777 /var/www/html/mysite/img/
\end{verbatim}

\section{First upgrade}
\paragraph{}
Before changing our configuration file, we are checking that everythings 
go right with the "packaged" config file.
\paragraph{}
Open a web browser, make it point to \url{http://127.0.0.1/mysite/upgrade.htm}.
In the \myverb{Mot de passe / Passwort} text zone, 
you should enter "love" which
is the current password.
In the \myverb{Fichier de configuration} text zone, 
you should browse for the v\_001.csv file which is in 
\myverb{~/mifayn1.0.0/config\_file}. \\
Then press \myverb{Envoyer / schicken}.
\paragraph{}
If everything works well you should obtain 
figure \mypic{SuccedingCompilation}{13}.
\paragraph{}
If something works wrong, \mifayn should tell you the nature of
the error.
\paragraph{}
As the configuration file has been tested, an error
at this step can occurs if you haven't set the right permissions for 
the \mifayn directory. \mifayn wants to create files, you
must allow him.
\paragraph{}
Some errors can happen due to your php installation that might be incompatible
with this soft. (please contact me in this case).
\paragraph{}
If things works well, new files have been generated.
Make a tour by following the links.

\section{config.php3}
\paragraph{}
Some variables must be set in the config.php3 file 
(in \myverb{/var/www/html/mysite/}).
Edit this file. Change the password. Change the key. 
Edit the configuration file(\myverb{v\_001.csv}) 
(with a spreadsheet 
(see section \ref{spreadsheet}) 
or with an editor),
copy / paste the key that you have changed in the config file.
Change the website name.


\section{The key}
\paragraph{}
The key is a protection mecanism that protects you from people
who wants to change the content of your website.

\section{The end}
\paragraph{}
Your web site is now installed, you can customize it
by editing the config file.
First read the sample config file and try to understand.

\section{\label{spreadsheet}Editing the config file with a spreadsheet}
\paragraph{}
You can edit the configuration file with a spreadsheet.
Import the file and set that the separator character is TAB
and that lines are UNIX formatted.
Read the User Manual for more informations.


