I am trying to get fastcgi working on a new Ubuntu 16.04 instance running on Amazon. I have swapped php7 for php5.6. I can configure a site to run under mod_php but (so far) not under mod_fcgid. I have a test subdomain set up with just an index.php containing phpinfo();. I get a 500 Internal Server error, and the error log reads:
[Wed Aug 23 18:52:04.610166 2017] [fcgid:warn] [pid 29822] (104)Connection reset by peer: [client 18.104.22.168:50206] mod_fcgid: error reading data from FastCGI server
[Wed Aug 23 18:52:04.610217 2017] [core:error] [pid 29822] [client 22.214.171.124:50206] End of script output before headers: index.php
The following PHP versions are available : 5.6.31 (/usr/bin/php), 5.6.31 (/usr/bin/php5.6)
So, FastCGI seems to be ready to go. I have googled and searched through the forums here, and most frequently there are references to file permissions and timeout. To be sure everything is readable I've set everything to 777 and it still fails. I've set FcgidBusyTimeout 3600 in my .
I note that in fastcgi, each site has it's own php.ini above web root, which in this case would be located at /home/phpinfo/etc/php.ini. The file is there, it's a symlink to /home/phpinfo/etc/php5.6/php.ini, which is NOT present. Not sure if that's a problem or if it just uses default values in that case.
Not sure what else to look for.