Friday, October 30, 2015

Find out apache module version

It took me sometime to find out a way to determine the version number of any apache module. Basically the 'strings' command can extract the existing strings in the shared library and with grep we can use the regex "${mod_name}/[0-9]\.[0-9]" where mod_name is a variable containing the name of the module. I am omitting the real version numbers below for security reasons:
$ strings /usr/lib/apache2/modules/ \
    | grep "mod_pagespeed/[0-9]\.[0-9]"
$ strings /usr/lib/apache2/modules/ \
    | grep "mod_ssl/[0-9]\.[0-9]"

No comments: