问题
We recently upgraded our MediaWiki installation to 1.22.3 running on Ubuntu 12.04.2 LTS. Now when we try to upload files, we get the following error:
Could not create directory "mwstore://local-backend/local-public/7/70"
回答1:
Finally found the solution in the MediaWiki documentation. The problem was the ownership of the images directory. Making the adjustments suggested in the documentation eliminated the problem. See the following for details: http://www.mediawiki.org/wiki/Manual:Configuring_file_uploads
Specifically, do this:
sudo chown -R www-data:www-data images/
sudo chmod -R 755 images/
Your installation MIGHT use the uploads/ directory instead. If so, do the same to it.
回答2:
I had the same problem on a Windows Server. The cause was that the user that was running the wiki app-pool (IUSR) did not have acceess rights to the mediawiki\images folder.
Granting additional read/write access to the images folder solved the problem.
Hope this helps anyone encountering the same issue.
来源:https://stackoverflow.com/questions/22303606/file-upload-error-in-mediawiki-1-22-3-could-not-create-directory-mwstore-lo