Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save GeoIP DB in user dir #13396

Closed
Dreamsorcerer opened this issue Sep 6, 2018 · 1 comment
Closed

Save GeoIP DB in user dir #13396

Dreamsorcerer opened this issue Sep 6, 2018 · 1 comment
Labels
answered For when a question was asked and we referred to forum or answered it. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.

Comments

@Dreamsorcerer
Copy link

In the Geolocation settings, there is an option to install the GeoIP database. However, as I have the Matomo code installed in /usr/share/matomo/ and owned by root (as per the Debian package install), Matomo is unable to save the file.

Please change the location of this database to somewhere in the user directory, which is writeable by the server.

I have changed PIWIK_INCLUDE_PATH to PIWIK_USER_PATH at:
https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/GeoIp2/LocationProvider/GeoIp2.php#L128
and
https://github.com/matomo-org/matomo/blob/3.x-dev/plugins/UserCountry/LocationProvider/GeoIp.php#L202

After creating a misc subdirectory in the user dir, it is successfully downloading the file.

@sgiehl
Copy link
Member

sgiehl commented Jan 14, 2019

we will make the path for GeoIP2 configurable using DI. See #13913
GeoIP Legacy won't be changed anymore, as it is discontinued by Maxmind

@sgiehl sgiehl closed this as completed Jan 14, 2019
@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. answered For when a question was asked and we referred to forum or answered it. labels Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

No branches or pull requests

2 participants