hi guys,
i have a number of php versions available in virtualmin. These are:
- php5.6
- php 7.0
- php 7.1
- php 7.2
If i go to Virtualmin/Server Cofniguration/PHP Versions and select either php 7.1 or 5.6 i get an internal server error 500 when i browser http://mydomain.com/phpinfo.php (to check which version is active).
I am checking the active version via url because even though i have selected 5.6 in virtualmin interface, for some reason when i enter the following in command shell
php -v
in command shell the following output is given…
php -v
PHP 7.2.9-1+0~20180901081133.4+stretch~1.gbpdaac35 (cli) (built: Sep 1 2018 08:11:34) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.2.9-1+0~20180901081133.4+stretch~1.gbpdaac35, Copyright (c) 1999-2018, by Zend Technologies
This says php 7.2???
I am trying to get 5.6 working and fix the internal server 500 error when accessing url via web browser.
apache error log says the following…
[Thu Sep 06 12:10:01.470592 2018] [fcgid:warn] [pid 11364:tid 140490888423168] (104)Connection reset by peer: [client] mod_fcgid: error reading data from FastCGI server
[Thu Sep 06 12:10:01.470640 2018] [core:error] [pid 11364:tid 140490888423168] [client ] End of script output before headers: phpinfo.php