![]() ![]() ![]() ![]() v /var/mediawiki/images:/images Which file extensions are allowed for uploading can be controlled with the environment variable MEDIAWIKIFILEEXTENSIONS. e MEDIAWIKIENABLEUPLOADS1 Mount a writable volume to the images folder. Uploads are also logged in the upload log. To enable file uploads set the environment variable MEDIAWIKIENABLEUPLOADS to 1. Set permissions of the directory to 777 and make sure apache is the owner and can correctly write to this directory.ĭelete the contents of the lockdir folder.Īdding the following to LoadSettings.php will hopefully dump some additional error information to use for debugging. To view or search previously uploaded images go to the list of uploaded files. If this solution didn’t work there are a few other things to try as the problem might not be related to SELinux. The file should now correctly upload without any error with acquiring a lock with the lock dir. Go back to Mediawiki and check the file upload again. If you are using a command line tool you should see that the highlighting of the folder has changed to a green color. In order to get over this problem you need to navigate to the images directory for your Mediawiki install. After a lot of googling It would seem that a common cause of the issue is SELinux. I tried setting the permissions for the entire images folder to 777 and made sure the ownership of the directories was correct, yet it didn’t make a difference. MediaWiki File Class Reference File Repository » File abstraction Implements some public methods and some protected utility functions which are required by multiple child classes. I initially thought this was some sort of permission error since it makes sense. When trying to upload any files i was getting an error “could not acquire lock for …”. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |