[Mediawiki-l] unable to upload files to chmod 777 folder

bram a.l.w.kuijper at rug.nl
Mon Jan 17 17:49:01 UTC 2011

Hi all,

I am currently trying to get file uploads to work in mediawiki 1.16.1 , 
but I keep getting the error message: "The upload directory (public) is 
not writable by the webserver". I chmodded the upload directory to 777 
(yes, I am aware of the security risk), but to no avail. Does anyone 
know the right trick to solve this problem?


The upload directory that I have set in my Localsettings.php file is:
$wgUploadPath = "/mediawiki/file_uploads";

If I check
the folder exists.

These are the file permissions for this folder:
ls -lanh mediawiki/file_uploads
drwxrwsrwx   2 198048   198048         2 Jan 17 17:35 .
drwxrwsr-x  15 198048   198048        45 Jan 17 17:36 ..

note that the apache user has id 900, but given the folder's 
permissions, this should still work, right?

More information about the MediaWiki-l mailing list