Jump to content

Topic on Project:Support desk/Flow

not able to upload tried all the obvious things.

4
67.159.165.194 (talkcontribs)

Completely frustrating me.

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/
chown 755 -R images/ (threw error)
chown 777 -R images/ (threw error)

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

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

Thanks.

MarkAHershberger (talkcontribs)

It isn't chown 777 -R images/ but chmod -R 777 images/.

If you do that, does it work?

67.159.165.194 (talkcontribs)

Oh that was just a typo on my end. I used chmod

88.130.112.223 (talkcontribs)

It is in fact possible that permissions are not set correctly. When you used chmod -R 777 images/, what error did you get?