File Upload Error in MediaWiki 1.22.3 - Could not create directory “mwstore://local-backend/local-public/7/70”

房东的猫 提交于 2020-01-23 07:22:47

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!