Apache mod_fcgid
mod_fcgid
is the Fast CGI module from Apache. It can be used to run CGI programs, such as php-fpm
or php-cgi
. It is not included with Apache, and must be downloaded and installed separately.
The program uses apxs
to find the Apache build system configuration. You can override the default location of the program with the APXS
environment variable:
APXS=/usr/local/apache2/bin/apxs ./configure.apxs
Build and installation is simple:
./configure.apxs make make install
OS X
When building mod_fcgid
against the native installation of Apache, the link for the gcc compiler has changed, and a symlink will need to be made. I haven't found any way to be able to override the values set by apxs, so this will have to do:
ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain