What factors should I consider when deciding whether to use Apache's mod_perl
or mod_cgi
, when configuring an existing web application?
Asked
Active
Viewed 1,501 times
3
smokris
- 685
- 3
- 13
- 27
1 Answers
3
If it's a perl application and can run in either mode, mod_perl will be more efficient because Apache doesn't have to start a perl interpreter for every request. There's really no upside to using CGI instead.
frodwith
- 46
- 1
-
1The upside is in security in case your Perl process is compromised. Personally I think the real 'vs.' is between `mod_perl` and `fastcgi` since fastcgi offers the benefits of CGI without as much of an efficiency loss. – Hawken Aug 02 '12 at 03:27