Astral God

Well-Known Member
Sep 27, 2010
180
0
66
127.0.0.1
cPanel Access Level
Root Administrator
So, i've tried to install it via PHP Pecl, but:

Code:
downloading geoip-1.0.8.tgz ...
Starting to download geoip-1.0.8.tgz (10,061 bytes)
.....done: 10,061 bytes
5 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
building in /root/tmp/pear/pear-build-rootiJOM8P/geoip-1.0.8
running: /root/tmp/pear/geoip/configure
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... re2c
checking for re2c version... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for geoip support... yes, shared
checking for geoip files in default path... not found
configure: error: Please reinstall the geoip distribution
ERROR: `/root/tmp/pear/geoip/configure' failed
The geoip.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/etc/php.ini...
No changes
 

dannet

Member
May 7, 2006
9
0
151
Buenos Aires, Argentina
cPanel Access Level
Root Administrator
I've the same issue trying to update mod_geoip to the latest version.

I think could be important to have the mod_geoip custom module for easyapache updated to the latest version (1.2.7) to avoid losing settings each time we recompile apache.

Regards,
Daniel.
 

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
Hello dannet and Astral God,

Since mod_geoip is a custom module provided by a third party and is optionally incorporated into EasyApache by an administrator, a new custom module for the updated version of mod_geoip will need to be created by that administrator who would like to install it.

Have a good day

EDIT: The EasyApache team has some additional comments about this. EasyApache does provide a link to download mod_geoip in the Custom Modules page, but does not support custom modules. The downloaded mod can be altered to point to a newer version such as 1.2.7.
 
Last edited:

cPanelJamyn

Social Engineer
Staff member
Jan 29, 2009
105
2
143
Hi cPanelJamyn,
mod_geoip v1.2.8 for Apache 2.x
shouldn't it be v1.2.7 ?
No. The development page is available here. The download link is v1.2.8, but they haven't updated the listed version from 1.2.7.

1.2.8 Jan 8th 2013
- Add GeoIPUseFirstNumPrivateXForwardedForIP option ( Boris Zentner )
- Support Apache 2.4 ( Boris Zentner )
- Use GeoIP_id_by_addr_v6 instead of GeoIP_country_id_by_addr_v6 ( Boris Zentner )
- Include util_script.h to silence warning about ap_add_common_vars ( Boris Zentner )

1.2.7 Aug 23th 2011
- Add support for GEOIP_NETSPEED_REV1 ( Boris Zentner )
- Experimental support for GEOIP_COUNTRY_EDITION_V6 ( Boris Zentner )
- Add GEOIP_DOMAIN_EDITION support ( Boris Zentner )

1.2.6 Sep 11th 2008
- GEOIP_METRO_CODE replace the depreciated GEOIP_DMA_CODE ( Boris Zentner )

1.2.5 Aug 13th 2008
! Fix GEOIP_REGION and GEOIP_COUNTRY_CODE when used with the GeoIPRegion database. Both are only set if a region or country was found. Previously a empty string was assigned to both ( Boris Zentner )
- Add GEOIP_REGION_NAME for City and Region databases ( Boris Zentner )​
 
Last edited:

pnueda

Member
Nov 12, 2010
5
0
51
There seems to be a compatibility issue using mod_perl 2.0.8 and mod_geoip 1.2.8
I am running CENTOS 6.5 x86_64 virtuozzo – WHM 11.44.1 (build 11) with Easy Apache v3.26.4
I have other server with mod_perl 2.0.6 and mod_geoip 1.2.5 running fine. Same versions of Cpanel and EA.
Could you please give any advice?

Thank you in advance,
Paco
 

ScottTh

Well-Known Member
Jan 28, 2013
157
2
18
Houston, TX
cPanel Access Level
Root Administrator
There seems to be a compatibility issue using mod_perl 2.0.8 and mod_geoip 1.2.8
I am running CENTOS 6.5 x86_64 virtuozzo – WHM 11.44.1 (build 11) with Easy Apache v3.26.4
I have other server with mod_perl 2.0.6 and mod_geoip 1.2.5 running fine. Same versions of Cpanel and EA.
Could you please give any advice?

Thank you in advance,
Paco
Hi Paco,

What kind of compatibility issues are you seeing with mod_perl 2.0.8 and mod_geoip 1.2.8? Have you been able to narrow down that the new mod_perl is the cause of the issue rather than the newer version of mod_geoip you're using?

I would suggest trying mod_perl 2.0.8 with mod_geopip 1.2.5 so we can start determine where the issue actually lies.

Thank for the post and keep us updated.