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.
- 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