If php-cgi not found, try '/usr/local/php/bin/php-cgi'
This commit is contained in:
parent
8b3efa1405
commit
c061ef7303
@ -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
|
||||
|
||||
|
||||
#---------------------------------------
|
||||
#-----------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user