[OH-Dev] Photo uploads broken for the blog
Asheesh Laroia
asheesh at asheesh.org
Sun May 6 20:21:44 UTC 2012
On Sun, 6 May 2012, Jessica McKellar wrote:
> Hi Asheesh,
>
> It looks like photo uploads for the blog are broken.
>
> When I try to upload a photo, I get:
>
> """
> “full_room.png” has failed to upload due to an error
> Unable to create directory /var/www/blog/wp-content/uploads/2012/05. Is its
> parent directory writable by the server?
> """
Thanks for reporting that! I've just fixed the ownership and tested that
uploads work. Give it a shot now.
Quite probably, in the near future, we should have a Jenkins task that
verifies that blog uploads work.
The reason it broke is that, when adjusting the way we run PHP to be more
standard to avoid the "Loss of session data" problem in MediaWiki, I
changed the wiki to run as the 'www-data' user, and the blog now runs as
that user as well. Sadly, I didn't adjust the ownership of the
"wp-content" files so that www-data can write to those directories.
Now it can!
-- Asheesh.
More information about the Devel
mailing list