mod_coolphoto 2.0 review
Downloadmod_coolphoto is an Apache module that enables you to manage and display images within a series of photo galleries
|
|
mod_coolphoto is an Apache module that enables you to manage and display images within a series of photo galleries. mod_coolphoto has been written and tested using Linux and Apache 1.3x. Each virtual server on the machine can have its own configuration and its own unique galleries.
Requirements:
Apache 1.3
Ralf Engelschall's MM package
ImageMagick
Installation:
Make a new directory at "$(APACHE_DIR)/src/modules/coolphoto/", and untar the mod_coolphoto distribution into it.
In whatever mechanism appropriate for your shell, set the following environment variables (where the strings $(IMAGEMAGICK_DIR) and $(MM_DIR) are replaced by the directory names you installed the various packages into, as described above):
INCLUDES "-I$(IMAGEMAGICK_DIR) -I$(MM_DIR)"
LDFLAGS "-L$(IMAGEMAGICK_DIR)/magick/.libs -L$(MM_DIR)/.libs"
LIBS "-lMagick -lmm -lz -ltiff -lpng -lbz2 -lfreetype"
Run the "$(APACHE_DIR)/configure" script. Use whatever other options you would normally use (as described in detail in the $(APACHE_DIR)/INSTALL document), but adding this option: "--activate-module=src/modules/coolphoto/libcoolphoto.a"
run "make", and "make install" as described in the $(APACHE_DIR)/INSTALL document.
Configuration:
Besides the proprietary coolphoto configuration directives listed below, the only other httpd.conf configuration required is to add appropriate SetHandler directives in order for mod_coolphoto to execute.
mod_coolphoto is interfaced using two modes: Normal mode and Administrative mode. Normal mode is the way casual users view your photo galleries; they can navigate through all the galleries, as well as the images within those galleries.
Administrative mode is reserved for the administrator of the photo galleries; within this mode images can be imported, moved around, resized or flipped, and deleted. Due to this fact, Administrative mode should be password protected. The apache handlers for Normal and Administrative modes are "cool-photo" and "cool-photo-admin", respectively.
The following entry into httpd.conf (usable at the global server or virtual server level) will set the url for normal viewing of mod_coolphoto as "http://servername.com/photos":
< Location /photos >
SetHandler cool-photo
< /Location >
Likewise, the following entry into httpd.conf will set the url for the administrative interface of mod_coolphoto as "http://servername.com/photoadmin", using Basic Authentication and requiring the user be authenticated as a member of the "photo-admin" group (for more information, see the documentation for the AuthType directive):
< Location /photoadmin >
SetHandler cool-photo-admin
AuthName "Photo Administration"
AuthType Basic
Require group photo-admin
< /Location >
Besides this apache handler configuration, the only other required directives are coolphoto_enable, coolphoto_config, and coolphoto_depot (configurable at the global server or virtual server level). All other directives are optional.
mod_coolphoto 2.0 search tags