[Mediawiki-l] phpsuexec and uploaded file permissions

Transom transomsailor at excite.com
Wed Sep 26 18:02:30 UTC 2007


Platonides wrote:

> Transom wrote:

> > So---are the permissions wrong? I don't know why MediaWiki

> > would need "execute" permissions for images, but when images

> > are 755 it works, and when set to 640, it doesn't.

>

> I guess it has to do with the read permission for everybody,

> and not with the execute permission. Can the files be read by

> the user under which apache runs?



Thanks for replying.



Apache is running as "nobody". After upload, the read permission is set to "644" (in one place in original message I said "640", but that was a typo). The owner and group are set to the user where MediaWiki is installed.



I would think that 644 was fine; Apache can read the file.



> > ALSO... I have noticed that MediaWiki shows a link on

> > the image page for images uploaded in the past, and the

> > MIME type is displayed as "text/plain".



> The mime type is stored in the database. As those images

> were detected as text/plain in the past, they're still listed

> as such. They would be correctly detected if you reuploaded

> them today.



Hmm. Another responder said to run a maint script to fix the mime types. I'll probably do that, but I don't understand why files uploaded before didn't have the mime type set; they displayed fine, and basically, everything was working as expected before installing phpsuexec.



Another symptom: When I go to the "recent changes" page and limit the namespace to "Image", I get no results even though various images have been uploaded.



I'll run the main script and then I'll be back...



Thanks.

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!





More information about the MediaWiki-l mailing list