From 40acc9cbab335b471f22b987f58ebd10e040c43e Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 14 Sep 2018 19:01:24 +0200 Subject: [PATCH] create_summary_websites.sh: use php binary to determin php version instead of php-cgi. --- create_summary_websites.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_summary_websites.sh b/create_summary_websites.sh index b0ecab2..156a745 100755 --- a/create_summary_websites.sh +++ b/create_summary_websites.sh @@ -840,7 +840,7 @@ for _vhost_file in ${_all_vhost_files_arr[@]} ; do _php_fpm_socket= fi if [[ -S "$_php_fpm_socket" ]] ; then - _php_version="$(exec /usr/local/php-$(echo "$_php_fpm_socket" | grep -o -E "[5-9]\.[0-9]")/bin/php-cgi -v \ + _php_version="$(exec /usr/local/php-$(echo "$_php_fpm_socket" | grep -o -E "[5-9]\.[0-9]")/bin/php -v \ | head -1 | awk '{print$2}')" else _php_version="UNKNOWN"