Difference between revisions of "Apache HTTP Server/mod fcgid"

From ArchWiki
Jump to navigation Jump to search
m (See also)
m (Added poorly written template.)
Line 1: Line 1:
 +
{{Poor_writing}}
 +
 
[[Category:Networking (English)]]
 
[[Category:Networking (English)]]
 
[[Category:HOWTOs (English)]]
 
[[Category:HOWTOs (English)]]

Revision as of 19:43, 27 November 2009

Tango-edit-clear.pngThis article or section needs language, wiki syntax or style improvements. See Help:Style for reference.Tango-edit-clear.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Apache HTTP Server/mod fcgid#)

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

Introduction

There are two FastCGI modules for Apache:

They both have permissive licenses (custom for mod_fastcgi and GPL for mod_fcgid) and they are both available in AUR.

mod_fastcgi

Step 1: Installation

mod_fastcgi is available in AUR

Step 2: Configuration

First you need to load the fastcgi module. Make sure that the following is present and uncommented in your httpd.conf:

LoadModule fastcgi_module modules/mod_fastcgi.so

Then you need to tell Apache when to use FastCGI.

For example you can ask Apache to treat all .fcgi files as fastcgi applications:

<IfModule fastcgi_module>
  AddHandler fastcgi-script .fcgi # you can put whatever extension you want
</IfModule>

Remember that standard CGI restrictions apply, files must be in an ExecCGI enabled directory to execute.

mod_fcgid

Step 1: Installation

mod_fcgid is available in AUR

Step 2: Configuration

First you need to load the fastcgi module. Make sure that the following is present and uncommented in your httpd.conf:

LoadModule fcgid_module modules/mod_fcgid.so

Then you need to tell Apache when to use FastCGI.

For example you can ask Apache to treat all .fcgi files as fastcgi applications:

<IfModule fcgid_module>
  AddHandler fcgid-script .fcgi # you can put whatever extension you want
</IfModule>

Remember that standard CGI restrictions apply, files must be in an ExecCGI enabled directory to execute.

Troubleshooting

It doesn't work? Apache error log (/var/log/httpd/error_log) should help you find the problem.

See also