Yesterday i did a fresh install of ubuntu 16.x with virtualmin. Everythings seems to run with no problem. Than I installed php php5.6 and created 2 (test) domains. One domain for normal test use (joomla, wordpress, suitecrm, etc) which seems to work and another domain where I sselected both for the /root dir the php version 5.6.24 and i selected this version for the folders /soporte / wiki, etc.
but when I go about to install the programs it throws a 500 error and when doing php -v it says: PHP 7.0.9-1+deb.sury.org~xenial+1 (cli) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.9-1+deb.sury.org~xenial+1, Copyright (c) 1999-2016, by Zend Technologies and in the error_log for this domains the last lines say:
[Fri Jul 29 12:27:54.766121 2016] [fcgid:warn] [pid 8051] (104)Connection reset by peer: [client 192.168.1.133:56533] mod_fcgid: error reading data from FastCGI server
[Fri Jul 29 12:27:54.766220 2016] [core:error] [pid 8051] [client 192.168.1.133:56533] End of script output before headers: index.php
[Fri Jul 29 12:32:10.201047 2016] [fcgid:warn] [pid 8052] (104)Connection reset by peer: [client 192.168.1.133:56595] mod_fcgid: error reading data from FastCGI server
[Fri Jul 29 12:32:10.201151 2016] [core:error] [pid 8052] [client 192.168.1.133:56595] End of script output before headers: php.php
[Fri Jul 29 12:54:07.052998 2016] [core:error] [pid 2943] [client 192.168.1.133:56847] End of script output before headers: index.php
[Fri Jul 29 13:03:26.659413 2016] [fcgid:warn] [pid 2941] (104)Connection reset by peer: [client 192.168.1.133:56948] mod_fcgid: error reading data from FastCGI server
Can anyone help me out here as why it does not load the php 5.6.24 version. when doing locate php.ini i get this:
I guess this error is caused by the FastCGI , can this be correct?
can not even run the small php.php script with the contens:
. It gives me the same error. Can anyone help me out here, please? Hoping to hear from you, Regards, Paco
Pd. Tried this solution: https://www.virtualmin.com/node/25539 currenlty for the domain with php v 5.6.24 i have this: CGI wrapper (run as virtual server owner) FCGId (run as virtual server owner) changed it and reloaded and than changed it back to FCGId, but again, but no luck. Please see this