Please help regarding file upload

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

I too am looking for this folder.

user@server:~$ sudo find / -samefile /local-backend
find: `/local-backend': No such file or directory

Derringer81 (talk)00:55, 3 August 2012

local-backend isn't the name of a folder. Its a stand in mediawiki uses for whereever you have configured for the file uploads to go. In most installs, the folder "local-backend/local-public" refers to the images subdirectory of your MediaWiki install.

Bawolff (talk)12:20, 3 August 2012

I figured out what caused it on my end. I was using importImages.php to batch upload a bunch of images. I did this as root, so all the sub-directories in $IP/images that were created during the batch upload were owned by root instead of www-data. When the web interface, which uses www-data user, tried to create a subdirectory it didn't have write permissions. I recursively changed the ownership of all the directories back to www-data and it worked. Here's the command.

$ chown -R www-data images

This didn't change the group ownership, but that shouldn't matter.

107.1.254.17021:58, 14 August 2012

Funny story, someone recently did the exact same thing on Wikimedia Commons (Well using the wrong permissions, I don't know if they used that particular script - bugzilla:39221#c9)

Bawolff (talk)12:48, 15 August 2012