Home Man
Search
Today's Posts
Register

Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics.

apache2 mod_geoip upgrade

Tags
apache2, geoip_continent_code, mod_geoip, web

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 09-06-2009
apache2 mod_geoip upgrade

It seems the version of mod_geoip we are running is a outdated version that does not include some features. I can't find the recommended version with apt-get so I was going to rebuild from scratch. I was looking for apxs2 and could not find it:

Code:
root@www:/usr/lib/apache2/modules# apt-cache search apxs2
apache2-prefork-dev - development headers for apache2
apache2-threaded-dev - development headers for apache2

reborg, I assume I will need to install apache2-prefork-dev to get apxs2 to rebuild mod_geoip ?

Thanks.
# 2  
Old 09-06-2009
Hi Neo,


If you want to go ahead and build the new version of geoip from source than you are correct in assuming that you will need to install apache2-prefork-dev.
# 3  
Old 09-06-2009
Ah! Thanks.

In that case, I'll install apache2-prefork-dev and then manually rebuild mod_geoip.

Thanks!

---------- Post updated at 19:04 ---------- Previous update was at 18:58 ----------

FYI, the reason I am upgrading mod_geoip is that the current version does not support GEOIP_CONTINENT_CODE

Reference:

MaxMind Forum :: View topic - GEOIP_CONTINENT_CODE ?

---------- Post updated at 20:20 ---------- Previous update was at 19:04 ----------

OK, done.

mod_geoip upgraded and we are getting the continent code as well as country codes, example from phpinfo()

Code:
_SERVER["GEOIP_ADDR"]	123.456.789.123
_SERVER["GEOIP_CONTINENT_CODE"]	NA
_SERVER["GEOIP_COUNTRY_CODE"]	US
_SERVER["GEOIP_COUNTRY_NAME"]	United States



---------- Post updated at 20:21 ---------- Previous update was at 20:20 ----------

FYI, reference country code / continent code:

Code:
AP,AS
EU,EU
AD,EU
AE,AS
AF,AS
AG,SA
AI,SA
AL,EU
AM,AS
AN,SA
AO,AF
AQ,AN
AR,SA
AS,OC
AT,EU
AU,OC
AW,SA
AX,EU
AZ,AS
BA,EU
BB,SA
BD,AS
BE,EU
BF,AF
BG,EU
BH,AS
BI,AF
BJ,AF
BM,SA
BN,AS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EU
SK,EU
SL,AF
SM,EU
SN,AF
SO,AF
SR,SA
ST,AF
SV,SA
SY,AS
SZ,AF
TC,SA
TD,AF
TF,AF
TG,AF
TH,AS
TJ,AS
TK,OC
TM,AS
TN,AF
TO,OC
TP,AS
TR,AS
TT,SA
TV,OC
TW,AS
TZ,AF
UA,EU
UG,AF
UM,OC
US,NA
UY,SA
UZ,AS
VA,EU
VC,SA
VE,SA
VG,SA
VI,SA
VN,AS
VU,OC
WF,OC
WS,OC
YE,AS
YT,AF
YU,EU
ZA,AF
ZM,AF
ZR,AF
ZW,AF

Login to Reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Upgrade from OL 6.3 to 6.5 admin_db Red Hat 4 03-21-2016 06:58 PM
HMC Upgrade JME2015 AIX 2 10-09-2015 09:21 AM
Upgrade from AIX 5.3 to 6.1 harsh_mulay AIX 1 11-19-2009 07:37 AM
How to upgrade HP UX 11.22 to 11.23 jembalang HP-UX 3 02-15-2008 02:29 AM
HELP for AIX 4.3 upgrade to 5.3 JDM AIX 3 04-01-2006 01:11 AM


All times are GMT -4. The time now is 05:15 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password