logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: VS18 mod_maxminddb.so and mod_ip2location
Author
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Mon 18 May '26 21:46    Post subject: VS18 mod_maxminddb.so and mod_ip2location Reply with quote

Does anyone have a compiled version of mod_maxminddb.so?

Compatible with the latest VS18 Apache version pls...
Back to top
nono303



Joined: 20 Dec 2016
Posts: 230
Location: Lille, FR, EU

PostPosted: Tue 19 May '26 7:57    Post subject: Reply with quote

Hi,
You can find mod_maxminddb 1.3.0.83 (bc24e6a 2026-05-14) vs18 x64 build here
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Tue 19 May '26 17:47    Post subject: Reply with quote

I've downloaded both versions: vs18_x64-avx.zip and vs18_x64-avx2.zip
but this mod_maxminddb.so is NOT compatible with our Apache httpd-2.4.67-260504-Win64-VS18.
Other sugesstion?
Back to top
timo



Joined: 03 Jun 2012
Posts: 49
Location: FI, EU

PostPosted: Wed 20 May '26 6:36    Post subject: Reply with quote

I'm using mod_maxminddb-1.2.0.160-2.4.x-x64-vs17 from Apach e Haus https://www.apachehaus.com/cgi-bin/download.plx
It's vs17 but runs fine with Apache 2.4.67
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Wed 20 May '26 6:41    Post subject: Reply with quote

Yes, I do that too. I also use the VS17 version but I was hoping someone had a good compatible VS18 version. It would be a nice addition to the existing Apache Lounge mods Smile
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 751

PostPosted: Wed 20 May '26 7:13    Post subject: Reply with quote

What error do you get. Or at start.
Back to top
nono303



Joined: 20 Dec 2016
Posts: 230
Location: Lille, FR, EU

PostPosted: Wed 20 May '26 18:08    Post subject: Reply with quote

mod_maxminddb.so is linked with shared /bin/maxminddb.dll which must be in your path
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3191
Location: Hilversum, NL, EU

PostPosted: Thu 21 May '26 9:48    Post subject: Reply with quote

Please try this one :

https://www.apachelounge.com/download/VS18/modules/mod_maxmindd-260520-Win64.rar


The default CMake build file that comes with the package wants to build a static library; hence created a maxminddb.lib file.


copy maxminddb.lib to your /bin folder

cppy mod_maxminddb.so to your /modules folder
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Thu 21 May '26 16:18    Post subject: Reply with quote

THX, testing the new mmdb.so file right now.

21-05 16:30h > looks good! THX for your file. Much appreciated! Very Happy


Last edited by RolfBos on Thu 21 May '26 16:26; edited 1 time in total
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Thu 21 May '26 16:24    Post subject: Reply with quote

Is there by any chance also a compatible VS18 version for IP2LOCATION-LITE-ASN.BIN as well?

https://github.com/ip2location/ip2location-apache
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3191
Location: Hilversum, NL, EU

PostPosted: Wed 27 May '26 9:22    Post subject: Reply with quote

Tangent was kind to build one, and updated his script https://www.apachelounge.com/viewtopic.php?p=44351#44351


Please test

https://www.apachelounge.com/download/VS18/modules/mod_ip2location-260526-Win64.rar

See readme.txt in the rar.
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Sat 30 May '26 18:01    Post subject: Reply with quote

Thank you very much for your IP2location file. I'm going to test it out right away. Much appreciated. Very Happy
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Sat 30 May '26 18:18    Post subject: Reply with quote

Hi,
# --- security2 (mod_security2) ---
LoadModule security2_module modules/mod_security2.so
# --- MaxMindDB (mod_maxminddb) ---
LoadModule maxminddb_module modules/mod_maxminddb.so
# --- IP2Location (mod_ip2location) ---
# LoadModule IP2Location_module modules/mod_ip2location.so

The file is read by Apache VS18 without an error message. However, as soon as this ip2location file is loaded, all web pages on the server are blank.

