vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Digital Point User Map (https://vborg.vbsupport.ru/showthread.php?t=244236)

nhawk 07-23-2012 06:53 PM

Quote:

Originally Posted by imported_stefan (Post 2350832)
Thanks for the quick response. I thought different. Is the db located somewhere by default in a different place and can I copy it to this place?

Depending on the version of Linux you're running and whether or not it was installed using an RPM for that package or some other source, it could also be in usr/share/GeoIP.

But, digitalpoint is correct about having to re-compile it if you move the database.

digitalpoint 07-23-2012 07:03 PM

The DB is not located *anywhere* by default... you need to install it (it comes from maxmind.com).

On a side note, you *can* change the default directory location I found out with a php.ini setting:
Code:

[geoip]
geoip.custom_directory=/yourdirectory/


imported_stefan 07-24-2012 08:23 AM

So I first installed on my server:

Geoip

apt-get isntall php5-geoip libapache2-mod-geoip
/etc/init.d/apache2 restart


Than I installed your addon


Now I have also install on my server the database?
Both? Only one of them? Which one? :-)

GeoLite Country GeoLite City

http://www.maxmind.com/app/geolite

using this Install:

http://www.maxmind.com/app/installation

Sorry for the questions :-)

digitalpoint 07-24-2012 04:46 PM

I'm not sure, I've never tried to install just one... I've always installed both.

svyrydov 07-24-2012 06:49 PM

Good day,
I asked my admin to enable GeoIP PHP extension
they told me, that is activated now.
But still getting:
Quote:

Fatal error: Call to undefined function geoip_record_by_name() in /home/procrew/public_html/test.php on line 2
HERE IS LINK http://procrewing.com/test.php

Any suggestions?
Thanks.

digitalpoint 07-24-2012 07:57 PM

I would suggest going back to your admin because it's not activated. :)

imported_stefan 07-25-2012 10:25 AM

- so databes both installed
- geoip with phphinfo checked
- mod installed

empty pages :-)

any more hints ???

error reporting on does not show up errors

goc-forum.de 07-25-2012 10:26 AM

I am getting this error code:

Warnung: geoip_record_by_name(): Required database not available at /usr/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 100)

I uploaded your test.php and this is the result:

Array ( [1] => Array ( [available] => 1 [description] => GeoIP Country Edition [filename] => /usr/share/GeoIP/GeoIP.dat ) [2] => Array ( [available] => [description] => GeoIP City Edition, Rev 1 [filename] => /usr/share/GeoIP/GeoIPCity.dat ) [3] => Array ( [available] => [description] => GeoIP Region Edition, Rev 1 [filename] => /usr/share/GeoIP/GeoIPRegion.dat ) [4] => Array ( [available] => [description] => GeoIP ISP Edition [filename] => /usr/share/GeoIP/GeoIPISP.dat ) [5] => Array ( [available] => [description] => GeoIP Organization Edition [filename] => /usr/share/GeoIP/GeoIPOrg.dat ) [6] => Array ( [available] => [description] => GeoIP City Edition, Rev 0 [filename] => /usr/share/GeoIP/GeoIPCity.dat ) [7] => Array ( [available] => [description] => GeoIP Region Edition, Rev 0 [filename] => /usr/share/GeoIP/GeoIPRegion.dat ) [8] => Array ( [available] => [description] => GeoIP Proxy Edition [filename] => /usr/share/GeoIP/GeoIPProxy.dat ) [9] => Array ( [available] => [description] => GeoIP ASNum Edition [filename] => /usr/share/GeoIP/GeoIPASNum.dat ) [10] => Array ( [available] => [description] => GeoIP Netspeed Edition [filename] => /usr/share/GeoIP/GeoIPNetSpeed.dat ) [11] => Array ( [available] => [description] => GeoIP Domain Name Edition [filename] => /usr/share/GeoIP/GeoIPDomain.dat ) [12] => Array ( [available] => 1 [description] => GeoIP Country V6 Edition [filename] => /usr/share/GeoIP/GeoIPv6.dat ) [13] => Array ( [available] => [description] => GeoIP LocationID ASCII Edition [filename] => /usr/share/GeoIP/GeoIPLocA.dat ) [14] => Array ( [available] => [description] => GeoIP Accuracy Radius Edition [filename] => /usr/share/GeoIP/GeoIPDistance.dat ) [15] => Array ( [available] => [description] => GeoIP City with Confidence Edition [filename] => /usr/share/GeoIP/GeoIPCityConfidence.dat ) [16] => Array ( [available] => [description] => GeoIP City with Confidence and Accuracy Edition [filename] => /usr/share/GeoIP/GeoIPCityConfidenceDist.dat ) )

