Phraseanet 3.5 on Debian 6 Howto

Digital Asset Management


Phraseanet is a Digital Asset Management application that runs on LAMP. It's been open-sourced recently (by Alchemy.fr) and looks really impressive, but the available documentation is scarse and the installation procedure isn't exactly trivial. Here's a write-up of how you could install Phraseanet DAM on Debian 6 squeeze.

Will probably also apply to Ubuntu server, and Linux in general

This procedure is largely based on

update : There's also an excellent howto at http://www.hibouxprod.com/tutoriels/installer-phraseanet-iv-sur-debian-squeeze-32-bits (in French). I'd especiially recommend it if

Contents

install required stuff

build phraseanet specific php extensions

I couldn't find those in the tarbal I downloaded so I compiled them from source, following the method descibed on the Phrasenet documentation website http://docs.phraseanet.com/en/Admin/Prerequisite.html

note that the phraseanet docu says 'https://' in the github URL. That doesn't work, use 'git' protocol

phraseanet2 php extension

re: http://docs.phraseanet.com/en/Admin/Prerequisite.html

cd /opt/src
git clone git://github.com/alchemy-fr/Phraseanet-Extension php-phrasea
cd php-phrasea
./configure
make
make test
make install

phraseanet-indexer

re: http://docs.phraseanet.com/en/Admin/Prerequisite.html

cd /opt/src
git clone git://github.com/alchemy-fr/Phraseanet-Indexer phraseanet_indexer
cd phraseanet_indexer
aclocal
automake -a
autoconf
./configure
make
make install
    
installs to /usr/local/bin/phraseanet_indexer

setup phraseanet

Apache setup

short vhost checklist with slightly modified conf file

this looks a bit of a quick and dirty "dump everything in the webserver root" installation, which might impact the webserver's security

create Databases

The databases will be configured by the installer later on, but they need to exist, and you'll want a separate account (not your mysql root) to use them.

you need 2 databases 1 voor phraseanet, and 1 for “DataBox”. We let them be used by the same account.

:/# mysql -u root -p
mysql>

  create database phraseanet ;
  grant all on phraseanet.* to phraseanet@localhost identified by 'somesecret' ;


  create database databox ;
  grant all on databox.* to phraseanet@localhost identified by 'somesecret' ;

  flush privileges;

Final setup and configuration by web-based installer

use a browser to go to the url where your phraseanet lives. On first use, you'll be redirected to the web-based installer. Here are some hints as to what goes where :

additional packages

http://www.hibouxprod.com/tutoriels/installer-phraseanet-iv-sur-debian-squeeze-32-bits (in French) has good info on how to get all the helper apps and media suport sorted out -- the apt-get statements are the same in English as in French :-) .

Jonas Marozas at https://groups.google.com/group/phrasea-install-en/ list some more dependencies as well.

I'm assuming most of those will be installed automatically as dependencies for the packages mentiond higher up, but I keep them listed here in case you (or I) need a hint for package names that might add functionality or fix an issue.

php5-dev 
php-config 

autoconf2.13 
dvb-apps 

liba52-0.7.4-dev 
liba52-dev 
libasound2-dev
libavcodec-dev 
libavformat-dev
libavutil-dev 
libexpat-dev 
libfaad-dev
libfreetype6-dev 
libgd2-xpm-dev 
libgl1-mesa-dev 
libgv-php5 
libjack-dev 
libjpeg-dev 
libmad0-dev 
libmysqlclient-dev 
libogg-dev 
libopenjpeg-dev 
libpulse-dev 
libsdl1.2-dev 
libssl-dev 
libswscale-dev 
libtheora-dev 
libungif4.dev 
libvorbis-dev
libwxbase2.8-dev
libwxgtk2.8-dev 
libxv-dev  
libxvidcore-dev 
libxvmc-dev 

linux-sound-base 
mercurial 

uuid-dev 
wx2.8-headers 

x11proto-gl-dev 
x11proto-video-dev 

xulrunner-1.9.2-dev

Koen Noens
January 21, 2012

Creative Commons License
This work by Koen Noens is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.