# Is\_readable(): open\_basedir restriction in effect

**URL:** <https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589>\
**Category:** ℹ️ Support\
**Tags:** php74, open\_basedir, php\
**Created:** [March 7, 2018, 7:29pm UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589 "2018-03-07T19:29:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mawi](https://help.nextcloud.com/letter_avatar/mawi/32/6_449c533f586939b6e5f246632a46421f.png) [@mawi](https://help.nextcloud.com/u/mawi)\
**Post date:** [March 7, 2018, 7:29pm UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589/1 "2018-03-07T19:29:59Z")

</div>

Hi NextCloud Friends,

i have follow problem in my Logfile:

is\_readable(): open\_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/:/dev/urandom) at /var/www/vhosts/domain.com/cloud.domain.com/apps/serverinfo/lib/SystemStatistics.php#74

What can I do for solved this problem

Cheers  
MaWi

---

<div class="post-metadata">

**Author:** ![Schmu](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schmu/32/7823_2.png) [@Schmu](https://help.nextcloud.com/u/Schmu)\
**Post date:** [March 8, 2018, 8:48am UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589/2 "2018-03-08T08:48:01Z")

</div>

Hi,

You need to make changes to your php.ini file. Please search for the open\_basedir setting in your php config file. you can also grep through all files, to find it:  
`grep -R open_basedir /etc/php*`

When you found the setting where it reads something like:  
`open_basedir = "/var/www/vhosts/domain.com/:/tmp/:/dev/urandom"`

… please append the mentioned path. You append further paths, by adding a colon “:” and the path with the leading slash “/” (ending slash is optional, not necessarily needed). That it looks like this, afterwards:  
`open_basedir = "/var/www/vhosts/domain.com/:/tmp/:/dev/urandom:/proc/meminfo"`

If further error messages come up mentioning different paths, please add them accordingly.

---

<div class="post-metadata">

**Author:** ![fmini](https://help.nextcloud.com/user_avatar/help.nextcloud.com/fmini/32/25273_2.png) [@fmini](https://help.nextcloud.com/u/fmini)\
**Post date:** [January 4, 2019, 1:03pm UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589/3 "2019-01-04T13:03:59Z")

</div>

> **&quot;Support intro&quot;**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> example
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> 
> longer
> 
> example
> 
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _(eg, 14.0.3)_:

Operating system and version _(Debian Webhoster)_:

Apache or nginx version _(eg, Apache )_:

PHP version _(eg, 7.0.33)_:

The issue you are facing:

Is this the first time you’ve seen this error? _(J)_:

The output of your Nextcloud log in **Admin \> Logging** :

```auto

is_readable(): open_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/var/www/vhosts/chiliboo.com/:/tmp/:/dev/urandom) at /var/www/vhosts/chiliboo.com/cloud.chiliboo.de/nextcloud/apps/serverinfo/lib/SystemStatistics.php#96

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto

https://ha01s015.org-dns.com:8443/smb/web/php-info/id/1193

```

Hi,

i have follow problem in my Logfile:

is\_readable(): open\_basedir restriction in effect. File(/proc/meminfo) is not within the allowed path(s): (/var/www/vhosts/chiliboo.com/:/tmp/:/dev/urandom) at /var/www/vhosts/chiliboo.com/cloud.chiliboo.de/nextcloud/apps/serverinfo/lib/SystemStatistics.php#96

This correct form the Support of the Webhoster:

{WEBSPACEROOT}{/}{:}{TMP}{/}:/dev/urandom

Before this was made, and still now after Logging I get the following error message:

Error checking server setup

Page will be reloaded again.

Update bouton can’t start update.

So how this can be solved?

Regards  
fmini

---

<div class="post-metadata">

**Author:** ![rbognar](https://help.nextcloud.com/user_avatar/help.nextcloud.com/rbognar/32/30808_2.png) [@rbognar](https://help.nextcloud.com/u/rbognar)\
**Post date:** [November 5, 2020, 2:07pm UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589/4 "2020-11-05T14:07:37Z")

</div>

Hello my friend.  
I changed from “{WEBSPACEROOT}{/}{:}{TMP}{/}:/dev/urandom” to “none”.  
it seems it is not necessary.

---

<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 3, 2024, 9:31pm UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589/5 "2024-12-03T21:31:56Z")

</div>



---

<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 9, 2024, 2:22pm UTC](https://help.nextcloud.com/t/is-readable-open-basedir-restriction-in-effect/28589/6 "2024-12-09T14:22:28Z")

</div>


