Apache HTTP Server/mod fcgid

From ArchWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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

Reason: bad style (Discuss in Talk:Apache HTTP Server/mod fcgid)

Installation

mod_fcgid is a FastCGI module for Apache with a GPL license.

Apache 2.4 (available in the official repositories as apache) now provides an official module, mod_proxy_fcgi. See configuration example for php-fpm and wiki article on set-up using archlinux.

mod_fcgid

Install the mod_fcgid package.

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 does not work? Apache error log (/var/log/httpd/error_log) should help you find the problem.

See also