Faq-O-Matic Faq-O-Matic : Administrators' Guide : Customize :
Can I use FAQ-O-Matic with mod_perl? | |
The mod_perl Apache module keeps Perl loaded into Apache's child processes, which can make Perl CGIs run with much less latency (and server load). FAQ-O-Matic can be used with mod_perl if you take note of two things:1. It must be run in Apache::PerlRun mode, not Apache::Registry mode.The latter caches even more information, but FOM doesn't currently work with it. (Patches accepted from mod_perl wizards. :v) 2. You should turn "PerlTaintCheck On", since FOM uses Perl's -T option.Thanks to Akiko Takano for summarizing these requirements. | |
Bill McGonigle writes that to get FOM working with mod_perl, you may
need to add PerlSendHeader onin the appropriate place in your Apache configuration file. | |
I just installed FAQ::OMatic, using the CPAN shell, on a mod-perl enabled server, and set it up as a Registry script, and it seems to be working fine, so far. :):) From /perl-status: Embedded Perl version v5.6.0 for Apache/1.3.12 (Unix) mod_perl/1.24 This is on a Solaris 8 Sparc. And I see it in the "Compiled Registry Scripts" section, as well as the functions and the scaler of the package. I went through the entire setup/config process, and and have started setting up my first FAQs, and have had no problems at all. | |
I also set up FoM successfully (it seems) with Apache::Registry. But I had to set PerSendHeader On. I put this in the apache.conf: <Directory "/opt/eprints2/cgi/faq"> SetHandler perl-script PerlHandler Apache::Registry PerlSendHeader On Options ExecCGI </Directory>I tried setting PerlTaintCheck On, but this gave an error on Apache start (I am setting FoM up on top of an GNU Eprints self-archiving system, the error may be caused by Eprints scripts). Seems to run fine without it, though it does give errors in the apache error log (I might try removing the -T option in fom?). Kind regards, Hugo Alroe | |
[Append to This Answer] |
Previous: | Route E-mail into your FAQ-O-Matic |
Next: | How do I get to the Configuration Main Menu? |
|