- apache_version=$(apachectl -V 2> /dev/null | grep 'Server version' | cut -d ' ' -f3 | sed -e 's,^.*/,,')
+ # somehow in 2019 apachectl stopped answering the -V option
+ # apache_version=$(apachectl -V 2> /dev/null | grep 'Server version' | cut -d ' ' -f3 | sed -e 's,^.*/,,')
+ apache_version=$(rpm -q --queryformat "%{VERSION}" httpd)