Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What factors should I consider when deciding whether to use Apache's mod_perl or mod_cgi, when configuring an existing web application?

share|improve this question
up vote 3 down vote accepted

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.

share|improve this answer
The 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 2 '12 at 3:27

Your Answer


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.