VPS

[Solved]()Connection reset by peer: mod_fcgid: error reading data from FastCGI server

Webmin > servers > apache web server > choose the server with the problem > users and groups > and than “Run CGI programs as -User from global configuration-” and save.

 


 

 

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.

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

    “chattr -i php5.fcgi”

  3. 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)
  4. 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

Leave a Reply

学习的梦想

锤炼的彩色