<IfModule mod_ip2location.c>
IP2LocationDBFile f:/wamp/geoip/IP2LOCATION-LITE-DB11.BIN
IP2LocationDBFile f:/wamp/geoip/IP2LOCATION-LITE-ASN.BIN
IP2LocationEnable ON
IP2LocationDetectProxy ON
IP2LocationSetmode ALL
</IfModule>

<IfModule mod_ip2proxy.c>
IP2ProxyDBFile f:/wamp/geoip/IP2PROXY-LITE-PX12.BIN
IP2ProxyEnable ON
IP2ProxyDetectProxy ON
IP2ProxySetmode ALL
</IfModule>

Error:
Naam van toepassing met fout: httpd.exe, versie: 2.4.67.0, tijdstempel: 0x69f317e6
Naam van module met fout: mod_ip2location.so, versie: 0.0.0.0, tijdstempel: 0x6a15c4ce
Uitzonderingscode: 0xc0000005
Foutmarge: 0x0000000000001f93
Id van proces met fout: 0x5f1c
Starttijd van toepassing met fout: 0x01dcf0515fd02a42
Pad naar toepassing met fout: F:\wamp\apache\bin\httpd.exe
Pad naar module met fout: F:\wamp\Apache\modules\mod_ip2location.so
Rapport-id: 5b62eb1c-db54-4f02-98a4-2df7f3102ede
Volledige pakketnaam met fout:
Relatieve toepassings-id van pakket met fout:


Last edited by RolfBos on Sat 30 May '26 18:30; edited 1 time in total
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Sat 30 May '26 18:29    Post subject: Reply with quote

I hope you can solve the problem. Shocked
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 445
Location: UK

PostPosted: Sat 30 May '26 22:43    Post subject: Reply with quote

As Steffen implied, we've been able to compile this ip2location module under VS18 against the HTTPD 2.4.67 build structure, but are unable to test it in detail.

Your post throws up a number of potential issues, which may explain why things are not behaving as you'd expect:

1) Your post details confirm you're running against WAMP binaries rather than those for the Apache Lounge build, against which these extra ip2location files were built.

2) Exception code: 0xc0000005 is an Access Violation, which in this situation rather suggest incompatible software components.

3) Your log shows you are also using mod_ip2proxy; another ip2location related module which we've not considered to date.

I'm not sure what to suggest here.

I could update the HowTo to add further code to build the ip2proxy module, but am not sure this will solve your problem.

I presume there are no errors reported in the log file, that would help. What happens if you up the LogLevel to debug?
Back to top
RolfBos



Joined: 03 Mar 2026
Posts: 11
Location: Netherlands

PostPosted: Sun 31 May '26 1:00    Post subject: Reply with quote

You are right, I made a mistake. Sad

I am looking for a compiled version of mod_ip2proxy.so that is compatible with Apache Lounge v2.4.67-260504 VS18 Win64?

Does anyone have it or can anyone put it online? Embarassed
Back to top
Otomatic



Joined: 01 Sep 2011
Posts: 328
Location: Paris, France, EU

PostPosted: Sun 31 May '26 11:52    Post subject: Reply with quote

tangent wrote:
1) Your post details confirm you're running against WAMP binaries rather than those for the Apache Lounge build, against which these extra ip2location files were built.


Hi,

Wamp Apache is built using the Apache Lounge binaries.
The only difference is the contents of the httpd.conf file.
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 445
Location: UK

PostPosted: Sun 31 May '26 14:52    Post subject: Reply with quote

@Otomatic - My sincere apologies. I should have checked facts before posting.

@RolfBos - It would seem there are quite a few ip2location repositories on GitHub; somewhat difficult to follow.

Looking at https://github.com/ip2location/ip2proxy-c the code listed produces another library, plus an executable.

Believe that library is needed to link with the ip2proxy Apache module, found here https://github.com/ip2location/ip2proxy-apache.

Assuming these are what you need, I'll see if I can add them to the extra modules build HowTo.
Back to top


Reply to topic   Topic: VS18 mod_maxminddb.so and mod_ip2location View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules