# Where to specify default phone region parameter?

**URL:** <https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475>\
**Category:** ℹ️ Support\
**Created:** [January 4, 2022, 3:26pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475 "2022-01-04T15:26:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefan.Braem](https://help.nextcloud.com/letter_avatar/stefan.braem/32/6_22734026db12803ebb3e059622ac3534.png) [@Stefan.Braem](https://help.nextcloud.com/u/Stefan.Braem)\
**Post date:** [January 4, 2022, 3:26pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/1 "2022-01-04T15:26:59Z")

</div>

Hi

I’m in the process of solving Nextcloud configuration warnings one by one. One of them is that I haven’t got a default phone region set for my installation. I’ve edited the config.php as described in the support doc, but when I do so, Nextcloud stops running. When I do it another way, my ‘default\_phone\_region’ parameter simply doesn’t work. Could someone help me pointing out what I’m doing wrong? Below my config.php.

```auto
<?php
$CONFIG = array (
  'instanceid' => 'xxx',
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' => 
  array (
    0 => 'xxx',
  ),
  'datadirectory' => '/volume1/web/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '22.1.1.2',
  'overwrite.cli.url' => 'xxx',
  'dbname' => 'Nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'default_phone_region => 'be',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
    0 => 'xxx',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'xxx',
  'mail_domain' => 'xxx',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'xxx',
  'mail_smtpport' => 'xxx',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
  'maintenance' => false,
);

```

Thanks in advance!

Stefan

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [January 4, 2022, 4:16pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/2 "2022-01-04T16:16:47Z")

</div>

Could you post what you added to the config? Sounds like a syntax error if the nextcloud stops working…

Edit: Sorry, now I saw it. You are missing an ’ after default\_phone\_region

---

<div class="post-metadata">

**Author:** ![Stefan.Braem](https://help.nextcloud.com/letter_avatar/stefan.braem/32/6_22734026db12803ebb3e059622ac3534.png) [@Stefan.Braem](https://help.nextcloud.com/u/Stefan.Braem)\
**Post date:** [January 4, 2022, 6:41pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/3 "2022-01-04T18:41:15Z")

</div>

Thanks for your reply @swindhab!

I had deleted the ’ because otherwise Nextcloud just stops working and I get an 404 error. By deleting the ’ the statement isn’t compliant/taken into account and thus Nextcloud keeps working.

'default\_phone\_region =\> ‘be’, is the only thing I’ve added to the original config.php.

---

<div class="post-metadata">

**Author:** ![swindhab](https://help.nextcloud.com/letter_avatar/swindhab/32/6_22734026db12803ebb3e059622ac3534.png) [@swindhab](https://help.nextcloud.com/u/swindhab)\
**Post date:** [January 4, 2022, 7:18pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/4 "2022-01-04T19:18:59Z")

</div>

Did you try capital letters?  
‘default\_phone\_region’ =\> ‘BE’,

And make sure it’s ’ not ’ (like pressing shift and #)

Otherwise: Is there any error in nextcloud or webserver logs?

---

<div class="post-metadata">

**Author:** ![Stefan.Braem](https://help.nextcloud.com/letter_avatar/stefan.braem/32/6_22734026db12803ebb3e059622ac3534.png) [@Stefan.Braem](https://help.nextcloud.com/u/Stefan.Braem)\
**Post date:** [January 6, 2022, 7:58pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/5 "2022-01-06T19:58:18Z")

</div>

I was indeed using the wrong '. Solved, thanks! 😃

---

<div class="post-metadata">

**Author:** ![onlyscience](https://help.nextcloud.com/letter_avatar/onlyscience/32/6_22734026db12803ebb3e059622ac3534.png) [@onlyscience](https://help.nextcloud.com/u/onlyscience)\
**Post date:** [August 14, 2022, 9:51am UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/7 "2022-08-14T09:51:35Z")

</div>

You forgot the " ’ " after default\_phone\_region

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 1:39pm UTC](https://help.nextcloud.com/t/where-to-specify-default-phone-region-parameter/130475/8 "2024-12-13T13:39:10Z")

</div>


