New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

goaccess geo ip location

Started by Namaste, February 22, 2025, 12:43:40 PM

Previous topic - Next topic

Namaste

Any easy way to install maxmind geo ip for goaccess?

Google analytics 4 is a nightmare to use.  So its back to webstats for me.  I dont need all of the data that GA4 can potentially reveal to micromanagers.  GoAccess provides me with what I currently need to know about visitors to any give website.
Listen to everything Pixelpadre says.

cyberspace

Seems you just need to download the maxmind database file and specify the correct path to it.

Check the section "GeoIP Options" of the file:
/etc/goaccess/goaccess.conf
on your server/vps.

Namaste

Quote from: cyberspace on February 22, 2025, 01:35:29 PM
Seems you just need to download the maxmind database file and specify the correct path to it.

Check the section "GeoIP Options" of the file:
/etc/goaccess/goaccess.conf
on your server/vps.

I already knew that.  I was asking if there was an easy way.
Listen to everything Pixelpadre says.

cyberspace

More easy way ? Install the geoip database using dnf/yum.

Namaste

Also, can goaccess be updated?  server version is 1.2 from 2017.  Latest is 1.9
Listen to everything Pixelpadre says.

Namaste

Quote from: cyberspace on February 24, 2025, 12:08:58 AM
More easy way ? Install the geoip database using dnf/yum.

DNF implies non centos 7.  Lets have a poll on here to see how many are still using C7
Listen to everything Pixelpadre says.

Starburst

Quote from: Namaste on February 23, 2025, 09:31:04 PM
Quote from: cyberspace on February 22, 2025, 01:35:29 PM
Seems you just need to download the maxmind database file and specify the correct path to it.

Check the section "GeoIP Options" of the file:
/etc/goaccess/goaccess.conf
on your server/vps.

I already knew that.  I was asking if there was an easy way.

No, it has to be done manually.

overseer

Quote from: Namaste on March 11, 2025, 10:40:14 AM
Also, can goaccess be updated?  server version is 1.2 from 2017.  Latest is 1.9
Nothing prevents you from updating if you so desire. Remove CWP's GoAccess and install prerequisite (MaxMind GeoIP library):
yum -y remove goaccess
yum install libmaxminddb-devel.x86_64

Download and compile GoAccess, install to replace the current 1.2 version:
cd /usr/local/src
wget https://tar.goaccess.io/goaccess-1.9.3.tar.gz
tar -xzvf goaccess-1.9.3.tar.gz
cd goaccess-1.9.3/
./configure --prefix= --enable-debug --enable-utf8 --enable-geoip=mmdb --with-getline --with-openssl
make
make install

overseer

Or if instead of MaxMind, you prefer the legacy GeoIP as CWP used in the current 1.2 version, install this pre-requisite:
yum -y install geoip-devel
And then the configure line would change to:
[/code]./configure --prefix= --enable-debug --enable-utf8 --enable-geoip=legacy --with-getline --with-openssl[/code]

Namaste

Cool.  And as always should you chose to accept this mission be sure to backup your server first.
Listen to everything Pixelpadre says.

Starburst

Just a quick FYI, AL9 installs goaccess 1.9.3-2 via EPEL.

overseer

It's not a dramatic change, so no image/backup is really necessary. If you want to re-install CWP's version, it's just
yum -y install goaccess
And to cleanup from the manually installed GoAccess 1.9.3:
yum -y remove geoip-devel
yum -y remove libmaxminddb-devel.x86_64
rm /bin/goaccess
rm /share/man/man1/goaccess.1