Sponsored Content
Full Discussion: apache2 mod_geoip upgrade
Top Forums Web Development apache2 mod_geoip upgrade Post 302350973 by Neo on Sunday 6th of September 2009 04:21:54 PM
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
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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for this . i have sun fire v880 server with configuration metioned below sun fire v880 2*750 MHz UltraSPARC 111 with 4 GB Memory ( 256*16 ) 36*6 GB hard disks( Internal) with other configuration and now i need to upgrade this server.... (3 Replies)
Discussion started by: dhasanka
3 Replies

2. AIX

OS upgrade

Hello, fellows: I have an old H80 with AIX 4.3, I want to upgrade to AIX 5.3, is this possible? I have read in some documentation that is necesary do it version to version, I mean... 4.3->5.1 5.1->5.2 5.2->5.3, anybody have this experience? I will aprecciate yor help. Kind regards. (2 Replies)
Discussion started by: GEIER
2 Replies

3. HP-UX

How to upgrade HP UX 11.22 to 11.23

Hello! I need to upgrade my HP-UX box to latest version, however I dont have any idea how to do it. Somebody can help me here? :D (3 Replies)
Discussion started by: jembalang
3 Replies

4. Red Hat

Upgrade from OL 6.3 to 6.5

Hello, For upgrading from OL 6.3 to 6.5 is this possible to upgrade without rebuild? What should be the generic steps in migration to OL 6.5. IS this like building up from scratch ? Best regards, Vishal (4 Replies)
Discussion started by: admin_db
4 Replies
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 03:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy