scripts.mit.edu

MIT SIPB Script Services for Athena

FAQ → Web Script Service

How do I enable FastCGI?

FastCGI is a web server module that speeds up your applications by keeping one interpreter running for multiple requests, instead of launching a separate interpreter for each request made while loading your page. This increases the runtime performance of websites written in many languages, such as PHP and Perl, and especially for Ruby on Rails.

FastCGI is enabled by default for files with the .fcgi extension. To enable FastCGI for another extension, such as .rb, add the following lines to a plain text file named .htaccess in the top directory of your website:

<Files *.rb>
  SetHandler fcgid-script
</Files>

Be sure to make the .htaccess file accessible to Apache. To enable FastCGI for another languages, change rb to your language’s extension (e.g., php, pl, etc.)

Previous:
Next:
© 2004-2008, the SIPB scripts.mit.edu project.
These pages may be reused under either the GFDL 1.2 or CC-BY-SA 3.0.
Questions? Contact scripts@mit.edu.

You are currently connected to bees-knees.mit.edu.