[Mediawiki-l] phpsuexec and uploaded file permissions

Transom transomsailor at excite.com
Tue Sep 25 13:11:12 UTC 2007


After installing phpsuexec, newly uploaded files are no longer accessible.



The first problem was that MediaWiki wouldn't upload files because it complained the files were corrupt or had bad extensions. That seemed to be a MIME detection issue and my sys admin set $wgMimeDetectorCommand to "file -bi" and that solved that problem.



Now the files are being uploaded, but newly-uploaded image files are not visible in the wiki. On an Image: page, the image is not displayed  and clicking the image link leads to an Apache error. The newly uploaded files have permissions=644 whereas before they had 755.



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.



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".



Both issues lead me to believe there is a filetype/mime issue somewhere and it'[s probably related to something I didn't do right when configuring the system.  



I am using MediaWiki 1.11.0, Apache/1.3.39, Linux 2.6.19.2-grsec.



TIA.



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





More information about the MediaWiki-l mailing list