<p>Two things:</p>

<ol>
<li><p>Make sure you're using <code>false</code> the boolean and not <code>'false'</code> the string.</p></li>
<li><p>After you change <code>useFileLocks</code> to <code>false</code>, clear the <code>craft/storage/runtime/cache</code> folder as I believe that setting is cached for whatever the <a href="https://docs.craftcms.com/v2/config-settings.html#cacheduration" rel="nofollow noreferrer">cacheDuration</a> config setting is set to.</p></li>
</ol>

CC BY-SA 4.0
2019-02-07T00:08:10.207Z
2019-02-07T00:08:10.207Z
Brad Bell
<p>I have a Craft 2 install that's been working fine until recently when the admin page is giving an error: </p>

<p>file_put_contents(): Exclusive locks are not supported for this stream</p>

<p>The front end is fine.</p>

<p>It seems (according to <a href="https://docs.craftcms.com/v3/config/config-settings.html" rel="nofollow noreferrer">https://docs.craftcms.com/v3/config/config-settings.html</a>) that NFS filesystems do not like Exclusive Locks, and the host uses NFS (the webserver the site is on connects to a backend filer via NFS to read the actual webfiles) </p>

<p>so I have tried changing</p>

<p>/config/general.php</p>

<p>so that useFileLock is set to 'false' but this hasn't changed anything. </p>

<p>Thanks in advance!</p>

<craft2><hosting>
Craft error on NFS filesystem
# Craft error on NFS filesystem

(Asked by: username_0 on 2019-02-05)

I have a Craft 2 install that's been working fine until recently when the admin page is giving an error:

file\_put\_contents(): Exclusive locks are not supported for this stream

The front end is fine.

It seems (according to <https://docs.craftcms.com/v3/config/config-settings.html>) that NFS filesystems do not like Exclusive Locks, and the host uses NFS (the webserver the site is on connects to a backend filer via NFS to read the actual webfiles)

so I have tried changing

/config/general.php

so that useFileLock is set to 'false' but this hasn't changed anything.

Thanks in advance!

**Tags:** craft2, hosting


---

## 1 answers

### Answer by username_1 on 2019-02-07. Score: 1

Two things:

1. Make sure you're using `false` the boolean and not `'false'` the string.
2. After you change `useFileLocks` to `false`, clear the `craft/storage/runtime/cache` folder as I believe that setting is cached for whatever the [cacheDuration](https://docs.craftcms.com/v2/config-settings.html#cacheduration) config setting is set to.


---

