Thread:Project:Support desk/Can't delete image uploads. "Error deleting file: Could not create directory 'mwstore://local-backend/local-deleted/a/x/b'."

Product Version

MediaWiki 1.23.1

PHP 5.5.9-1ubuntu4.3 (apache2handler)

MySQL 5.5.38-0ubuntu0.14.04.1

Ubuntu Server is running on a Virtual Machine. My /var/www/html/mediawiki/images directory is mounted to my storage drive as the boot drive is only for the OS. The Wiki is private.

LocalSettings.php does not have $wgUploadDirectory or $wgUploadPath set, so those are the default. $wgDeletedDirectory is a mount on another file server which has the same permissions as the images directory. 755 & www-data as both owner & group.

Directory: /var/www/html/mediawiki/images (mounted to a different drive than the rest of /var/www/html/mediawiki) /mnt/fileserver/deletedwikifiles

php.ini has file_uploads set to on and my version means that safe_mode isn't the issue. I read about a bug regarding upgrading MediaWiki from 1.22 to 1.23 causing file uploads to be broken, but that was traced back to shared hosts and this server isn't shared.

Any help is appreciated.

Edit:

I just thought I'd bump this with a bit more technical information. I couldn't delete files, but I could upload them. Then I did the following commands from the root of MediaWiki:

sudo chmod 775 -R ./ [Entire MediaWiki Root has rwxrwxr-x permission set.]

sudo chmod 666 -R ./images [images * subdirectories has rw-rw-rw- permission set.]

sudo chmod 775 ./images [The directory images has rwxrwxr-x permission set.]

sudo chown root:www-data -R ./ [This means Root has full rwx for everything but files in images where it has rw- only while apache web group has rw- for images, but not the directory, and rwx for the rest of MediaWiki's root.]

Then I could delete the files, but when I tried to upload them, I got this error: 'Could not create directory "mwstore://local-backend/local-public/b/b9".' and the thumbnails were broken.

Then I did this command from the same root directory of MediaWiki:

sudo chmod 777 -R ./ [Everything has all the permission for MediaWiki's root directory.]

And once again, I can upload files, and see thumbnails/files, but I can't delete them again, getting 'Error deleting file: Could not create directory "mwstore://local-backend/local-deleted/8/d/b".' when I try.

I'm baffled as to how to troubleshoot what appears to be a permissions problem in this situation after those results.