Last modified: 2013-10-23 18:17:31 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 T37277, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35277 - Installer should guide setting up the upload directory ("/images")
Installer should guide setting up the upload directory ("/images")
Status: NEW
Product: MediaWiki
Classification: Unclassified
Installer (Other open bugs)
1.18.x
All All
: Normal enhancement (vote)
: Future release
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-17 01:37 UTC by David P
Modified: 2013-10-23 18:17 UTC (History)
4 users (show)

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


Attachments

Description David P 2012-03-17 01:37:16 UTC
Using: mediawiki-1.18.1 on CentOS 6 (fresh install), with sqlite.

Trying to upload on a live instance gives you the message :

"Upload directory (public) is not writable by the webserver"

Upon searching, I found that this "little intervention" is needed:

http://www.mediawiki.org/wiki/Project:Support_desk/Archives/Uploading/001#.28RESOLVED.29_Upload_directory_.28public.29_is_not_writable_by_the_webserver
basically, "chown apache:apache images".

-----
SOLUTION PROPOSAL #1
While you're installing, the installer currently guides you to manually setup the "data" folder. Looks like the same - so guiding to manually setup 'images' - should be done here.
Make this a part of the setup process.

SOLUTION PROPOSAL #2
The error is non-descriptive.
There should be a solution given/hinted for the error message in any case, something like:
"""
Are you sure the upload folder (/images in your installation directory) has read/write privileges? Does your webserver have read/write privileges? 
Try running
"chmod 755 images" & "chown apache:apache images"
"""

-----

Just another hint: I didn't know where to look for the "upload" folder. Found out it was called "images"...
Comment 1 Marcin Cieślak 2012-03-17 01:45:26 UTC
One of those installer usability fixes one never gets enough.
Comment 2 Mark A. Hershberger 2012-03-26 13:47:30 UTC
Removing from tarball blocker -- we can target 1.20 for this.
Comment 3 Jarry1250 2012-03-26 14:13:13 UTC
"Are you sure the upload folder (/images in your installation directory) has
read/write privileges? Does your webserver have read/write privileges?" sounds good.

"Try running "chmod 755 images" & "chown apache:apache images"" could be tied to the platforms on which it is appropriate, rather than left as a general instruction. For example, on my playground Windows version, I have to ensure the folder is not read-only via folder preferences. Do we have an OS detector in the installer?

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


Navigation
Links