When I attempt a file upload, I get the following error:
"Could not create directory "mwstore://local-backend/local-public/d/db"
"
If I go to the images directory (owned by www-data:www-data) with 755
permission (and all subsequent directories, too), I see that the directory
~/d/db has been created BUT only has "drw-r--r--" permissions. If I then
change permission to 755 and reattempt the upload, it works.
Second problem - once that file is uploaded, I get the error "Error
creating thumbnail: Unable to save thumbnail to destination". Again, if I
go to the thumbs directory, and ~/d/db directory has been created but with
the incorrect permissions. (I also tried safe mode, where a file is just
uploaded directly to the /images directory, but no thumbnail was created in
the /images/thumbs directory).
SO ... does anyone know what script or configuration file in mediawiki (or
other processes) is allowing the directories to be created for file
uploads, but would NOT be giving them the correct permissions for saving
and creating thumbnails??
Mediawiki 1.26.0
PHP 5.5.9-1ubuntu4.14 (apache2handler)
MySQL 5.5.46-0ubuntu0.14.04.2
I have searched many a forum on all of these errors and most seem to be
centered around people not having the proper ownership/permissions for the
/images directory (and/or subdirectories). A few mentioned perhaps a
problem with apparmor, but I have no clue as to what section(s) to edit if
so.
Thanks in advance!