Raphael Digital Documentation Setup: Difference between revisions

From National Gallery Research Wiki
Jump to navigation Jump to search
Line 62: Line 62:


To read:
To read:
<IfModule mod_fastcgi.c>
<nowiki>
  AddHandler fastcgi-script .fcgi
<IfModule mod_fastcgi.c>
  #FastCgiWrapper /usr/lib/apache2/suexec2
AddHandler fastcgi-script .fcgi
  FastCgiIpcDir /var/lib/apache2/fastcgi  
#FastCgiWrapper /usr/lib/apache2/suexec2
  ScriptAlias /fcgi-bin/ /var/www/fcgi-bin/
FastCgiIpcDir /var/lib/apache2/fastcgi  
ScriptAlias /fcgi-bin/ /var/www/fcgi-bin/


  <Directory "/var/www/fcgi-bin">
<Directory "/var/www/fcgi-bin">
  AllowOverride None
  AllowOverride None
  Options +ExecCGI -Includes
  Options +ExecCGI -Includes
  SetHandler fastcgi-script
  SetHandler fastcgi-script
  Order allow,deny
  Order allow,deny
  Allow from all
  Allow from all
  </Directory>
</Directory>
 
  # Initialise some variables for the FCGI server
  FastCgiServer /var/www/fcgi-bin/iipsrv.fcgi \
  -initial-env MAX_IMAGE_CACHE_SIZE=10 \
  -initial-env LOGFILE=/var/log/iipimage/iipsrv.log \
  -initial-env VERBOSITY=1 \
  -initial-env MAX_CVT=1024 \
  -initial-env JPEG_QUALITY=75 \
  -processes 10
</IfModule>


# Initialise some variables for the FCGI server
FastCgiServer /var/www/fcgi-bin/iipsrv.fcgi \
-initial-env MAX_IMAGE_CACHE_SIZE=10 \
-initial-env LOGFILE=/var/log/iipimage/iipsrv.log \
-initial-env VERBOSITY=1 \
-initial-env MAX_CVT=1024 \
-initial-env JPEG_QUALITY=75 \
-processes 10
</IfModule>
</nowiki>
Download the latest server from [http://sourceforge.net/project/showfiles.php?group_id=87339 IIPImage] webpage and save it in your new folder software/iipimage
Download the latest server from [http://sourceforge.net/project/showfiles.php?group_id=87339 IIPImage] webpage and save it in your new folder software/iipimage



Revision as of 19:16, 23 November 2010

The software referred to here was produced as a prototype digital documentation system within the Mellon funded Raphael Research project. The software was built to test various ideas related to the storage, dissemination and description of museum/gallery related information.

The instruction listed here describe the steps required to set up an empty copy of the system for personal use. As stated the software is classed as prototype or beta software and further develop work would be recommended prior to making use of it for anything more than testing and development purposes.

This page is part of the Linux Setup discussion.

--Jpadfield 13:00, 23 November 2010 (UTC)


Initial set-up of your Linux machine

Follow the instructions and install the software indicated in the following to sections:

Vips/Nip software

Add the following lines to end of your .bashrc file

export VIPSHOME=/usr/local/vips
export MANPATH=$MANPATH:$VIPSHOME/man
export PATH=$VIPSHOME/bin:"${PATH}"
export LD_LIBRARY_PATH=/usr/local/lib:$VIPSHOME/lib
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib32/pkgconfig:/usr/share/pkgconfig:$VIPSHOME/lib/pkgconfig

Open up a new xterm window and run the following commands

sudo mkdir /usr/local/vips-7.22
sudo ln -s /usr/local/vips-7.22 /usr/local/vips

Prepare to download the source code

mkdir software
mkdir software/vips
cd  software/vips

Download and unpack the current version of vips and nip2, for example:

wget  http://www.vips.ecs.soton.ac.uk/supported/7.22/vips-7.22.5.tar.gz
wget  http://www.vips.ecs.soton.ac.uk/supported/7.22/nip2-7.22.4.tar.gz
tar xzvf vips-7.22.5.tar.gz
tar xzvf nip2-7.22.4.tar.gz

Move into the vips folder and build the software as indicated:

cd vips-7.22.5
configure --prefix=/usr/local/vips-7.22
make
sudo make install

Move into the nip2 folder and build the software as indicated:

cd ../nip2-7.22.4
configure --prefix=/usr/local/vips-7.22
make
sudo make install

If the software builds without any problems the nip2 software can be run with the command:

nip2

IIPImage system

Open a new xterm or move to your home folder

mkdir software/iipimage

Edit your fastcgi.conf:

sudo gedit /etc/apache2/mods-available/fastcgi.conf

To read: <IfModule mod_fastcgi.c> AddHandler fastcgi-script .fcgi #FastCgiWrapper /usr/lib/apache2/suexec2 FastCgiIpcDir /var/lib/apache2/fastcgi ScriptAlias /fcgi-bin/ /var/www/fcgi-bin/ <Directory "/var/www/fcgi-bin"> AllowOverride None Options +ExecCGI -Includes SetHandler fastcgi-script Order allow,deny Allow from all </Directory> # Initialise some variables for the FCGI server FastCgiServer /var/www/fcgi-bin/iipsrv.fcgi \ -initial-env MAX_IMAGE_CACHE_SIZE=10 \ -initial-env LOGFILE=/var/log/iipimage/iipsrv.log \ -initial-env VERBOSITY=1 \ -initial-env MAX_CVT=1024 \ -initial-env JPEG_QUALITY=75 \ -processes 10 </IfModule> Download the latest server from IIPImage webpage and save it in your new folder software/iipimage

cd software/iipimage
tar xvjf iipsrv-0.9.8.tar.bz2
cd iipsrv-0.9.8
./configure
make

MySQL database

Check default directories and settings

Web front end