Whats wrong? I am using a "managed" root server! So i can`t do anything myself so the support must do it if its a server side problem....

svyrydov 07-25-2012 11:07 AM

Mine is working now. Problem was with admins :)
procrewing.com/usermap.php
all you need is to ask your hosting to enable GeoIP

digitalpoint 07-25-2012 04:39 PM

Quote:

Originally Posted by imported_stefan (Post 2351274)
- so databes both installed
- geoip with phphinfo checked
- mod installed


empty pages :-)

any more hints ???

error reporting on does not show up errors

Nope, you will need to talk to your server admins really...

Quote:

Originally Posted by goc-forum.de (Post 2351275)
I am getting this error code:

Warnung: geoip_record_by_name(): Required database not available at /usr/share/GeoIP/GeoIPCity.dat. in [path]/usermap.php (Zeile 100)

I uploaded your test.php and this is the result:

Array ( [1] => Array ( [available] => 1 [description] => GeoIP Country Edition [filename] => /usr/share/GeoIP/GeoIP.dat ) [2] => Array ( [available] => [description] => GeoIP City Edition, Rev 1 [filename] => /usr/share/GeoIP/GeoIPCity.dat ) [3] => Array ( [available] => [description] => GeoIP Region Edition, Rev 1 [filename] => /usr/share/GeoIP/GeoIPRegion.dat ) [4] => Array ( [available] => [description] => GeoIP ISP Edition [filename] => /usr/share/GeoIP/GeoIPISP.dat ) [5] => Array ( [available] => [description] => GeoIP Organization Edition [filename] => /usr/share/GeoIP/GeoIPOrg.dat ) [6] => Array ( [available] => [description] => GeoIP City Edition, Rev 0 [filename] => /usr/share/GeoIP/GeoIPCity.dat ) [7] => Array ( [available] => [description] => GeoIP Region Edition, Rev 0 [filename] => /usr/share/GeoIP/GeoIPRegion.dat ) [8] => Array ( [available] => [description] => GeoIP Proxy Edition [filename] => /usr/share/GeoIP/GeoIPProxy.dat ) [9] => Array ( [available] => [description] => GeoIP ASNum Edition [filename] => /usr/share/GeoIP/GeoIPASNum.dat ) [10] => Array ( [available] => [description] => GeoIP Netspeed Edition [filename] => /usr/share/GeoIP/GeoIPNetSpeed.dat ) [11] => Array ( [available] => [description] => GeoIP Domain Name Edition [filename] => /usr/share/GeoIP/GeoIPDomain.dat ) [12] => Array ( [available] => 1 [description] => GeoIP Country V6 Edition [filename] => /usr/share/GeoIP/GeoIPv6.dat ) [13] => Array ( [available] => [description] => GeoIP LocationID ASCII Edition [filename] => /usr/share/GeoIP/GeoIPLocA.dat ) [14] => Array ( [available] => [description] => GeoIP Accuracy Radius Edition [filename] => /usr/share/GeoIP/GeoIPDistance.dat ) [15] => Array ( [available] => [description] => GeoIP City with Confidence Edition [filename] => /usr/share/GeoIP/GeoIPCityConfidence.dat ) [16] => Array ( [available] => [description] => GeoIP City with Confidence and Accuracy Edition [filename] => /usr/share/GeoIP/GeoIPCityConfidenceDist.dat ) )


Whats wrong? I am using a "managed" root server! So i can`t do anything myself so the support must do it if its a server side problem....

I'd say this is a pretty good indicator of what's wrong... :)

Quote:

Required database not available at /usr/share/GeoIP/GeoIPCity.dat


All times are GMT. The time now is 10:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01520 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete