Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-19, 13:45:52

Author Topic: Awstats + GeoIP  (Read 30676 times)

0 Members and 1 Guest are viewing this topic.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Awstats + GeoIP
« Reply #15 on: 2013-07-19, 01:59:24 »
It's ok in my server. Just execute:
Code: [Select]
[root@testing ~]# sh /script/lxphp-module php52-pecl-geoip
sh: /script/lxphp-module: No such file or directory
[root@testing ~]# sh /script/lxphp-module-install php52-pecl-geoip
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * Webmin: webmin.mirror.somersettechsolutions.co.uk
 * base: mirror.ovh.net
 * extras: mirror.ovh.net
 * kloxo-mr-epel: mirrors.ircam.fr
 * kloxo-mr-ius: mirrors.ircam.fr
 * updates: mirror.ovh.net
0 packages excluded due to repository protections
Setting up Install Process
Package yum-utils-1.1.30-14.el6.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, priorities, protectbase
Loading mirror speeds from cached hostfile
 * Webmin: webmin.mirror.somersettechsolutions.co.uk
 * base: mirror.ovh.net
 * extras: mirror.ovh.net
 * kloxo-mr-epel: mirrors.ircam.fr
 * kloxo-mr-ius: mirrors.ircam.fr
 * updates: mirror.ovh.net
0 packages excluded due to repository protections
php52-pecl-geoip-1.0.8-1.ius.centos5.x86_64.rpm          |  13 kB     00:00
./etc/php.d/geoip.ini
./usr/lib64/php/modules/geoip.so
./usr/share/doc/php52-pecl-geoip-1.0.8
./usr/share/doc/php52-pecl-geoip-1.0.8/ChangeLog
./usr/share/doc/php52-pecl-geoip-1.0.8/README
./usr/share/pear/.pkgxml/php52-pecl-geoip.xml
60 blocks
[root@testing ~]# lxphp.exe -m
[PHP Modules]
bcmath
bz2
ctype
curl
date
dba
dom
exif
filter
ftp
gd
geoip
gettext
gmp
hash
iconv
imap
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
readline
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
standard
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]

[root@testing ~]#
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #16 on: 2013-07-19, 02:02:19 »
I use main php from remi-repo as php.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Awstats + GeoIP
« Reply #17 on: 2013-07-19, 02:04:49 »
For primary php, it's depend on php version. When using php 5.3, try 'yum install php53u-pecl-geoip'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #18 on: 2013-07-19, 02:08:05 »
All works ok for me on primary php. I'm installing php 5.4 modules with yum install php-pecl-geoip. The only problem is on secondary. I like remi repo because he's got the biggest collection of php modules and updates very frequently. Never had any troubles with his repo.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Awstats + GeoIP
« Reply #19 on: 2013-07-19, 02:11:00 »
Quote from: "Spacedust"
All works ok for me on primary php. I'm installing php 5.4 modules with yum install php-pecl-geoip. The only problem is on secondary. I like remi repo because he's got the biggest collection of php modules and updates very frequently. Never had any troubles with his repo.
You can not use php 5.3/5.4 extension/module for php 5.2 (where lxphp still as php 5.2). That it.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #20 on: 2013-07-19, 02:19:43 »
Quote from: "MRatWork"
Quote from: "Spacedust"
All works ok for me on primary php. I'm installing php 5.4 modules with yum install php-pecl-geoip. The only problem is on secondary. I like remi repo because he's got the biggest collection of php modules and updates very frequently. Never had any troubles with his repo.
You can not use php 5.3/5.4 extension/module for php 5.2 (where lxphp still as php 5.2). That it.

I use php 5.4 extensions only for main php. Secondary php modules are installed from your repos.
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #21 on: 2013-07-19, 02:24:59 »
Take a look:

Code: [Select]
[root@backup /]# sh /script/lxphp-module-install php52-pecl-geoip
Loaded plugins: fastestmirror, protectbase, replace
Loading mirror speeds from cached hostfile
 * addons: centos.bhs.mirrors.ovh.net
 * atomic: www6.atomicorp.com
 * base: centos.bhs.mirrors.ovh.net
 * elrepo: mirror.symnds.com
 * elrepo-kernel: mirror.symnds.com
 * extras: centos.bhs.mirrors.ovh.net
 * kloxo-mr-epel: fedora.mirror.nexicom.net
 * kloxo-mr-ius: ord.mirror.rackspace.com
 * kloxo-mr-ius-c5: ord.mirror.rackspace.com
 * remi: mirrors.mediatemple.net
 * updates: centos.bhs.mirrors.ovh.net
Excluding Packages in global exclude list
Finished
Excluding Packages from Kloxo-MR - centalt - x86_64
Finished
Excluding Packages from Kloxo-MR - IUS Community Packages for EL 5 - x86_64
Finished
Reducing Kloxo-MR - IUS Community Packages for EL 5 (special) - x86_64 to included packages only
Finished
0 packages excluded due to repository protections
Setting up Install Process
Package yum-utils-1.1.16-21.el5.centos.noarch already installed and latest version
Nothing to do
Loaded plugins: fastestmirror, protectbase
Loading mirror speeds from cached hostfile
 * addons: centos.bhs.mirrors.ovh.net
 * atomic: www6.atomicorp.com
 * base: centos.bhs.mirrors.ovh.net
 * elrepo: mirror.symnds.com
 * elrepo-kernel: mirror.symnds.com
 * extras: centos.bhs.mirrors.ovh.net
 * kloxo-mr-epel: fedora.mirror.nexicom.net
 * kloxo-mr-ius: ord.mirror.rackspace.com
 * kloxo-mr-ius-c5: ord.mirror.rackspace.com
 * remi: mirrors.mediatemple.net
 * updates: centos.bhs.mirrors.ovh.net
