Topic on Project:Support desk

[RESOLVED] File Upload Problems, 'Could not create directory ...'

1
LiamRyanTheProgrammer (talkcontribs)

Hello, when I attempt to upload a file to my wiki, it gives the error 'Could not create directory "mwstore://local-backend/local-public/c/c4".'

I am running MediaWiki 1.24.2 with PHP 5.4.38 (cgi-fcgi) and SQLite 3.7.7.1 on a shared server. The images/ directory has 0755 permissions, but file uploads do not work with 0777 permissions either. The images/ directory is owned by the same user that owns and (to my knowledge) executes the scripts. The php.ini directive file_uploads is set to "On".

The wiki itself is located at wiki.liamscode.net.

Before, I had used (an outdated version of) MediaWiki installed using an automatic installation script and file uploads were working fine, and the permissions of the (sub)directories seem to be the same.

Edit: If I use the UploadWizard extension, it gives the error 'Internal error: Server failed to store temporary file.'. I am not sure if this information would help or not.

Edit 2: If I put a php file in wiki root directory that just creates a file in images/ it runs fine (and the file is made). So it must be a problem with the MediaWiki files themselves, right?

Resolution: It turned out to be something to do with SQLite, when I tried using MySQL, it worked.

Reply to "[RESOLVED] File Upload Problems, 'Could not create directory ...'"