< Apache HTTP Server
Apache HTTP Server/mod fcgid
mod_fcgid is a FastCGI module for Apache with a GPL license.
apache 2.4 now provides an official module, mod_proxy_fcgi. See configuration example for php-fpm and Apache HTTP Server#Using php-fpm and mod_proxy_fcgi.
Usage
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.
gollark: No, I mean the "we do worse things so you can't criticise this somewhat bad thing" thing does not make sense. Unless you want to justify this "PBS" on its own merits, in which case do so, or actually don't as I don't really care.
gollark: That's a very stupid argument, but I'm not sure what to call it.
gollark: You can just not do either.
gollark: It's not between those though.
gollark: It's fuzzily defined, somewhat niche as a concern anyway, and rarely actually encoded into law.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.