PHP: mod_fcgid: error reading data from FastCGI server

Published by

Posted on April 06, 2019

mod_fcgid: error reading data from FastCGI server

This error can be due to a number of reasons. I really wish it was more descriptive . In our case
the issue was related to the path suexec expected the files to be.

suexec -V
-D AP_DOC_ROOT=”/var/www/”

Suexec was compiled to use /home as the Doc root and we had previously compiled a version of suexec with /var/www. I may put together a how to in regards to compiling suexec with Apache.

  • I copied our custom compiled version to /sbin/suexec and added the user bit chmod u+S /sbin/suexec
  • Restarted apache
  • I verified the suexec logs was showing some data . tail -f /var/log/httpd/suexec.log

About the Author