# Can't change api settings to yes

**URL:** <https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329>\
**Category:** Product Support\
**Created:** [September 14, 2015, 6:29am UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329 "2015-09-14T06:29:49Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 14, 2015, 6:29am UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/1 "2015-09-14T06:29:49Z")

</div>

When I try to change api settings to yes and select either save & close or apply get Please wait… and it never updates. If I refresh the page it goes back to no.

---

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 14, 2015, 6:29am UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/2 "2015-09-14T06:29:49Z")

</div>

When I try to change api settings to yes and select either save & close or apply get Please wait… and it never updates. If I refresh the page it goes back to no.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 14, 2015, 9:40am UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/3 "2015-09-14T09:40:37Z")

</div>

Hi, try these steps:

1. Check permission of folder app/cache. Has Mautic (php) permission to write?
2. Remove app/cache folder to rebuild the cache and try to save config again.
3. Check app/logs folder and server error log for PHP errors.

---

<div class="post-metadata">

**Author:** ![Sokoban](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@Sokoban](https://forum.mautic.org/u/Sokoban)\
**Post date:** [September 14, 2015, 11:14am UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/4 "2015-09-14T11:14:38Z")

</div>

@escopecz , I have same issue… How do I config Mautic to write into app/cache? Actually it’s 755.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 14, 2015, 12:02pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/5 "2015-09-14T12:02:01Z")

</div>

755 should be OK if the owner isn’t root.

---

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 14, 2015, 6:27pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/6 "2015-09-14T18:27:17Z")

</div>

Thank you for that.  
I have tried all of the above, the permission is 755, I have removed the cache folder and tried again to no avail, the app/log folder is empty.

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 14, 2015, 6:30pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/7 "2015-09-14T18:30:34Z")

</div>

So there is only one place to look now. Server’s error log.

---

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 14, 2015, 7:06pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/8 "2015-09-14T19:06:05Z")

</div>

Thank you escopecz,  
I can’t see anything in the error log that helps me, can you give me an idea of what I should be looking for?  
Alice

---

<div class="post-metadata">

**Author:** ![escopecz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/escopecz/32/370_2.png) [@escopecz](https://forum.mautic.org/u/escopecz)\
**Post date:** [September 14, 2015, 7:21pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/9 "2015-09-14T19:21:23Z")

</div>

If there is some line at the last few lines containing the word ERROR, copy-paste it here.

---

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 14, 2015, 9:27pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/10 "2015-09-14T21:27:10Z")

</div>

I have looked in the server error log and I can’t find anything there beginning with error, That is assuming I am looking in the correct place. I am looking in errors in cpanel  
This is the sort of info that I have in there  
2015-09-15 08:17:15.269 [INFO] [108.162.216.34:36089] File not found [/home/xxxxxxxx/public\_html/404.shtml]  
2015-09-15 08:17:15.269 [INFO] [108.162.216.34:36089] File not found [/home/xxxxxxxx/public\_html/image/catalog/wssize/PS61K\_size.jpg]  
2015-09-15 08:16:38.215 [INFO] [108.162.216.22:57480] File not found [/home/xxxxxxxx/public\_html/404.shtml]

Alice

---

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 14, 2015, 10:57pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/11 "2015-09-14T22:57:04Z")

</div>

I have found the solution here [https://www.mautic.org/community/index.php/664-not-saving-config-settings](https://www.mautic.org/community/index.php/664-not-saving-config-settings)  
I disabled ModSecurity (in cpanel) which allowed me to change the settings then re-enabled it.

---

<div class="post-metadata">

**Author:** ![Sokoban](https://avatars.discourse-cdn.com/v4/letter/s/9dc877/32.png) [@Sokoban](https://forum.mautic.org/u/Sokoban)\
**Post date:** [September 16, 2015, 2:10pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/12 "2015-09-16T14:10:38Z")

</div>

@Aliceh , I’ve changed ModSecurity as you said but unsuccessfull on creating email and/or API settings. Did you install Mautic under /public\_html/ folder?

---

<div class="post-metadata">

**Author:** ![Aliceh](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@Aliceh](https://forum.mautic.org/u/Aliceh)\
**Post date:** [September 16, 2015, 6:05pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/13 "2015-09-16T18:05:55Z")

</div>

Yes i have I have mautic installed in public\_html/mautic

---

<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:** [February 2, 2020, 10:58pm UTC](https://forum.mautic.org/t/cant-change-api-settings-to-yes/2329/14 "2020-02-02T22:58:20Z")

</div>


