Key Recommendations

  • Set sanity timers in CGIs.

  • Get some output from the CGI to the user right away.

  • Don’t write CGIs in a shell scripting language.

  • Daemonize CGIs.

  • FastCGI scales much better than CGI.

  • Use mod_perl if your CGIs are in Perl and your server is Apache.

Get Web Performance Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.