Unix/Linux Go Back    


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

apache2 mod_geoip upgrade

Web Programming


Tags
apache2, geoip_continent_code, mod_geoip

Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-06-2009   -   Original Discussion by Neo
Neo's Unix or Linux Image
Neo Neo is online now Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 11 December 2017, 10:13 AM EST
Location: Asia pacific region
Posts: 14,083
Thanks: 932
Thanked 1,268 Times in 607 Posts
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.
Attached Files
File Type: gz GeoIP-1.4.6.tar.gz (1,020.7 KB, 10 views)
File Type: gz mod_geoip2_1.2.5.tar.gz (11.3 KB, 9 views)
Sponsored Links
    #2  
Old Unix and Linux 09-06-2009   -   Original Discussion by Neo
reborg's Unix or Linux Image
reborg reborg is offline Forum Advisor  
Administrator Emeritus
 
Join Date: Mar 2005
Last Activity: 29 March 2012, 7:00 PM EDT
Location: Ireland
Posts: 4,464
Thanks: 0
Thanked 14 Times in 12 Posts
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.
Sponsored Links
    #3  
Old Unix and Linux 09-06-2009   -   Original Discussion by Neo
Neo's Unix or Linux Image
Neo Neo is online now Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 11 December 2017, 10:13 AM EST
Location: Asia pacific region
Posts: 14,083
Thanks: 932
Thanked 1,268 Times in 607 Posts
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
BO,SA
BR,SA
BS,SA
BT,AS
BV,AF
BW,AF
BY,EU
BZ,SA
CA,NA
CC,AS
CD,AF
CF,AF
CG,AF
CH,EU
CI,AF
CK,OC
CL,SA
CM,AF
CN,AS
CO,SA
CR,SA
CU,SA
CV,AF
CX,AS
CY,AS
CZ,EU
DE,EU
DJ,AF
DK,EU
DM,SA
DO,SA
DZ,AF
EC,SA
EE,EU
EG,AF
EH,AF
ER,AF
ES,EU
ET,AF
FI,EU
FJ,OC
FK,SA
FM,OC
FO,EU
FR,EU
FX,EU
GA,AF
GB,EU
GD,SA
GE,AS
GF,SA
GG,EU
GH,AF
GI,EU
GL,SA
GM,AF
GN,AF
GP,SA
GQ,AF
GR,EU
GS,SA
GT,SA
GU,OC
GW,AF
GY,SA
HK,AS
HM,AF
HN,SA
HR,EU
HT,SA
HU,EU
ID,AS
IE,EU
IL,AS
IM,EU
IN,AS
IO,AS
IQ,AS
IR,AS
IS,EU
IT,EU
JE,EU
JM,SA
JO,AS
JP,AS
KE,AF
KG,AS
KH,AS
KI,OC
KM,AF
KN,SA
KP,AS
KR,AS
KW,AS
KY,SA
KZ,AS
LA,AS
LB,AS
LC,SA
LI,EU
LK,AS
LR,AF
LS,AF
LT,EU
LU,EU
LV,EU
LY,AF
MA,AF
MC,EU
MD,EU
MG,AF
MH,OC
MK,EU
ML,AF
MM,AS
MN,AS
MO,AS
MP,OC
MQ,SA
MR,AF
MS,SA
MT,EU
MU,AF
MV,AS
MW,AF
MX,NA
MY,AS
MZ,AF
NA,AF
NC,OC
NE,AF
NF,OC
NG,AF
NI,SA
NL,EU
NO,EU
NP,AS
NR,OC
NU,OC
NZ,OC
OM,AS
PA,SA
PE,SA
PF,OC
PG,OC
PH,AS
PK,AS
PL,EU
PM,SA
PN,OC
PR,SA
PS,AS
PT,EU
PW,OC
PY,SA
QA,AS
RE,AF
RO,EU
RU,AS
RW,AF
SA,AS
SB,OC
SC,AF
SD,AF
SE,EU
SG,AS
SH,AF
SI,EU
SJ,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

Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
install apache2 in bsd 6.2 tamayo BSD 2 12-04-2007 03:29 PM



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