Centos Mod_Fastcgi

Apache installation with mod_fcgi for httpd24 centos 6.9

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)

Apache2 + FastCGI + php-fpm on CentOS 6.4 == Works, but errors in error_log

You did

# chmod 777 /etc/httpd/logs/fastcgi/dynamic

But don't you need to set the readable bit for the grandparent directory, and make the parent directory writable? E.g.

# chmod -R a+rX /etc/httpd/logs
# chmod -R a+w /etc/httpd/logs/fastcgi

This worked for me...

FastCGI script can't find libfcgi.so.0 in Apache 2.4.6 and mod_fastcgi

I had similar issue with nginx, I fixed it by using rpath option.

Not sure if it will help with Apache. Try building your binary like this:

gcc test.c -Wl,-rpath /usr/local/lib -lfcgi -o test.fcg

Make sure the library file libfcgi.so.0 is present at /usr/local/lib.

If you don't have access to /usr/local/lib, then create the lib folder in your $HOME, and copy the library file there. And update the rpath to point to there. For example, if your $HOME is /home/xyz, then you would build like:

gcc test.c -Wl,-rpath /home/xyz/lib -lfcgi -o test.fcg

Sometimes I use this trick to load newer libraries than what is installed on the system.



Related Topics



Leave a reply



Submit