nother.net: zoph: requirements

Zoph 0.3.3 Requirements

13 Dec 2002

Table Of Contents

This document is meant to help you install all the packages required by Zoph. I've gotten everything running on Linux (Debian and Mandrake) and Mac OS X without too much trouble and people have reported getting Zoph to work under Windows as well. You might be able to skip this if you know your way around your system.

1. What You Need

You need to have the following installed before running Zoph.
Version numbers are what I have tested with, I expect any recent versions would work:

You probably already have many of these. Getting most of them is fairly simple. For example, using Debian you can simply:

$ apt-get update
$ apt-get install perl apache php4 mysql-server php4-mysql imagemagick jhead

If you are planning on using the web based importer you may need to install the GD 2 library for image support in PHP (http://www.boutell.com/gd/). A Debian package named php4-gd2 is available. Also, you may need to upgrade to PHP 4.2 if you want EXIF support. GD is required to use the importer. PHP 4.2 is recommended but not required.

Also, if you are using the web importer you may need to increase the max_execution_time defined in php.ini. There is more info in the MANUAL.

2. Apache & PHP

You may have to edit your httpd.conf file to add PHP support. Edit /var/apache/conf/httpd.conf (or the equivalent) and uncomment/add these lines:

LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

Save the file and restart apache:

$ apachectl restart

Put a php file in your webserver's path to test things out:
$ cat /var/www/test.php
<? echo phpinfo(); ?>

Hit http://localhost/test.php and you should see info about your PHP version.

3. MySQL

If MySQL is not up and running you'll need to start it:

$ /etc/init.d/mysql start

If you haven't set your root password, do it!

$ mysqladmin -u root password <password>

4. Perl Packages

You may already have the DBI and DBD::mysql but you probably have to install the Image::Size package. You can use CPAN to do this. (Note that the first time you run CPAN you'll have to answer some questions. You can just go with the defaults until you are asked to choose the hosts).

$ perl -MCPAN -e 'install Image::Size'

If needed, install the other Perl packages as above.

5. Jhead

Jhead is a handy little program that extracts the information stored in the Exif headers that are added by most digital cameras. Exif stores date and time plus a bunch of other info about a photo. Zoph uses Jhead to parse the header so you'll need to install it. You can download it from:

http://www.sentex.net/~mwandel/jhead/


Generated on Fri Dec 13 14:52:10 PST 2002 with help from (a slightly modified) txt2html and htmltoc.