Goaccess: How to build goaccess with GeoIP support

Created on 4 Jul 2017  路  5Comments  路  Source: allinurl/goaccess

Dude, you have a very bad faq on website...

I made the following and can't find GeoIP in report section...

sudo apt-get install libncursesw5-dev libgeoip-dev
wget http://tar.goaccess.io/goaccess-1.0.2.tar.gz
tar -xzvf goaccess-1.0.2.tar.gz
cd goaccess-1.0.2/
sudo ./configure --enable-geoip=mmdb --enable-utf8
sudo make
sudo make install 

also can you explain step by step shy do i need for real-time report?
thanks

build documentation html report question

Most helpful comment

Yes, you do:

$ curl tar.goaccess.io/goaccess-1.2.tar.gz | tar xvz
$ cd goaccess-1.2/
$ sudo make uninstall
$ ./configure --enable-geoip=legacy --enable-utf8
$ make
$ sudo make install

All 5 comments

The download and man page list the GeoIP config options, so since you are using mmdb, it requires GeoIP2 databases which you need to install from source as it is not on the debian/ubuntu repo. However, if you want to make things easier, just configure goaccess using --enable-geoip=legacy and it should work out of the box.

For a real time HTML report, all you need is to run goaccess with --real-time-html and save your output report to your web server's public www folder, e.g., /var/www/mysite.com/report.html. Then you should be able to point your browser to mysite.com/report.html. For instance,

goaccess access.log -o /var/www/mysite.com/report.html --real-time-html

Thanks for fast answer.

--enable-geoip=legacy

i got an error message:

goaccess: unrecognized option '--geoip-database'

Please download the latest version of goaccess.

Do i need make uninstall prior to installing the new version?

Yes, you do:

$ curl tar.goaccess.io/goaccess-1.2.tar.gz | tar xvz
$ cd goaccess-1.2/
$ sudo make uninstall
$ ./configure --enable-geoip=legacy --enable-utf8
$ make
$ sudo make install
Was this page helpful?
0 / 5 - 0 ratings

Related issues

LoanDEV picture LoanDEV  路  3Comments

SerenaAi picture SerenaAi  路  3Comments

canepa picture canepa  路  3Comments

konungrl picture konungrl  路  3Comments

Gill-Bates picture Gill-Bates  路  3Comments