Excluding Packages in global exclude list
Finished
Excluding Packages from Kloxo-MR - centalt - x86_64
Finished
Excluding Packages from Kloxo-MR - IUS Community Packages for EL 5 - x86_64
Finished
Reducing Kloxo-MR - IUS Community Packages for EL 5 (special) - x86_64 to included packages only
Finished
0 packages excluded due to repository protections
php52-pecl-geoip-1.0.8-3.mr.el5.x86_64.rpm                       |  13 kB     00:00
./etc/php.d/geoip.ini
./usr/lib64/php/modules/geoip.so
./usr/share/doc/php52-pecl-geoip-1.0.8
./usr/share/doc/php52-pecl-geoip-1.0.8/ChangeLog
./usr/share/doc/php52-pecl-geoip-1.0.8/README
./usr/share/pear/.pkgxml/php52-pecl-geoip.xml
60 blocks
[root@backup /]# lxphp.exe -m
[PHP Modules]
bcmath
bz2
ctype
curl
date
dba
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
ncurses
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
posix
readline
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SourceGuardian
SPL
SQLite
standard
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend Optimizer
zip
zlib

[Zend Modules]
SourceGuardian
Zend Optimizer
the ionCube PHP Loader

[root@backup /]# php -m
[PHP Modules]
bz2
calendar
Core
ctype
curl
date
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
pspell
readline
Reflection
session
shmop
SimpleXML
sockets
SourceGuardian
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend Guard Loader
zip
zlib

[Zend Modules]
SourceGuardian
Zend Guard Loader
the ionCube PHP Loader
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Awstats + GeoIP
« Reply #22 on: 2013-07-19, 03:21:59 »
There are something wrong php52-pecl-geoip from mratwork. So, I was remove from repo and then enough from ius.

Try (must use latest kloxo-mr.repo):
Code: [Select]
yum clean all
sh /script/lxphp-module-install php52-pecl-geoip
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 4,050
  • Karma: +1/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #23 on: 2013-07-19, 03:28:15 »
0 packages excluded due to repository protections
No Match for argument php52-pecl-geoip
Nothing to download
rpm2cpio: *.rpm: No such file or directory
cpio: unexpected end of archive
« Last Edit: 1970-01-01, 01:00:00 by Guest »

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #24 on: 2013-07-19, 07:11:32 »
Quote from: "MRatWork"
Remember, lxphp only using by kloxo and as secondary php when website using secondary.

Website, webmail, cp, disable and default using primary php.
:? Why did not you answer my questions?

When website using secondary php, Awstats using primary php or secondary?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Awstats + GeoIP
« Reply #25 on: 2013-07-19, 07:20:16 »
Quote from: "WISTFUL"
Quote from: "MRatWork"
Remember, lxphp only using by kloxo and as secondary php when website using secondary.

Website, webmail, cp, disable and default using primary php.
:? Why did not you answer my questions?

When website using secondary php, Awstats using primary php or secondary?
You don't know how to access your awstats?.

Using http://domain.com/stats or http://domain.com:7778/stats ?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #26 on: 2013-07-19, 08:01:25 »
Quote from: "MRatWork"
You have wrong geoip.so version. Delete /usr/local/lxlabs/ext/php/lib//usr/local/lxlabs/ext/php/lib/geoip.so and /usr/local/lxlabs/ext/php/etc/php.d/geoip.ini first. And then install php52-geoip with 'sh /script/lxphp-module-install php52-pecl-geoip'.

I am not sure pecl module running well on lxphp.
There isn't any directory such as '/usr/local/lxlabs/ext/php/lib//usr/local/lxlabs/ext/php/lib/geoip.so' in my kloxo. Just after below step I see above path on my error.log:
Quote
- Certain modules need 'extension=/usr/local/lxlabs/ext/php/lib/xxx.so' rather than 'extension=xxx.so' inside their ini file on '/usr/local/lxlabs/ext/php/etc/php.d')
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #27 on: 2013-07-19, 08:55:26 »
For primary php, I've tried below steps:

1. # yum install php54-pecl-geoip

2. Edit '/etc/awstats/awstats.mysite.com.conf' and add 'LoadPlugin="geoip GEOIP_STANDARD"' end of it.
(it's default is 'LoadPlugin="geoip GEOIP_STANDARD /pathto/GeoIP.dat"' but I do not know what to get instead '/pathto/GeoIP.dat'.)

3. visit 'http://mysite.com/awstats/awstats.pl?config=mysite.com'
Code: [Select]
Error: Plugin load for plugin 'geoip' failed with return code: Error:
Can't locate Geo/IP.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/kloxo/httpd/awstats/wwwroot/cgi-bin/lib /home/kloxo/httpd/awstats/wwwroot/cgi-bin/plugins) at (eval 2) line 1.
Can't locate Geo/IP/PurePerl.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /home/kloxo/httpd/awstats/wwwroot/cgi-bin/lib /home/kloxo/httpd/awstats/wwwroot/cgi-bin/plugins) at (eval 3) line 1.
Error: Need Perl module Geo::IP or Geo::IP::PurePerl

Setup ('/etc/awstats/awstats.mysite.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Awstats + GeoIP
« Reply #28 on: 2013-07-19, 09:33:16 »
Remember, awstart use perl and you install geoip for php. Match or not?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline WISTFUL

  • Senior Member
  • *
  • Posts: 247
  • Karma: +0/-0
    • View Profile
Re: Awstats + GeoIP
« Reply #29 on: 2013-07-19, 09:44:47 »
Quote from: "MRatWork"
Remember, awstart use perl and you install geoip for php. Match or not?.
Yes, How can I install geoip for perl in kloxo-mr?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
.

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.033 seconds with 21 queries.

web stats analysis