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.

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

1 Answer 1

up vote 2 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
1  
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

 
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.