From 85c142f978a0497e5e5fe36ee8a77d18da7b6276 Mon Sep 17 00:00:00 2001 From: Christoph Date: Thu, 28 Dec 2023 17:49:56 +0100 Subject: [PATCH] create_vhost.sh: only create 'phpinfo.php' if site supports PHP. --- create_vhost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_vhost.sh b/create_vhost.sh index e3ef8a3..5b605a1 100755 --- a/create_vhost.sh +++ b/create_vhost.sh @@ -3321,7 +3321,7 @@ else fi echononl "\tCreate \"phpinfo.php\" file.." -if $CREATE_PHPINFO_FILE ; then +if $CREATE_PHPINFO_FILE && [ "$_type" = "PHP-FPM" -o "$_type" = "FCGID" ]; then if [ ! -f "${_doc_root}/phpinfo.php" ]; then cat < ${_doc_root}/phpinfo.php