I'm trying to set up a CentOS 6 server with virtualmin GPL. Installation went fine, creating virtual servers works, ftp is ok, mail works, etc... Unfortunately, php scripts in virtual servers fail and result in a 500 error.
If I try with an info.php file in /var/www/html/ and open the url for the file (https) it works. If I put the info.php on one of the virtual servers I created, I get the error...
Apache error log says:
[Sun Sep 11 20:45:43 2011] [warn] [client 22.214.171.124] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server
[Sun Sep 11 20:45:43 2011] [error] [client 126.96.36.199] Premature end of script headers: info.php
When I put the php execution mode on mod_php, the scripts work, but I don't really want to do that and I would like to get it working with fast cgi.
Can someone help me out or point me in the right direction? I've been looking at apache configuration, suexec setup, mod_fcgid setup, but I can't find something wrong...