# Proper config/local.php configuration for mautic:donotsell:download cron job

**URL:** <https://forum.mautic.org/t/proper-config-local-php-configuration-for-mauticdownload-cron-job/35734>\
**Category:** Product Support\
**Created:** [May 27, 2025, 4:40pm UTC](https://forum.mautic.org/t/proper-config-local-php-configuration-for-mauticdownload-cron-job/35734 "2025-05-27T16:40:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ultimike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ultimike/32/4048_2.png) [@ultimike](https://forum.mautic.org/u/ultimike)\
**Post date:** [May 27, 2025, 4:40pm UTC](https://forum.mautic.org/t/proper-config-local-php-configuration-for-mauticdownload-cron-job/35734/1 "2025-05-27T16:40:50Z")

</div>

**Your software**  
My Mautic version is: 6.0.1  
My PHP version is: 8.3.19  
My Database type and version is: 11.4.6-MariaDB-deb12-log

**Your problem**  
My problem is: I cannot figure out how to properly configure the maxmind settings in config/local.php for the mautic:donotsell:download cron job to work.

These errors are showing in the log:

[2025-05-27T02:52:14.499146+00:00] mautic.ERROR: Missing file path {“hostname”:“mautic.0”,“pid”:1682}  
[2025-05-27T02:57:14.893440+00:00] mautic.WARNING: Command `mautic:max-mind:purge` exited with status code 1 {“hostname”:“mautic.0”,“pid”:1715}

Steps I have tried to fix the problem:  
This is what I currently have in my config/local.php related to the maxmind settings:

```
'maxmind' => array(
    'license_key' => '<my-licence-key-string>',
    'donot_sell_file_path' => '/var/www/html/private/maxmind.json'
),

```

When running the command directly, the only error information that is displayed is:

> $ php bin/console mautic:donotsell:download
> 
> Automatically fetching Do Not Sell data failed.

Do I need more than the free MaxMind account to access this?

-mike

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [May 27, 2025, 4:45pm UTC](https://forum.mautic.org/t/proper-config-local-php-configuration-for-mauticdownload-cron-job/35734/2 "2025-05-27T16:45:00Z")

</div>

Hi Mike,

Did you ensure that your license key is in the correct format? Does your regular maxmind download work?

The key needs to be in the format **AccountID:Licensekey**.

---

<div class="post-metadata">

**Author:** ![ultimike](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ultimike/32/4048_2.png) [@ultimike](https://forum.mautic.org/u/ultimike)\
**Post date:** [May 27, 2025, 5:28pm UTC](https://forum.mautic.org/t/proper-config-local-php-configuration-for-mauticdownload-cron-job/35734/3 "2025-05-27T17:28:41Z")

</div>

Yep - my license key is in the format that you indicated.

Also yes, `php bin/console mautic:iplookup:download` works.

-mike
