From 3c3d691e963e7ec87a47c86d9cc7ae4546002ee6 Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 16 Jun 2017 00:31:15 +0200 Subject: [PATCH] Fix Bug in determin httpd binary. --- mod_php_install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_php_install.sh b/mod_php_install.sh index 1515c08..8f57c0a 100755 --- a/mod_php_install.sh +++ b/mod_php_install.sh @@ -218,7 +218,7 @@ tmp_err_msg=$(mktemp) ## - _httpd_binary="`which httpd`" if [ -z "$_httpd_binary" ]; then - _httpd_binary="`ps -C httpd -f | grep -e \"^root\" | awk '{print$8}'`" + _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 _httpd_binary="/usr/local/apache2/bin/httpd"