# Warning: is\_dir(): open\_basedir restriction in effect. File(/oc) is not within the allowed path(s):

**URL:** <https://forum.infinityfree.com/t/warning-is-dir-open-basedir-restriction-in-effect-file-oc-is-not-within-the-allowed-path-s/84290>\
**Category:** Hosting Support\
**Created:** [October 12, 2023, 9:49pm UTC](https://forum.infinityfree.com/t/warning-is-dir-open-basedir-restriction-in-effect-file-oc-is-not-within-the-allowed-path-s/84290 "2023-10-12T21:49:46Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [October 13, 2023, 9:16am UTC](https://forum.infinityfree.com/t/warning-is-dir-open-basedir-restriction-in-effect-file-oc-is-not-within-the-allowed-path-s/84290/3 "2023-10-13T09:16:45Z")

</div>

Looking at the corresponding code, these warnings seem “intentional”. I.e. there is code to check whether the directory `/oc` exists, and accommodate if it doesn’t.

Also, these are warnings, not errors, so all is fine.

I would just disable “Display Errors” in the PHP options and call it a day. This behavior seems normal and not destructive, so no reason to have PHP nag about it.

---

_[View the full topic](https://forum.infinityfree.com/t/warning-is-dir-open-basedir-restriction-in-effect-file-oc-is-not-within-the-allowed-path-s/84290)._
