If php-cgi not found, try '/usr/local/php/bin/php-cgi'

This commit is contained in:
Christoph 2017-03-03 12:30:02 +01:00
parent 8b3efa1405
commit c061ef7303

View File

@ -18,7 +18,6 @@ else
fi
php_cgi=$(realpath $(which php-cgi))
KILL_SIGNAL=HUP
@ -76,6 +75,16 @@ if [ -z "`which realpath`" ]; then
fatal 'It seems "realpath" is not installed, but needed!'
fi
php_cgi=$(realpath $(which php-cgi))
if [[ -z "$php_cgi" ]]; then
if [[ -x "/usr/local/php/bin/php-cgi" ]]; then
php_cgi="/usr/local/php/bin/php-cgi"
else
fatal "No 'php-cgi' binary found."
fi
fi
#---------------------------------------
#-----------------------------