Question

WordPress write to disk issues (LAMP, Ubuntu 14.04)

Posted September 17, 2015 3.1k views
Linux BasicsUbuntuApacheMiscellaneousWordPressLAMP StackCaching

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!

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.

×
1 answer

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
Submit an Answer