Last modified: 2013-07-30 00:10:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T50149, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48149 - Persistent "Unable to write to directory" Installer error with SQLite backend when SELinux is enabled
Persistent "Unable to write to directory" Installer error with SQLite backend...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-06 10:53 UTC by Andre Klapper
Modified: 2013-07-30 00:10 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andre Klapper 2013-05-06 10:53:16 UTC
I tried to install 1.22alpha (from git master) on Fedora 18 with SQLite backend.

Puzzled why I still got "Unable to write to the directory X. Change its permissions so that the webserver can write to it, and try again." even after running "chmod a+rwx" on that directory, I finally realized that running
    setenforce 0
does the trick. SELinux to blame here, but not clear at all.

So I'm wondering whether it's worth to check for it, or at least to mention in the error. Maybe combined with checking system/distro (via "lsb_release -a"?) and/or checking the SELinux status (via "cat /etc/sysconfig/selinux"?).
Comment 1 Andre Klapper 2013-05-06 10:56:38 UTC
(In reply to comment #0)
> (via "cat /etc/sysconfig/selinux"?)

Running "sestatus" might be even better, provides
SELinux status:                allowed
as first line here.
Comment 2 Andre Klapper 2013-05-15 21:20:00 UTC
Seems to be covered under http://www.mediawiki.org/wiki/Manual:Errors_and_symptoms#SELinux hence feel free to close this, however it would be nice if such errors could either provide more information or link to that part of the manual.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links