create_vhost.sh: only create 'phpinfo.php' if site supports PHP.

This commit is contained in:
Christoph 2023-12-28 17:49:56 +01:00
parent 80df4e6dfc
commit 85c142f978

View File

@ -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 <<EOF > ${_doc_root}/phpinfo.php
<html>