diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 06cd30d..fd5e72b 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -138,7 +138,7 @@ fi ## - Determin httpd binary ## - _httpd_binary="$(which httpd)" -if [ -z "$_httpd_binary" ]; then +if [ -n "$_httpd_binary" ]; then _httpd_binary="$(ps -axu | grep httpd | grep -e "^root" | grep -v grep | awk '{print$11}')" if [ -z "$_httpd_binary" ]; then if [ -x "/usr/local/apache2/bin/httpd" ]; then @@ -823,7 +823,7 @@ do __WITH_MOD_PHP=$_WITH_MOD_PHP fi done -if [ "$__WITH_MOD_PHP" = "true" ] ; then +if [[ "${__WITH_MOD_PHP,,}" = "true" ]] || [[ "${__WITH_MOD_PHP,,}" = 'yes' ]]; then WITH_MOD_PHP=true PHP_VERSION= while [ "X$PHP_VERSION" = "X" ]