webserver cannot write uploadmap

joh

New member
Joined
Mar 1, 2009
Messages
4
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 ?
 
The directory that the script is trying to upload to needs to be chmod 777 or 766
 
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 ?
 
You can use 755, but you'll need to change the ownership of the directory to apache I believe.
 
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.
 
Mediawiki mentions to use 755 specifically, which is why I replied with the above. Either method will work and both carry risks.
 
Back
Top