Bug 757328 - MediaWiki fails to install with mw-createinstance and PostgreSQL
Summary: MediaWiki fails to install with mw-createinstance and PostgreSQL
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: mediawiki
Version: 16
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Axel Thimm
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-26 13:45 UTC by Vedran Miletić
Modified: 2013-02-13 08:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-13 08:57:58 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vedran Miletić 2011-11-26 13:45:03 UTC
# mw-createinstance /var/www/mediawiki/test
# chown -R apache:apache /var/www/mediawiki/test
# chcon -R system_u:object_r:httpd_sys_content_t:s0 /var/www/mediawiki/test

Configured /etc/httpd/conf.d/mediawiki.conf and created a database. Results in:

MediaWiki 1.16.5 Installation

    Don't forget security updates! Keep an eye on the low-traffic release announcements mailing list.

Checking environment...

Please include all of the lines below when reporting installation problems.

    PHP 5.3.8 installed
    Found database drivers for: MySQL PostgreSQL SQLite
    PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
    Have XML / Latin1-UTF-8 conversion support.
    Session save path (/var/lib/php/session) appears to be valid.
    PHP's memory_limit is 128M bytes.
    Couldn't find eAccelerator, APC or XCache; cannot use these for object caching.
    Found GNU diff3: /usr/bin/diff3.
    Found ImageMagick: /usr/bin/convert; image thumbnailing will be enabled if you enable uploads.
    Found GD graphics library built-in.
    Installation directory: /var/www/mediawiki/test
    Script URI path: /test
    Installing MediaWiki with php file extensions
    Environment checked. You can install MediaWiki.

    Generating configuration file...
    Database type: PostgreSQL
    Loading class: DatabasePostgres
    Attempting to connect to database "mediawiki" as "mediawiki"...
    Checking the version of Postgres...version 9.1.1 is OK.
    Checking for Pl/Pgsql ...OK
    Schema "mediawiki" exists and is owned by "mediawiki". Excellent.
    Setting the timezone to GMT for user "mediawiki" ...OK
    Setting the datestyle to ISO, YMD for user "mediawiki" ...OK
    Setting the search path for user "mediawiki" ...OK
    Connected to postgres 9.1.1
    Creating tables... Warning: fopen(../maintenance/postgres/tables.sql): failed to open stream: No such file or directory in /usr/share/mediawiki/includes/db/Database.php on line 2166 FAILED

Could not open "../maintenance/postgres/tables.sql".

Comment 1 Vedran Miletić 2011-11-26 15:34:49 UTC
An upgrade to 1.17, if possible, would likely fix the issue. Release notes [1] mention new installer.

[1] http://www.mediawiki.org/wiki/Release_notes/1.17

Comment 2 Tom King 2012-01-12 12:36:57 UTC
I'm in no way suggesting that this is the correct way to fix this issue but a simple solution is to alter /usr/sbin/mw-createinstance

It would need to add a symlink to /usr/share/mediawiki/maintenance for the installation to complete successfully.

Comment 3 Fedora End Of Life 2013-01-16 10:20:42 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Fedora End Of Life 2013-02-13 08:58:01 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.


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