PDA

View Full Version : webserver cannot write uploadmap



joh
03-13-2009, 05:17 AM
I get message "webserver cannot write uploadmap" using mediawiki when trying to upload image.

permissions of upload file are set to 755
UID and GID are set to my usernr debXXXXX
What can be the problem ?

As a possible cause I read in a Wikimedia manualthat the following should be set in "php.ini" file: "file_uploads = on". This file I cannot locate on the server. Is it hidden for me ?

floyd
03-13-2009, 05:24 AM
The directory that the script is trying to upload to needs to be chmod 777 or 766

joh
03-15-2009, 03:49 PM
Thanks.
776 does give error: Map “public/f/fc” can't be made.
But 777 fixes te problem.

I understood this is a dangerous setting. I did not find this setting in the wikimedia handbook. Should there perhaps be a safer solution ?

GXX
03-15-2009, 10:08 PM
You can use 755, but you'll need to change the ownership of the directory to apache I believe.

floyd
03-16-2009, 05:09 AM
You can use 755, but you'll need to change the ownership of the directory to apache I believe.

And then its just as secure as 777.

And regular users cannot change ownerships.

GXX
03-16-2009, 08:02 AM
Mediawiki mentions to use 755 specifically, which is why I replied with the above. Either method will work and both carry risks.