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

I figured you might be on to something there because I did the following: ls -la /mnt/fileserver/deletedwikifiles

drwxrwxrwx 4 root root 4096 Jul 29 10:09. drwxrwxrwx 4 root root 4096 Jul 29 10:09 public drwxrwxrwx 4 root root 4096 Jul 29 10:09 private

So I checked and I hadn't configured /etc/fstab to mount the drive such that www-data is owner/group because it's on an NTFS volume (which means it makes root owner/user by default). I tried redefining $wgDeletedDirectory = $wgScriptPath/images/deleted as a test.

ls -la ./images/deleted drwxrwxrwx 4 www-data www-data 4096 Jul 29 10:09. drwxr-xr-x 14 www-data www-data 4096 Jul 29 09:39 .. drwxrwxrwx 2 www-data www-data 4096 Jul 29 10:08 private drwxrwxrwx 2 www-data www-data 4096 Jul 29 10:09 public

Yet it still gives the "Creating directory" error when trying to delete a file. I tried changing the above permissions to 755 (rwxr-xr-x), just like it is for the rest of ./images, but that didn't fix it either.