centos6apache2.4mod-fastcgisoftware-collections

Apache installation with mod_fcgi for httpd24 centos 6.9


I have installed php and apache in my centos 6.9 for apache version 2.4 and php version 5.6 as below:

yum install epel-release
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
yum install epel-release
yum repolist
yum --enablerepo=extras install centos-release-scl
yum install httpd24
yum install -y libapache2-mod-fastcgi rh-php56-fpm rh-php56 rh-php56-php rh-php56 rh-php56-cli

but I can't see mod_fcgi.so is in /opt/rh/httpd24/root/etc/httpd/modules directory.

Hence I downloaded the mod_fcgi from http://httpd.apache.org/download.cgi#mod_fcgid.

Need an way so that I can install it existing apache modules

Many thanks in advance


Solution

  • Using httpd24 from Software Collection, you already have mod_proxy_fcgi, other old modules are deprecated.

    I recommend you to read PHP Configuration Tips about such configuration (notice, this was written for CentOS 7 but works on CentOS 6 using httpd24)