M
M
Mikhail Shatilov2014-06-09 23:16:45
PHP
Mikhail Shatilov, 2014-06-09 23:16:45

Why "Unable to create directory" in MediaWiki?

File upload not working:

Невозможно создать директорию «mwstore://local-backend/local-public/b/b9».

Settings in LocalSettings:
$wgEnableUploads = true;
$wgUploadPath = "/uploads";
$wgUploadDirectory = "/uploads";
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/uploads";
$wgVerifyMimeType = false;

Permissions for uploads & images recursively 777. Shared hosting (tried on 2 different ones). I put it on a local open server - everything works, obviously, the problem is in the rights.
Who faced, what else can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
trall, 2014-06-10
@sashablashenkov

A little googling on your question found this www.mediawiki.org/wiki/Thread:Project:Support_desk...
Try it
sudo chown -R www-data полный_путь_до_images

U
UksusoFF, 2014-06-10
@UksusoFF

Try to comment out everything except $wgEnableUploads, everything should work out of the box on default settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question