DekGenius.com
[ Team LiB ] Previous Section Next Section

Recipe 2.7 Installing the mod_snake Python Module

Problem

You want to add the mod_snake Python scripting module to your existing Apache server.

Solution

To install mod_snake on a Unixish system, download the source from the http://modsnake.sourceforge.net/ web site (follow the link for downloading), unpack it, and then:

% cd  mod_snake-0.5.0 
% ./configure --with-apxs= /usr/local/apache/bin/apxs 
% make 
# make install 

Restart the server.

At the time of this writing, mod_snake cannot be installed on Windows.

Discussion

mod_snake is a fairly standard Apache module; it can be added to an existing Apache installation without any source-level changes. It requires that you have Python installed, and that the apxs script has been properly configured and installed as part of the web server package.

See the README and INSTALL files in the unpacked package directory, and the HTML documentation in the examples/tut/ directory, for additional information, examples, and ways to test that your installation was successful.

See Also

    [ Team LiB ] Previous Section Next Section