Report this

What is the reason for this report?

WordPress write to disk issues (LAMP, Ubuntu 14.04)

Posted on September 17, 2015

Hi,

Everything was working fine until suddenly WordPress can’t write anything to disk, such as update plugins, upload media, etc. Also as a result of this, w3 total cache doesn’t work, because it can’t write to disk.

I have checked to make sure that permissions are set to 755 and owner is www-data (apache user).

Temporarily swithching permissions to 775 or 777 and running an update still didn’t work.

I have even tried to recreate the uploads and upgrade directories.

Nothing works. Any suggestions on a fix for this?

Thanks!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I would recommend checking a couple things.

1.) Make sure that your web files are owned by the user www-data (this is for Ubuntu or Debian and the line below assumes the default web root for apache).

chown -Rf www-data.www-data /var/www/html

2.) Check that you have not run out of disk space

df

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.