File: README.Debian

package info (click to toggle)
libapache-gallery-perl 1.0.2-5.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 728 kB
  • sloc: perl: 1,280; sh: 21; makefile: 15
file content (125 lines) | stat: -rw-r--r-- 4,645 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
libapache-gallery-perl for Debian
---------------------------------

Read more to learn how to integrate Apache::Gallery in the Apache Web Server.
You have to complete all the steps described in this README file.

1. Configure your Apache server

1.1 Apache 1.3

You need to configure your virtualhost block to look like:

<VirtualHost *>
	ServerName   gallery.yourdomain.org
	DocumentRoot /data/pictures/
	ErrorLog     logs/gallery-error_log
	TransferLog  logs/gallery-access_log
	PerlSetVar   GalleryTemplateDir '/usr/share/libapache-gallery-perl/templates/default'
	PerlSetVar   GalleryInfo 'Picture Taken => DateTimeOriginal, Flash => Flash'
	PerlSetVar   GallerySizes '640 1024 1600 2272'
	PerlSetVar   GalleryThumbnailSize '100x75'
	PerlSetVar   GalleryCopyrightImage 'htdocs/c.png'
	<Location />
	    SetHandler  perl-script
	    PerlHandler Apache::Gallery
	</Location>
</VirtualHost>

NOTICE: Although stated by the original author of Apache::Gallery, some users
have reported it is not longer true that Apache::Gallery does not work with
mod_autoindex. If you experience problems, with your gallery, please, follow
this instructions:

WARNING: Apache::Gallery might not work properly if mod_autoindex is loaded by
Apache. Indeed, mod_autoindex might override Apache::Gallery and might not let
it display directory content. 

To check if your apache loads mod_autoindex, just look for this line in
httpd.conf:

LoadModule autoindex_module /usr/lib/apache/1.3/mod_autoindex.so

If this line is not commented, Apache::Gallery might only work when an image is
loaded directly. Whenever a directory listing is requested, Apache might
respond with the classic (and ugly) directory listing performed by
mod_autoindex.

1.2 Apache 2

In case you run apache 2 and modperl 2 (or 1.99), it needs to look like:

<VirtualHost *>
	ServerName   gallery.yourdomain.org
	DocumentRoot /data/pictures/
	ErrorLog     logs/gallery-error_log
	TransferLog  logs/gallery-access_log
	PerlSetVar   GalleryTemplateDir '/usr/share/libapache-gallery-perl/templates/default'
	PerlSetVar   GalleryInfo 'Picture Taken => DateTimeOriginal, Flash => Flash'
	PerlSetVar   GallerySizes '640 1024 1600 2272'
	PerlSetVar   GalleryThumbnailSize '100x75'
	PerlSetVar   GalleryCopyrightImage 'htdocs/c.png'
	PerlOptions +GlobalRequest
	<Location />
	    SetHandler          modperl
	    PerlResponseHandler Apache::Gallery
	</Location>
</VirtualHost>

NOTICE: Although stated by the original author of Apache::Gallery, some users
have reported it is not longer true that Apache::Gallery does not work with
mod_autoindex. If you experience problems, with your gallery, please, follow
this instructions:

WARNING: Apache::Gallery might not work properly if mod_autoindex is loaded by
Apache. Indeed, mod_autoindex might override Apache::Gallery and might not let
it display directory content. 

To check if your installation loads the autoindex module, you need to check
under /etc/apache2/mods-enabled for a link to the module (actually placed under
/etc/apache2/mods-available)

If this module is activated, Apache::Gallery might only work when an image is
loaded directly. Whenever a directory listing is requested, Apache might
respond with the classic (and ugly) directory listing performed by
mod_autoindex.

2. Place the icons

For accessing the icons, you can create an alias to the directory where they
reside. Icons for libapache-gallery-perl *must* appear under /icons/gallery
on your topmost apache tree:

    Alias /icons/gallery/ "/usr/share/libapache-gallery-perl/icons/"

This Alias defined above should appear _before_ the "Alias /icons ..." in your
config files.

Another choice is to symlink:

    /usr/share/apache2/icons/gallery -> /usr/share/libapache-gallery-perl/icons

From your Apache icons directory. The example above is for Apache2.

As a less recommended alternative, you can create a directory called gallery in
your Apache icons directory and copy the png files in htdocs to this directory.

3. Edit the template directory

Edit the GalleryTemplateDir variable to point to the templates you want
Apache::Gallery to use. This Debian package distributes 2 templates, called
"default" and "new".

4. Place the CSS file

The gallery.css file from the template directory you choose must be 
copied to the DocumentRoot of your gallery.

That's IT!


It is possible to include a graphical copyright notice on each picture now.
By setting the GalleryCopyrightImage PerlSetVar you can define the path
to a picture that you want include in the bottom right of each picture.

 -- Jesus Climent <jesus.climent@hispalinux.es>  Mon, 09 Apr 2004 22:31:39 +0000