Installing mod_fcgid on Apache HTTP Server 2.0.x configurations under Linux/Unix
book
Article ID: 341896
calendar_today
Updated On:
Products
VMwareSupport Only for Apache HTTP
Issue/Introduction
The PHP version included in vFabric Enterprise Ready Server (ERS) 4.0.x for Apache HTTP Server 2.0.x configurations is limited to PHP4. This article provides information on how to compile the mod_fcgid httpd module for such a system, so that httpd can be configured to use a PHP installation of your choice.
Environment
VMware vFabric Enterprise Ready Server 4 Apache HTTP Server 2.0
Resolution
To install mod_fcgid on Apache HTTP Server 2.0.x configurations under Linux/Unix:
Note:The preceding link was correct as of November 11, 2011. If you find the link is broken, provide feedback and a VMware employee will update the link.
Unpack the mod_fcgid files to a convenient location.
Open the apxs script located at /path/to/ers/apache2.0/bin/ using a text editor.
Change the first line:
#!/usr/local/bin/perl –w
To
#!/bin/sh /path_to_ers/perl5.8/bin/perl
For example:
#!/bin/sh /usr/local/ers/perl5.8/bin/perl
Change directory to the mod_fcgid installation files.
Ensure that you have installed a C compiler toolchain on your system to compile mod_fcgid.
To compile mod_fcgid, run this command:
make; make install
Note: You may see this error, which can be safely ignored:
Installing configuration files make[1]: /path/to/ers/httpd-2.0-svn/build/mkdir.sh: Command not found.
Move the mod_fcgid.so file located at /path/to/ers/apache2.0/modules to the standard subdirectory within the modules directory, so that the path to the mod_fcgid.so file is /path/to/ers/apache2.0/modules/standard/.
If you want to build a version of PHP of your choice, use this configuration line:
This entry assumes that the local php installation resides in /usr/local/php.
Ensure to enable cgi when building PHP as mod_fcgid depends on the php-cgi binary to serve PHP content.
You may have to install third party applications to meet the build requirements. You may also elect to incorporate additional features in your PHP build. Such modifications are beyond the scope of this document. For more information on the installation and configuration issues, see the PHP documentation.