diff --git a/install_httpd-2.4.sh b/install_httpd-2.4.sh index 1c7cae4..d89a9c7 100755 --- a/install_httpd-2.4.sh +++ b/install_httpd-2.4.sh @@ -67,12 +67,19 @@ shopt -u extglob ## - declare -a _php_socket_arr=() -while IFS='' read -r -d '' _socket ; do +while IFS='' read -r -d '' _socket ; do #echo "socket: $_socket" _php_major_version="$(echo "$_socket" | cut -d '-' -f2)" _php_socket_arr+=("${_php_major_version}:$_socket") done < <(find "/tmp" -type s -name "php*" -print0 | sort -z) +if [[ -d "/run/php" ]] ; then + while IFS='' read -r -d '' _socket ; do + _php_major_version="$(echo "$_socket" | cut -d '-' -f2)" + _php_socket_arr+=("${_php_major_version}:$_socket") + done < <(find "/run/php" -type s -name "php*" -print0 | sort -z) +fi + ## - substitude path "/usr/local/httpd-$APACHE_VERSION" to "/usr/local/apache2" ## - in apache configuration files ? ## -