Single File PHP Gallery is a web gallery in one single PHP file. All you have to do is copy the script to any directory containing images to make a gallery. Sub directories will be sub galleries. Thumbnails for images and directories are generated automatically.
More info: http://sye.dk/sfpg/
Installation:
cd /tmp
wget http://sye.dk/sfpg/Single_File_PHP_Gallery_4.5.7.zip
mkdir /var/www/gallery
unzip Single_File_PHP_Gallery_4.5.7.zip -d /var/www/gallery
You must change line 22 to ‘define(‘SECURITY_PHRASE’, ‘true’);’ else the gallery won’t load.
You need PHP 5 and php_gd (not installed by default, apt-get install php5-gd) installed.
My only concern is the end user and /var/www permissions. eg: user makes a folder /var/www/moo , user will need to chown -R www-data:www-data etc. However, i could put this in the online documentation.
You don’t need to do that. If you want to make a new folder inside gallery/ (folder = album) it does not need special rights.
There is only one folder that needs chown’ed, and that is ‘_sfpg_data’, it contains the thumbnails, EXIF data and cache, so it must be writeable for the webserver.