Installing the module
To install mod_maxminddb for Apache please follow their installation instructions.
Configuring Matomo
After setting up mod_maxminddb for Apache, you may need to adjust the Matomo Geolocation settings, so Matomo uses the correct server variables. You can do that within the General Settings.