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

  • Recipe 2.1

  • http://modsnake.sourceforge.net/



Apache Cookbook
Apache Cookbook: Solutions and Examples for Apache Administrators
ISBN: 0596529945
EAN: 2147483647
Year: 2006
Pages: 215

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net