You are here

Connection reset by peer: mod_fcgid: error reading data from FastCGI server

Submitted by Alan Mels on Fri, 10/12/2018 - 13:06

Sometimes when migrating sites are switching between mod_php and FCGId permissions can get mangled which cause errors such as:

(104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server

when running in FCGId mode.

I found a solution to be ass follows.

Go to /home/sitename/fcgi-bin
Use the follpwoing command to reset the immutable flag

"chattr -i php5.fcgi"

Then delete the /home/sitename/etc and /home/sitename/fcgi-bin directories (making sure that anything that's not php related in etc is saved)
Using virtualmin switch back to apache mod_php mode and then back to FCGId mode. The site should now work Dont forget to chown any files/directories in public_html that were apache to : Note that these are both usually the sitename.
Hope this helps