Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Mediawiki versions in OpenSuSE

  1. #1

    Default Mediawiki versions in OpenSuSE

    All,

    I have been a big fan of Mediawiki for some time now and have had it installed on a couple of servers that are all running OpenSuSE (just upgraded one to 11.2!).

    It seems that since about OpenSuSE 10 that Mediawiki has been removed out of the main repos for the distribution. I can understand this in that perhaps not everyone wants to use it and there is limited space on the DVDs, etc. However, I have also been tracking as to where it has ended up in the repositories.

    At the moment there are three places I can find it in the OpenSuSE 11.2 build repos -
    Code:
    home:/jvrdld:/packages/openSUSE_11.2
    home:/Michael_Knight/openSUSE_11.2
    home:/etrash:/webapps/openSUSE_11.2
    From the above it seems that two of these are "user" build areas and the other one, etrash, (looks more populated) seems to be the current resting place. The version of Mediawiki in etrash looks like it is still the same version that is from OpenSuSE 11.1 (bar a minor, minor version update). Is this the version that most people are using for their own deployments of Mediawiki? Seems a little strange since the version on Mediawiki's website is 1.15, the repo is only 1.13 and usually between OpenSuSE releases the version level jumps by at least one major revision. Then again, two thumbs up to the maintainer of the package in the first place!

    I know from other forum postings that SuSE has a plan on upgrading the existing OpenSuSE wiki to a new version of Mediawiki. Would this new version be the one that is currently in the build repos or is it going to be a newer version? If it is a newer version could the newer version be put into the build repos?

    Ed

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Mediawiki versions in OpenSuSE

    FWIW, it's very easy to install mediawiki from source. Since mediawiki releases a new version every quarter this would be the easiest way to keep up, because you should go through the upgrade procedures that mediawiki recommends, and that upgrade procedure is not something that's easy to express in an RPM package.

  3. #3

    Question Re: Mediawiki versions in OpenSuSE

    Can somebody point me to a description of the simplest way to upgrade a mediawiki installation when opensuse is upgraded?

    I was running mediawiki successfully and happily on a box running opensuse10.2. I upgraded the box to opensuse 11.2 and discovered mediawiki was no longer in the standard repositories. I found version 1.13.3 in the home:Michael_Knight repository and installed that. I've found a 339-line document in /srv/www/htdocs/mediawiki/UPGRADE and am wondering if there is some simpler description of what is necessary to get the wiki to run again.

  4. #4

    Default Re: Mediawiki versions in OpenSuSE

    Notice that you resurrected an old post of mine - don't mind it but not sure as to the policy on bumping old threads. However, the quick answer to your question is that I have followed what ken_yap has suggested and gone directly to the source for Mediawiki. Grab a hold of the tarball off of their website and use it. This does sort-of go against what I normally prefer on just about every box I sysadmin (and there are a LOT of them - though admittedly only a couple of Mediawiki boxes and so I can grudgingly accept this method) and that is that I do really prefer RPMs. That way I can easily find out the version of software that is installed on a particular machine. Oh well...

    Anyways, a more detailed answer your question (but not super-detailed) that I usually do after performing an OS upgrade (usually through zypper dup) on the Mediawiki boxes that I have (adjust the following for your setup, etc., etc.):

    1) Before you do ANY of this make sure that both Apache and MySQL are shutdown. You do NOT want to do any of this with them up as you may end with a corrupted database, etc. Usual caveats apply - if you wipe out your system then don't blame me, etc.
    2) Mediawiki usually resides in something like /srv/www/htdocs/mediawiki (say under a plain vanilla OpenSuSE installation - doesn't really matter which version). As you probably know, this is where the web server usually publishes its stuff from (unless you have mucked around with DocRoot under the Apache configuration (or chose your web server)). Copy this directory off somewhere so that you have a backup of what was there.
    3) Goto the mysql folder (usually /var/lib/mysql). Copy this folder completely as well (usually I just copy it to mysql.old). Make sure that you have enough disk space for this since if you are running other MySQL databases within the instance that you have then you could have a lot of data there. This is "crude but effective" and I find this solution easier than jumping on as an admin and performing a mysql dump, etc., etc. Also, you will have an exact copy that you can go back to if all goes haywire with your new setup.
    4) Grab a hold of the mediawiki tarball from the Mediawiki website. They are up to 1.16.0 at the time of this posting. Extract the Mediawiki tarball in the /srv/www/htdocs/mediawiki directory. Check to make sure that your AdminSettings.php is up-to-date (this should have.
    5) Startup your MySQL database and make sure that it is running properly.
    6) Goto the maintenance directory within /srv/www/htdocs/mediawiki and run php update.php. This will go through and update any settings within your existing setup to the newer version of MediaWiki. It will also make the appropriate changes to the MySQL database to take into account new MediaWiki features.
    7) If you have any extensions then check with Mediawiki's website to see whether there are new versions available. Grab a hold of them and put them in the extensions directory (under /srv/www/htdocs/mediwiki). One of the ones that I like is the ability to generate PDF files from Wiki pages.
    8) Lastly, fire up Apache and login to a bunch of your pages to make sure that things are working properly again. Grab a hold of a "tame user" and get them to do the same (you might be surprised at what kind of things they will pick up - ran into a Swedish language bug once to do with, I think, some sort of maths equations display - not that I am handling anything in Swedish but it seemed to kick in with an international language change that the MediaWiki guys did - had to do some MySQL changes to get things fixed).

    All of this is covered in the Mediawiki documentation on their website. I would suggest going and having a read through their procedures as to what to expect, etc. Another thing I should add is that occasionally I have cleared out my MediaWiki setup and rather than extracting over the top of what is there, just simply copied in the directories/files from the old setup into the right locations under the new setup. I hate having to sort out issues with old/new setup being mixed together (reminds me of Windows OS "upgrades" - avoid this sort of thing like the plague - it is a LOT cleaner to install things anew and copy old data into place sometimes).

    I should add to all of this is that there have been several packages that I have found useful over the years as part of my "standard builds" that have regrettably been removed from the main distribution. One of these is FreeNX - the free NoMachine server available under Linux. If you haven't mucked around with it then I would highly recommend giving it a do as it is a lot faster/more secure than out-of-the-box VNC. Then again this is a digression from the topic at hand.

    I think that there is another posting on the forums discussing the MediaWiki skin that is used for the OpenSuSE website. I was after something that was nice and clean once but have now just resorted to using the defaults. Might investigate this further if I have the time.

    Integrating with Drupal or some sort of CMS is another thing of interest that I think can be done but then probably best off in another posting...

  5. #5

    Thumbs up Re: Mediawiki versions in OpenSuSE

    Hi, Many thanks for the detailed reply. I've got it working now. I think I was overpowered by all the instructions as to how to upgrade from different ancient versions, but by ignoring that and concentrating on the steps you describe it all worked.

    I think mysql can default to some Swedishness of character handling. A colleague has a database that has an ungodly mix of Swedish and 'general' collatiion orders and it doubles the size of all my SELECT statements to bring them back to sanity.

    Cheers, Dave

  6. #6

    Thumbs down Re: Mediawiki versions in OpenSuSE

    Quote Originally Posted by djh-novell View Post
    I've got it working now.
    I spoke too early. Just in case anybody else reads this thread, the version I used does not work. It's OK to view pages but as soon as you try to log in you get PHP errors. It seems to be a bug fixed in a later Mediawiki version.

    I don't really want a wiki that I have to maintain separately from the rest of my system, so it looks like I'm now looking for some new wiki software. Unfortunately, it seems that opensuse doesn't include any at all nowadays.

  7. #7

    Default Re: Mediawiki versions in OpenSuSE

    Hi,

    Try Moin Moin, its a nice wiki! I am not sure how hard-core of an installation you are going for but for the desktop version its easy enough to install. But I agree with you Open Suse would do well to give more attention to Wiki and RSS. It would be great to have a KDE version...or even better yet Konqueror integrated!

  8. #8

    Default Re: Mediawiki versions in OpenSuSE

    Yes, moin-moin is one that I'm considering. But it isn't packaged for opensuse AFAIK. No wikis are! Ubuntu has it but it's quite a big step to move my main desktop from suse to ubuntu.

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Mediawiki versions in OpenSuSE

    djh-novell wrote:

    >
    > Yes, moin-moin is one that I'm considering. But it isn't packaged for
    > opensuse AFAIK. No wikis are! Ubuntu has it but it's quite a big step to
    > move my main desktop from suse to ubuntu.
    >
    >

    Reagrding mediawiki I do not really see the benefit in packaging such web
    based systems, the installations are fairly trivial and follow the pattern:

    download the archive from the original page (e. g. mediawiki)
    install a lamp on opensuse (this are two or three mouse clicks with yast)
    unpack the downloaded archive into a (sub) folder where apache looks for web
    pages (by default /srv/www/htdocs), make a subfolder mediawiki for example
    and put it there.
    Go into a browser and use the link to the config page.
    This pattern works for most of these simple web applications including sugar
    crm, wikis and ...

    A more detailed description is here
    http://www.mediawiki.org/wiki/Installation

    Took me less than 15 minutes to make it run.
    One reason not to rpm such applications is how do you decide about when you
    need several different instances of them, that would not be possible with an
    rpm.

    --
    openSUSE 11.2 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.5.1 | GeForce
    9600 GT | 4GB Ram
    openSUSE 11.3 64 bit | Intel Core2 Duo T9300@2.50GHz | Gnome 2.30 | Quadro
    FX 3600M | 4GB Ram


  10. #10

    Default Re: Mediawiki versions in OpenSuSE

    Quote Originally Posted by martin_helm View Post
    djh-novell wrote:
    Reagrding mediawiki I do not really see the benefit in packaging such web
    based systems, the installations are fairly trivial and follow the pattern:
    Well the point of packaging any application is surely the maintenance rather than the original installation. Both updates to the package itself and updates to the underlying system. Having everybody discover independently exactly which combinations of which programs work together (or more importantly, don't work together) is inefficient. Why package desktops, or LAMP components?

    And even if installations/maintenance are simple, they're all different. Yet more cruft to remember. I'd like to be able to concentrate on the things I'm trying to do rather than having to sharpen and polish my tools all the time.

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •