Error Opening File /usr/share/geoip/geoip.dat
powered by Olark live chat software GeoIP Legacy Country Database Installation Instructions Here is a brief outline of the steps needed to install GeoIP Legacy Country on Linux/Unix. The installation on Windows is similar, just replace the tar command with WinZip or a similar ZIP program. Step 1 - Download database For GeoIP clients, go to the download files page. You may need to enter your username and password. From there, you can download the binary or CSV formats of the GeoIP databases you purchased. Then you will want to upload the databases to your web server. If you are not a client, you can use the free GeoLite database. You may download it from the GeoLite page. If you are using the wget program to download the GeoLite file, please use the -N option to only download if the file has been updated: 1 $ wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz Step 2 - Install database Once you have uploaded the database, you will want to uncompress it. To uncompress the binary format, you will need to unzip the file. For example, to uncompress the GeoIP Country binary database on Linux or Unix, you could run: 1 $ gunzip GeoIP.dat.gz Then you will need to install the .dat file into a data directory. For example, on Linux/Unix, you could run: 1 $ mv GeoIP.dat /usr/local/share/GeoIP/ To uncompress the CSV format, you can use any zip program, like WinZip for Windows, or unzip on Linux. Then you can load the CSV database into a SQL database. Learn more Step 3 - Query database For the binary databases, we supply APIs for most major programming languages. You may need to point the API code to the /usr/local/share/GeoIP/GeoIP.dat location. Each API has documentation and example programs inside the downloaded distribution. The fastest way to get started is to use the example program included. You may need to replace the database path in the example program with the location where you installed the database. For the CSV databases, once you have loaded them into a SQL database, you can issue SQL queries against the database table with the GeoIP data. Learn more If you do not have shell access to the server After you have downloaded the database, unzip it using a pr
Sign in Pricing Blog Support Search GitHub This repository Watch 141 Star 3,205 Fork 260 allinurl/goaccess Code Issues 58 Pull requests 2 Projects 0 Wiki Pulse Graphs New issue How to enable geoip on a Mac #426 Closed godsmustbcrazy opened this Issue Jun 9, 2016 · 4 comments Projects None yet Labels build question Milestone No milestone Assignees No one assigned 3 participants godsmustbcrazy commented Jun 9, 2016 http://dev.maxmind.com/geoip/legacy/install/country/ • edited Once I have installed it on a Mac using brew install goaccess is it possible to enable geoIP ? Owner allinurl commented Jun 9, 2016 From the formula, it looks like you can pass with-geoip allinurl added question build labels Jun 9, 2016 godsmustbcrazy commented Jun 9, 2016 Yes , brew uninstall https://github.com/allinurl/goaccess/issues/426 goaccess then brew install goaccess --with-geoip Thanks again godsmustbcrazy closed this Jun 9, 2016 godsmustbcrazy commented Jun 9, 2016 Make sure you run xcode-select install if you get an error while doing this that says "homebrew cannot run c compiled programs" when you run brew install goacess --with-geoip Mac OsX El-Capitan buluxan commented Jul 27, 2016 • edited hi sir , i got this error earlier im enable geoip that mention above sudo goaccess -f access_log > report5.html Password: Error Opening file /usr/local/var/GeoIP/GeoIP.dat Resolved : i just download this file GeoLiteCity.dat.gz and then extract to the specific path and i just setup the config like in below ###################################### # GeoIP Options # Only if configured with --enable-geoip ###################################### # Standard GeoIP database for less memory usage. # #std-geoip false # Specify path to GeoIP database file. i.e., GeoLiteCity.dat # .dat file needs to be downloaded from maxmind.com. # # For IPv4 City database: # wget -N http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz # gunzip GeoLiteCity.dat.
that make connections all over the world. Join today Community Community Home Getting Involved Chat Forum SupportPost installation Geo IP - not able to use MaxMinds GeoLiteCity.dat file Posted by Anonymous (not verified) on https://www.drupal.org/node/1994648 May 14, 2013 at 4:25pm Hello, I am trying to add Geo IP to a site im working on; i have used Context geo IP and Geo IP modules and am able to create a context based on a country. However i need to display content based on region/city. Im using MaxMinds' GeoIP.dat file (which i can get to work) but when i try to use GeoLiteCity.dat file error opening i get no region/city options - i cannot figure out how to use it. Has any one used this before and can perhaps point me in the right direction, e.g. tutorials, videos etc. Perhaps someone has used an alternative module that works 'out of the box'? Any advice would be greatly appreciated. Log in or register to post comments ⋅ Categories: Drupal 7.x Comments ... JamesOakley commented May 14, error opening file 2013 at 5:40pm I don't know about those two modules, but I've found I have most success putting the Apache module from MaxMind and/or the PHP Extension onto the server, then just using the server variables / PHP function library. What hosting are you on - do you have any control over such things? I could point you in the right direction for setting that up - if you have root access. Solid VPS providers that I've used and can recommend first-hand: Managed VPS Providers || Unmanaged VPS Providers Log in or register to post comments Doing some more digging JamesOakley commented May 15, 2013 at 9:49am Hi I've done a bit more digging First, I've found that installing GeoIP on a server (as PECL extension or Apache module), I need to rename GeoLiteCity.dat to GeoIPCity.dat for the relevant code to pick it up. It may be that you need to do this if you are using the City data file with the GeoIP API module. However: Second, I've looked at the code of the GeoIP context module, and it only uses the country level data. See http://drupalcode.org/project/context_geoip.git/blob/refs/heads/7.x-1.x:.... So if you wanted to persevere with these two modules, I'd try two things (corresponding to those two observations