create_vhost.sh: only create 'phpinfo.php' if site supports PHP.
This commit is contained in:
parent
80df4e6dfc
commit
85c142f978
@ -3321,7 +3321,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echononl "\tCreate \"phpinfo.php\" file.."
|
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
|
if [ ! -f "${_doc_root}/phpinfo.php" ]; then
|
||||||
cat <<EOF > ${_doc_root}/phpinfo.php
|
cat <<EOF > ${_doc_root}/phpinfo.php
|
||||||
<html>
|
<html>
|
||||||
|
Loading…
Reference in New Issue
Block a user