<!DOCTYPE ARTICLE PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<article id="smeyappa">
<articleinfo>
<title>How to install YAPPA</title>
<author>
        <firstname>Eric</firstname>
        <surname>Womack</surname>
        <affiliation><orgname>Las Vegas Data LLC</orgname></affiliation>
</author>
</articleinfo>
<para>
This procedure has been tested on systems running SME 5.0. It <emphasis>will not</emphasis> work on any 4.x versions.
</para>

<sect1 id="intro">
<title>Introduction</title>
<para>
 This document explains how to install YAPPA, an easy to use photo gallery, on SME 5.0
</para>
</sect1>

<sect1 id="setup">
<title>Setup</title>

<sect2 id="rpms">
<title>Software install</title>
<para>
SSH into the server as root, and install the following:
<programlisting>
rpm -Uhv ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/freetype-2.0.3-7.i386.rpm
rpm -Uhv ftp://ftp.rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/gd-1.8.4-4.i386.rpm
</programlisting>
Log out when complete.
</para>
</sect2>

<sect2 id="ibay">
<title>ibay Setup</title>
<para>
Create an ibay to hold your images.  For this example, I will use one called photos.
</para>
<para>
Set your security to what you wish, and be sure to enable PHP scripting in the options.
</para>
</sect2>

<sect2 id="yappa">
<title>YAPPA Download</title>
<para>
Download and extract the tarball <ulink url="http://freshmeat.net/redir/yappa/15512/url_tgz/yappa-1.5.tar.gz">YAPPA</ulink> to your new ibay using a client machine.
</para>
<para>
If you prefer, a zip <ulink url="http://freshmeat.net/redir/yappa/15512/url_zip/yappa-1.5.zip">YAPPA</ulink> is also available.
</para>
<para>
I recommend extracting these so that they are not nested within their own folder, but so that the files are rith in the html directory itself
</para>
<para>
Edit the config.inc.php file so that the photo root variable is set to the path of images.  For this exapmle, that would be:

<programlisting>
 /* directory where album dirs are stored */
    "photo_root" => "/home/e-smith/files/ibays/photos/html/photos",
</programlisting>
</para>
<para>
Finally, add a photos directory to the html directory.  This will contain subdirectories that will contain your photo albums.  Also, read the INSTALL file for steps on customizing titles and such.
</para>

<para>
For a demo, see <ulink url="http://freshmeat.net/redir/yappa/15512/url_demo/">YAPPA Demo</ulink>
</para>
</sect2>

</sect1>
</article>

