Bug 496428

Summary: Mediawiki should have a usable default configuration
Product: [Fedora] Fedora Reporter: Dennis Jacobfeuerborn <dennisml>
Component: mediawikiAssignee: Axel Thimm <axel.thimm>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: rzhou
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-26 21:07:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dennis Jacobfeuerborn 2009-04-19 02:56:59 UTC
The mediawiki package should contain a usable default configuration like other web based packages in Fedora provide. This would require the following changes:

1. A file "/etc/httpd/conf.d/mediawiki.conf" that sets up an alias "/wiki/" with a target of "/var/www/wiki/".

3. A symlink "/var/www/wiki/skins" to "/usr/share/mediawiki/skins" is currently missing which results in mediawiki not beeing able to load the stylesheets.

With these two changes users can install the package and immediately go to "http://localhost/wiki/config/" to setup their mediawiki instance. The config-file should probably make the "/var/www/wiki" only accessible from localhost by default for security reasons. If users want to make the wiki available externally they only have to remove that directive from the config file.

3. Potentially "/var/www/wiki/images" should be writable for the user "apache" and "/usr/share/mediawiki/images" should be a symlink to that directory so that enabling the file upload option works properly. (Unfortunately mediawiki seems to write the files directly to "/usr/share/mediawiki/images" instead of "/var/www/wiki" so that this symlink is necessary to prevent apache from writing files to "/usr". I'm not sure if there is a better way to fix this behavior.)

Comment 1 Ricky Zhou 2009-06-22 00:01:36 UTC
Hm, I'm honestly not too crazy about having mediawiki pull in apache (I know it currently does do this) to do this when people could just as well want to use mediawiki with lighttpd or some other web server.  Perhaps a possible solution would be to include sample configuration files and a README.fedora with instructions for setting it up in /usr/share/doc/mediawiki-*?

Comment 2 Axel Thimm 2009-07-26 21:07:03 UTC
The current package in rawhide has some package specific documentation and sample configuration. Some wrong dependencies for minimal (mathless) installations have been fixed as well. From the changelog:

- Add a README.RPM and a sample apache mediawiki.conf file.
- All (runtime) dependencies from mediawiki need to move to
  mediawiki-nomath.

See also
http://cvs.fedoraproject.org/viewvc/rpms/mediawiki/devel/README.RPM?view=co
http://cvs.fedoraproject.org/viewvc/rpms/mediawiki/devel/mediawiki.conf?view=co

Please check if the issues are ironed out and reopen if not. The package in rawhide may further change before F12 to address bug #463784.