Skip to content

Instantly share code, notes, and snippets.

@alOneh
Created December 6, 2011 23:49
Show Gist options
  • Save alOneh/1440663 to your computer and use it in GitHub Desktop.
Save alOneh/1440663 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Go in to the Geoip folder
cd /usr/share/GeoIP
# Download the new database of city
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
# Download the new database of country
wget -N -q http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
# Install database
gunzip -f GeoLiteCity.dat.gz
gunzip -f GeoIP.dat.gz
mv GeoLiteCity.dat /usr/share/GeoIP/GeoIPCity.dat
# MAJ timezone
pecl upgrade timezonedb
# Restart the server
apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment