<p>Try resetting the permissions of the <code>storage/</code> such that…</p>
<ul>
<li>…folders within it are all <code>775</code>;</li>
<li>…files within it are all <code>664</code>;</li>
</ul>
<p>(The rest of the app should be <code>755</code> and <code>644</code>, respectively.)</p>
<p>It's possible that PHP was running with higher-than-default permissions in the previous setup, in which case everything may have worked even if you hadn't explicitly made the storage folder writable.</p>

CC BY-SA 4.0
2016-11-03T13:20:58.683Z
2024-11-08T01:27:33.893Z
2024-11-08T01:27:33.893Z
Michael Rog
<p>I just recently upgraded to PHP 7. The browser is now showing following error</p>

<pre><code>/home/xxx/craft/storage isn't writable by PHP. Please fix that
</code></pre>

<p>Have not changed any permissions on any of the folders. How to fix this problem?</p>

<craft-pro><nginx>
After upgrading to PHP 7 I started getting "storage folder isn't writable by PHP" errors
# After upgrading to PHP 7 I started getting "storage folder isn't writable by PHP" errors

(Asked by: username_0 on 2016-11-03)

I just recently upgraded to PHP 7. The browser is now showing following error
/home/xxx/craft/storage isn't writable by PHP. Please fix that

Have not changed any permissions on any of the folders. How to fix this problem?

**Tags:** craft-pro, nginx


---

## 1 answers

### Answer by username_1 on 2016-11-03. Score: 6 | Accepted answer

Try resetting the permissions of the `storage/` such that…

* …folders within it are all `775`;
* …files within it are all `664`;

(The rest of the app should be `755` and `644`, respectively.)

It's possible that PHP was running with higher-than-default permissions in the previous setup, in which case everything may have worked even if you hadn't explicitly made the storage folder writable.


---

