[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Jessie Backport for Wordpress Uploads Folder



On Thu, Oct 13, 2016 at 02:17:03PM -0400, Ian MacDonald wrote:
> We recently jumped from stable (4.1+dfsg-1+deb8u11) to backports on
> wordpress to take advantage of the newer REST API functionality required
> for plugins we use.
> 
> After the upgrade, we couldn't upload any media and were presented with the
> following message.
> 
> Unable to create directory wp-content/uploads. Is its parent directory
> writable by the server?
> 
> After a bit of review, a quick workaround was to simply symlink
>  /var/lib/wordpress/wp-content/wp-uploads/  into
> /usr/share/wordpress/wp-content/

Haven't you used the script in the package to create the blog? The script
creates the folder in /srv/ IIRC.

And I had no problem upgrading from stable to backports.

> 
> We suspect this may not be the correct, or most secure solution.
> 
> Prior to symlinking we attempted to redefine UPLOADs.
> 
> define(UPLOADS, '/var/lib/wordpress/wp-content/uploads');
> 
> We also noted that changing permissions to a less secure 777 had no impact,
> so it would seem that the previous apache2 Alias below seems to be in need
> of some additional configuration to preserve the previous functionality of
> having the uploads folder only accessed from within /var/lib.
> 
> Alias /wp-content /var/lib/wordpress/wp-content
> 
> We are looking for the correct solution in how uploads are handled with the
> new wordpress version, and would suggest a maintainer to drop a similar
> comment in the README.Debian for others going through the upgrade process.

Thanks a lot for the report

Adding Craig in Cc: just in case he understand this better (I don't have a
wordpress running in production anymore)



Thanks a lot,
Rodrigo


Reply to: