Posted on 2008-05-27 15:23:19-07 by ddurocher
Interested in using mod_perl gallery but not sure where to put the config
Hello there,
I have apache2 running on a ubuntu dapper box. I can access my pictures from the web trough directory listing no problem but I want to have galleries so here I am. I'm a noob with apache / perl modules. Here's what I've done till now.
I've installed apache2 with mod-perl and gallery. My problem is with the configs. Browsing the web I can only find examples of config for virtul host but I want my global server to be set with Gallery. Reading the Cpan article, I added these values to my httpd.conf:
PerlSetVar GalleryCacheDir '/var/tmp/cache/'
#PerlSetVar GalleryTemplateDir '/var/tmp/templates/default'
PerlSetVar GallerySizes '640 800 1024 1600'
PerlSetVar GalleryThumbnailSize '100x75'
PerlSetVar GalleryThumbnailSizeLS '1'
PerlSetVar GalleryAllowOriginal '1'
PerlSetVar GallerySlideshowIntervals '3 5 10 15 30'
PerlSetVar GalleryImgFile '\.(jpe?g|png|tiff?|ppm)$'
PerlSetVar GalleryDocFile '\.(mpe?g|avi|mov|asf|wmv|doc|mp3|ogg|pdf|rtf|wav|dlt|html?|csv|eps)$'

I've commented out the template because I cannot figure what the template file shoud contain. Can you guys direct me to some documentation about that and maybe a good how to?
Thanks
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.