Note: These docs should work just fine for RHEL(Red
Hat Enterprise Linux) 3, but the apr packages are not necessary in RHEL 3.sudo up2date httpd-devel apr apr-devel apr-util-devel)configure --prefix=/usr, but that is entirely optional and against the law in 12 galaxies)cp Makefile.AP2 Makefiletop_dir = /usr/lib/httpd, top_builddir = /usr/lib/httpd, and finally INCLUDES=-I /usr/include/httpd -I /usr/include/apr-0/etc/httpd/conf/httpd.conf
LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule> </pre>
/sbin/service httpd configtest/sbin/service httpd restartIf you run into IPC errors, make sure that /tmp/fcgi_ipc is writable by the apache user and group.
A previous version of this document suggested putting the configuration stuff in /etc/httpd/conf.d/fastcgi.conf
However this can lead to problems on RedHat, since the RedHat supplied /etc/httpd/conf/httpd.conf does an Include conf.d/*.conf operation before the User and Group configuration options are set.
As a result, the IPC Directory is created by root, and is inaccessible to user who runs the web server, which is specified in the User directive.
This results in the following types of errors when starting, or restarting the server:
FastCgiIpcDir /tmp/fcgi_ipc: access for server (uid -1, gid -1) failedTo avoid this problem, ensure that the User and Group are set before the FastCgiIpcDir directive.
Note: These docs should work just fine for RHEL(Red
Hat Enterprise Linux) 3, but the apr packages are not necessary in RHEL 3.sudo up2date httpd-devel apr apr-devel apr-util-devel)configure --prefix=/usr, but that is entirely optional and against the law in 12 galaxies)cp Makefile.AP2 Makefiletop_dir = /usr/lib/httpd, top_builddir = /usr/lib/httpd, and finally INCLUDES=-I /usr/include/httpd -I /usr/include/apr-0/etc/httpd/conf/httpd.conf
LoadModule fastcgi_module modules/mod_fastcgi.so
<IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule> </pre>
/sbin/service httpd configtest/sbin/service httpd restartIf you run into IPC errors, make sure that /tmp/fcgi_ipc is writable by the apache user and group.
A previous version of this document suggested putting the configuration stuff in /etc/httpd/conf.d/fastcgi.conf
However this can lead to problems on RedHat, since the RedHat supplied /etc/httpd/conf/httpd.conf does an Include conf.d/*.conf operation before the User and Group configuration options are set.
As a result, the IPC Directory is created by root, and is inaccessible to user who runs the web server, which is specified in the User directive.
This results in the following types of errors when starting, or restarting the server:
FastCgiIpcDir /tmp/fcgi_ipc: access for server (uid -1, gid -1) failedTo avoid this problem, ensure that the User and Group are set before the FastCgiIpcDir directive.