PDA

View Full Version : Apache w/ perl & python cgi


fos
08-24-2006, 06:46 AM
This seems like a trivial question but.....

How do you enable perl & python based cgi scripting on an Apache server. There seems to be numerous mods available for both perl and python. Which ones are necessary?

Thanks

danieldk
08-24-2006, 09:42 AM
You can always run CGI scripts with plain Apache (without extra 3rd party modules). Look at the ScriptAlias directive:

http://httpd.apache.org/docs/1.3/mod/mod_alias.html#scriptalias

If scripts get executed very frequently, you may want to look at mod_perl or mod_python. Quickly said, they make it possible for Apache to directly process Perl or Python files (through an interpreter permanently available). FastCGI is a useful alternative:

http://www.fastcgi.com/