not able to upload files into mediawiki -- weird one

Posted by Michael on Server Fault See other posts from Server Fault or by Michael
Published on 2013-06-27T22:50:17Z Indexed on 2013/06/28 22:23 UTC
Read the original article Hit count: 201

Filed under:

Completely frustrating me.

When I try and upload a small jpeg file I get the following error:

Warning: wfMkdirParents: failed to mkdir "/usr/local/mediawiki-1.20.5/images/5/5d" mode 0777 in /usr/local/mediawiki-1.20.5/includes/GlobalFunctions.php on line 2546

CentOS 6.4 MediaWiki 1.20.5 PHP 5.5.0RC1 (apache2handler) MySQL 5.5.31

php.ini

safe_mode = off;
file_uploads = On
max_file_uploads = 20

localsettings.php

$wgEnableUploads = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

images folder

chown apache:apache images/
chmod 755 -R images/ (threw error)
chmod 777 -R images/ (threw error)

I've restart apache and still cannot upload. I'm stumped. Any ideas?

© Server Fault or respective owner

Related posts about mediawiki