So, I wanted to run my own gallery software because Photobucket’s interface is ad-cluttered and atrociously slow. After asking around some, I decided to try Gallery2. I then waited two weeks for 2.2.5 to make into Debian Testing; when that failed to happen I just built it from source from unstable.
There are install instructions on the official site you should go over; I’ll only highlight the lighttpd-specific stuff here.
Unfortunately, Gallery2 in Debian only knows how to automatically configure four different Apache flavors, and not Lighttpd. Fixing that wasn’t too hard.
First, pick a name to put in your document root. Then symlink it to /usr/share/gallery2. I picked gallery, leading to:
sudo ln -s /usr/share/gallery2 /var/www/gallery
Then, browsing to http://example.com/gallery/install should work.
You’ll need to have created a database that some user (pick a name and pass) has access to, before getting very far in the gallery2 install. It’s standard MySQL and there’s an example on the official install instruction page.
Then, the tricky part is if you want “clean URLs” enabled, since Lighty doesn’t use .htaccess. Instructions for enabling the Rewrite module can be found here. Make sure to change the “gallery2” in both side of the rewrite rules to whatever you picked.
Also, since I had previously denied bandwidth leeches in my lighttpd.conf, but I want to use my pictures on other sites, I had to add the following to lighttpd.conf:
$HTTP["url"] =~ "^/gallery/" {
url.access-deny = ( )
}
After that, it should just be gallery2 configuration via its web interface. It didn’t go very painfully for me.
Here is my install. And here is a pic with a “friendly” URL: 
Comment
Commenting is closed for this article.