Initial release
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
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 imagicEdit /etc/php5/apache2/php.ini and add the line
extension=imagick.so
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}
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.
Assuming you are about to place phpfspot on a working site with apache2
The first point is to install the following prerequisites and dependencies:
2.Yast (install Packman-repo before)
3.from php.net
After this, you do
cd /var/www
tar zxf /home/admin/phpfspot-x.x.tar.gz
ln -s phpfspot-x.x phpfspot
cd phpfspot
cp -a phpfspot_cfg.php.dist phpfspot_cfg.php
edit (with kwrite or gedit or vi,...) phpfspot_cfg.php -> read the comments
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
scp -r ~/Photos someuser@somehost:/var/www/
sudo chown -R .www /var/www/Photos
scp ~/.gnome2/f-spot/photos.db someuser@somehost:/var/www/f-spot-dbs/
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.
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 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), ...
The current stable release is 1.7 (Changelog). See Files if you want to download it.
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.
Installation issues, ideas, feature requests, ... post to the mailing list which can be found 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/.
You can check it out of the GIT repository via:
git clone http://git.netshadow.at/phpfspot.git/
A general install description is bundled with each release - see INSTALL file.
phpfspot was develeoped under Debian GNU/Linux.
see this OpenSUSE-Howto
phpfspot supports EnableFriendlyUserUrls.


