Debian GNU/Linux (etch) - phpfspot Install Howto¶
1. Install the necessary requirements
sudo apt-get install sqlite3 sudo apt-get install apache2 sudo apt-get install php5-cli libapache2-mod-php5 php5-sqlite3 php5-gd php-pear smarty sudo /etc/init.d/apache2 restart sudo pear upgrade-all (be careful! perhaps other applications on your server don't like newer pear package versions) sudo pear install "channel://pear.php.net/Calendar-0.5.3" sudo pear install "channel://pear.php.net/HTML_AJAX-0.5.2" sudo pear install Date
2. Extract the phpfspot tarball below the webservers document root (defaults to /var/www)
cd /var/www sudo tar zxf /home/admin/phpfspot-x.x.tar.gz sudo ln -s phpfspot-x.x phpfspot cd phpfspot
3. Configure phpfspot
sudo cp -a phpfspot_cfg.php.dist phpfspot_cfg.php sudoedit phpfspot_cfg.php -> read the comments
4. Create database directory and set some permissions
sudo mkdir /var/www/f-spot-dbs sudo chown www-data.root /var/www/f-spot-dbs sudo chown www-data.root /var/www/phpfspot/thumbs /var/www/phpfspot/templates_c
5. Copy F-Spot photo directory to the webserver
scp -r ~/Photos someuser@somehost:/var/www/ sudo chgrp www-data /var/www/Photos
6. Copy F-Spot sqlite database to the webserver
scp ~/.gnome2/f-spot/photos.db someuser@somehost:/var/www/f-spot-dbs/
7. Pre-create thumbnails
cd /var/www/phpfspot "./gen_thumbs.php" or "php gen_thumbs.php"
Hopefully all works now.
PHP5 ImageMagick Support via PECL module:
sudo aptitude install libgraphicsmagick1-dev libmagick9-dev sudo pecl install imagicEdit /etc/php5/apache2/php.ini and add the line
extension=imagick.so
near the other 'extension' lines.