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
How The File Size Is Limited on a Specific File System
How to Add a Custom System Call on X86 Ubuntu Linux
How to Convert Absolute Path to Relative in C Linux
Xfs - How to Not Modify Mtime When Writing to File
Command Line Video Editing Tools
Error: Nvidia-Smi Has Failed Because It Couldn't Communicate with The Nvidia Driver
Python3 No Such File or Directory
How to Install a Recent Version of Gdal on Amazon Linux
Does Anyone Know Where to Define The Hardware, Revision and Serial No. Fields of /Proc/Cpuinfo
Apache 2.4.23 Undefined Reference to Crypto_Malloc_Init
How to Use Opengl Without a Window Manager in Linux
How to Enable Hocr Font Info in Tesseract 4
Reason of a Directory Size Being Zero
How to Get The Output of at Command in Current or Another Terminal Window