ISSUE:
- After having installed mediawiki 1.32.0 (release on 2019-01-11) and having imported DB, pages and images from my old mediawiki 1.22.0 I am now unable to upload any image and receive the following error message:
- Could not open lock file for "mwstore://local-backend/local-public/4/4c/whereverfile.png".
- Make sure your upload directory is configured correctly and your web server has
- permission to write to that directory.
- See https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:$wgUploadDirectory for
- more information.
- I checked all the topics within the mediawiki support desk but unfortunately none of them worked.
- No need to mention that my LocalSettings.php does not contain any of the following variables
- and even if I try to set these variables (again they do not appear by default in LocalSettings.php), by the time I save the modifications, my mediawiki does not load any longer:
- #$wgUploadPath = "$wgScriptPath/images"
- #$wgUploadDirectory = "$IP/images"
- #$wgTmpDirectory = "$IP/images/temp"
- I am 100% sure that the apache user is www-data (I have obtained it after having executed the following command:
ps -ef | egrep '(httpd|apache2|apache)' | grep -v `whoami` | grep -v root | head -n1 | awk '{print $1}'
- I compared permissions of my previous Mediawiki with the new one and they are the very same ones
WORKAROUND (NOT ACCEPTABLE)
The only solution (temporary) I came across at the moment is to issue the following command:
chmod -R 777 images
but this is not acceptable for security reasons.
ENVIRONMENT
No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial
Can someone please help me????
I ran out my ideas.
Thanks.