Castalian

Installation

Installing the Castalian CGI is fairly easy in Apache. Simply put it in an area where CGIs will be executed, and then add the following to your Apache conf files:

AddHandler castalian .cas
Action castalian /url/for/castalian.cgi
After that, all .cas files will be parsed by the Castalian engine.
Note that the /url/for/castalian.cgi in the Action directive is a URL, not a filesystem path.

If you don't control the server, but you're allowed to run your own CGIs and edit .htaccess files, then you can add the two lines above to a relevant .htaccess file and it should have the same effect.

It may be useful to alter your DirectoryIndex settings (in Apache conf files or in .htaccess) to add index.cas to the list of files looked for where a directory alone is specified in a URL.

NB: the old Cookie.py file is now not required, as the Cookie module is bundled with Python.