Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Does anybody know of any modules that provide the functionality to write python or PHP code to run as hooks in the Apache request processing pipeline? For instance, mod_perl lets me write PerlModules, which can contain handlers for the header parsing phase, content delivery, and even filters. I would like to do something similar in other scripting languages.

I could write it in C, but the goal is to deploy a module that would work across a number of systems. If I deliver it as binary in C, then it would require 64/32-bit versions and some other issues. With perl, I can just require certain modules installed and mod_perl2.

EDIT Ideally the module tech would be recent and not getting phased out like mod_python. If no other solutions arise in a day or so, mod_python will be accepted.

share|improve this question

1 Answer 1

mod_python allows you to write hooks that can injected at a number of points within the request phase.

share|improve this answer
    
+1 for being true, but I will note that mod_python is being phased out in favor of mod_wsgi, which is a little more like CGI (but for Python). –  David Z May 2 '10 at 4:18
    
does mod_wsgi also let you write hooks? –  SB. May 2 '10 at 4:33
    
No. mod_wsgi is only for providing content. –  Ignacio Vazquez-Abrams May 2 '10 at 4:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.