Index by title

Changelog

Initial release


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 imagic
Edit /etc/php5/apache2/php.ini and add the line
extension=imagick.so

near the other 'extension' lines.

Debian GNU/Linux (Lenny) - 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-gd php5-sqlite 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 Calendar (if package still in beta state, use "sudo pear install channel://pear.php.net/Calendar-0.x.x" - replace the version pear points out)
sudo pear install HTML_AJAX (if package still in beta state, use "sudo pear install channel://pear.php.net/HTML_AJAX-0.x.x" - replace the version pear points out)
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 imagic
Edit /etc/php5/apache2/php.ini and add the line
extension=imagick.so

near the other 'extension' lines.

EnableFriendlyUserUrls

Supporting user-friendly URL's

If you want to share links to photos or tags, you can use more beautiful links instead of "index.php?blabla". All you need is your Apache webserver supporting mod_rewrite. Look around in the web - there a plenty enough howto's around, howto enable it.

1. Add the following to your Apache configuration (mod_rewrite module need to be loaded). Also addept here the path to your phpfspot installation.

RewriteEngine On
RewriteRule ^/photoview/(.*)$ /var/www/phpfspot/index.php/$1
RewriteRule ^/photo/(.*)$ /var/www/phpfspot/index.php/$1
RewriteRule ^/tag/(.*)$ /var/www/phpfspot/index.php/$1

2. in phpfspot_cfg.php, set the parameter $user_friendly_url to "true"
3. now you can address phpfspot like this

/photoview/{id-of-photo}
/photo/{id-of-photo}
/photo/{id-of-photo}/{width}
/photo/{id-of-photo}/{width}/{version-id}
/tag/{id}/{page}

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:

1.YAST: devel-versions which are not routinely installed with OpenSuse:
  1. php5
  2. apache2
  3. python

2.Yast (install Packman-repo before)

  1. php5-gd
  2. php-pear

3.from php.net

  1. libapache2-mod-php5
  2. php5-sqlite3
  3. php5-cli
  4. smarty

After this, you do

  1. rcapache2 restart
  2. pear upgrade-all
  3. pear install "channel://pear.php.net/Calendar-0.5.3"
  4. pear install "channel://pear.php.net/HTML_AJAX-0.5.2"
  5. 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).


phpfspot

phpfspot brings you F-Spot album online. The PHP-based application handles the sqlite3 database of F-Spot and displays tags, EXIF informations (for JPEG photo's), ...

Download

The current stable release is 1.7 (Changelog). See Files if you want to download it.

Features

Demo and Screenshots

A simple Demo-installation with some wallpapers from kdelook.org can be found at:

http://oss.netshadow.at/phpfspot/

Screenshots has some pictures of a running phpfspot installation.

Requirements

Get involved

Mailinglist

Installation issues, ideas, feature requests, ... post to the mailing list which can be found at

phpfspot@netshadow.at

Do not forget! Before posting to this list you need to subscribe either via sending an empty email to phpfspot-subscribe@netshadow.at or visit https://admin.netshadow.at/mailman/listinfo/phpfspot/.

Reviews

Users

I want to get the lastest development trunk!

You can check it out of the GIT repository via:

git clone http://git.netshadow.at/phpfspot.git/

Some tips

Installation

A general install description is bundled with each release - see INSTALL file.

Debian

phpfspot was develeoped under Debian GNU/Linux.

OpenSuSE

see this OpenSUSE-Howto

Further configuration hints

phpfspot supports EnableFriendlyUserUrls.


Screenshots