OpenSuse 10.3 - phpfspot Install Howto¶
I followed and 'translated' the Debian Install Howto (http://oss.netshadow.at/wiki/phpfspot/Debian-Howto), but given the differences between distributions, things are just a little bit otherwise arranged. There is also a very detailed manual in http://www.linux.com/feature/133156 (Bringing your photos from F-Spot to the web, by Ben Martin). He mentions Ubuntu and OpenSuse.
The basic setup is always the same, however.
Install the necessary requirements¶
Assuming you are about to place phpfspot on a working site with apache2
The first point is to install the following prerequisites and dependencies:
- php5
- apache2
- python
2.Yast (install Packman-repo before)
- php5-gd
- php-pear
3.from php.net
- libapache2-mod-php5
- php5-sqlite3
- php5-cli
- smarty
After this, you do
- rcapache2 restart
- pear upgrade-all
- pear install "channel://pear.php.net/Calendar-0.5.3"
- pear install "channel://pear.php.net/HTML_AJAX-0.5.2"
- pear install Date
2. Extract the phpfspot tarball below the webservers document root (defaults to /srv/www/htdocs)¶
cd /var/www
tar zxf /home/admin/phpfspot-x.x.tar.gz
ln -s phpfspot-x.x phpfspot
cd phpfspot
3. Configure phpfspot¶
cp -a phpfspot_cfg.php.dist phpfspot_cfg.php
edit (with kwrite or gedit or vi,...) phpfspot_cfg.php -> read the comments
4. Create database directory and set some permissions¶
mkdir /var/www/f-spot-dbs
chown wwwrun.root /var/www/f-spot-dbs
sudo chown wwwrun.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 chown -R .www /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"
This is necessary, because otherwise phpfspot will take a long time presenting the thumbnails.
Synchronizing the photo files¶
The main problem for me was to synchronize the photo databases with F-Spot, especially because phpfspot resides on a different site than the computer with F-spot. The best way to do this was using rsync, with maintaining the permissions of the target files (with the --chmod switch --chmod=Dg+ws,Fg+wr).