Koozali.org: home of the SME Server

Howto install Mediawiki 1.16.0 on SME8b6

Offline fpausp

  • *
  • 728
  • +0/-0
Howto install Mediawiki 1.16.0 on SME8b6
« on: January 06, 2011, 11:36:49 PM »
Hi all,

I made a howto for Mediawiki 1.16.0 on SME8b6, please try it out:

http://www.netztechnik.at/download/sme8/howto/mediawiki/howto-mediawiki.txt


Best
fpausp
Viribus unitis


Offline fpausp

  • *
  • 728
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #2 on: January 07, 2011, 08:22:49 AM »
Thanks, v0.2 of the howto with Mediawiki 1.16.1 is up.
Viribus unitis

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #3 on: February 16, 2011, 09:46:05 AM »
Thanks, v0.2 of the howto with Mediawiki 1.16.1 is up.

Thanks for sharing your accurate, step by step instructions. It worked for me  :grin:

Cheers,
SME Server is a fantastic product - thank you!

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #4 on: February 16, 2011, 05:15:01 PM »
You're welcome. A new Version is up since 14.02.

Regards
Viribus unitis

Offline Gorfob

  • 2
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #5 on: February 17, 2011, 01:40:45 AM »
Worked flawlessly.

I wonder if you would mine adding instuctions on how to password protect the whole thing via .htacess or point me in the right direction? Im new to both linux and SME server.

Offline fpausp

  • *
  • 728
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #6 on: February 17, 2011, 06:38:49 AM »
Viribus unitis

Offline Gorfob

  • 2
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #7 on: February 18, 2011, 03:13:41 AM »
Tried and failed. I do not get asked for a password I just get an unable to connect message. contents of an aditionl fragment of template. I also tried putting this into the mediawiki fragment as well. No dice.

Code: [Select]
<Directory /opt/mediawiki>
AuthUserFile /opt/mediawiki/.passwordfile
AuthGroupFile /dev/null
AuthName "Documentation Wiki"
AuthType Basic
<Limit GET>
order deny,allow
require valid-user
</Limit>
</Directory>

Offline fpausp

  • *
  • 728
  • +0/-0
Viribus unitis



Offline le pop etre

  • *
  • 7
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #11 on: August 21, 2011, 11:28:16 PM »
Google cached it luckily:
http://webcache.googleusercontent.com/search?q=cache:IkHMlZt9dqYJ:www.netztechnik.at/download/linux/sme/sme8/howto/mediawiki/howto-mediawiki.txt+http://www.netztechnik.at/download/linux/sme/sme8/howto/mediawiki/howto-mediawiki.txt&cd=1&hl=en&ct=clnk&gl=ca&source=www.google.ca

I pasted it into this wiki page http://wiki.contribs.org/Talk:Mediawiki

thank's for your reply.... on this link i can see :

"just install with :

yum install --enablerepo=smecontribs smeserver-mediawiki

"
why this package doesn't work ?

i'm a beginer in linux and sme server... don't expect too mutch from me.... but i can read and it doesn't work !

how do i do ? I've to type what is the howto (from the google cache ) row per row ?

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #12 on: August 23, 2011, 10:52:57 AM »
to install the standard smeserver mediawki (v 1.6.10) it is quite easy
you'll need to set the repos as the wiki says

http://wiki.contribs.org/SME8.0_Contribs_QA

and then use only the new or both repo (it depends of the package - some of them has files in both)
your command should be like

Code: [Select]
yum install --enablerepo=smecontribs --enablerepo=sme7contribs smeserver-mediawiki

as an work around to have a newer version
I have managed to upgrade this to the next version using the wiki upgrade procedure - and seemed to work ok
download from
http://dumps.wikimedia.org/mediawiki/1.7/

Code: [Select]
cd /opt
wget http://dumps.wikimedia.org/mediawiki/1.7/mediawiki-1.7.3.tar.gz

(and install as per wiki  upgrade procedure)
just untar all files over the already created structure in /opt/mediawiki ( it is smart that always have a backup copy of everything you'll overwrite)

you can find some info "how to" here
http://www.mediawiki.org/wiki/Upgrade
or into the downloaded package

then change back ownership/permission to the folders and files
Code: [Select]
chown -R root:root /opt/mediawiki
chown root:www /opt/mediawiki/images
you'll need to have some sql user change (to upgrade the mediawiki user should have temporary rights to structure , create and alter)

this could be done by sql commands or by installing one plugin as phpmyadmin and change from web interface
http://wiki.contribs.org/PHPMyAdmin
(this is a clear example where you'll need both repos)

also you'll need to copy AdminSettings.sample into AdminSettings.php
Code: [Select]
cd /opt/mediawiki
cp AdminSettings.sample AdminSettings.php

and change credentials
Code: [Select]
$wgDBadminuser      = 'mediawikiuser';
$wgDBadminpassword  = '';

at the end upgrade with command
Code: [Select]
cd /opt/mediawiki
php maintenance/update.php

and change back your user rights (no structure rights to create and alter)
and delete the tar file

go to
https://yourserverip/wiki
into special pages version and you'll have
something like
Quote
    MediaWiki: 1.7.3
    PHP: 5.2.10 (apache2handler)
    MySQL: 5.0.77
    Extensions:
        Other:
            PWAuthPlugin (version 1.0), Automagic login with system accounts, using pwauth, by Nicholas Humfrey
        Parser extension tags:
            <pre>

if you'll try to go further ( v 1.8 ) the extension used to login users against sme (PWAuthPlugin) don't work any more
you can do it but any user will not be able to login - it will become a "frozen" wiki

I don't know if this "upgrade" is ok for 7.5 but worked every time I've tried on 8bx (don't remember exact versions)

I have some spare time and I have one sme8 into proxmox
I'll give a try to the previous guide (wiki 1.16) onto one "clean install" sme 8
I'll post back
« Last Edit: August 23, 2011, 10:54:46 AM by larieu »
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline le pop etre

  • *
  • 7
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #13 on: August 23, 2011, 02:15:07 PM »

I'll give a try to the previous guide (wiki 1.16) onto one "clean install" sme 8
I'll post back


So i wait for your post .... My project is simple, we are a small comunity on facebook, and we want to make a wiki on an mf radio (yes it till exist !!!) program.

it's about biological science and philosophia, ethyque, ... high level of french philosophia tradition.

thank's for your help...

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #14 on: August 23, 2011, 03:25:08 PM »
it worked on clean install
but
- it is not linked to sme user system accounts - each user need to make another user :( probably need one extension as LDAP login)
- it has no "local/global" flavor into config (I must try the other type of installs - but into "straight" one is public and that's all )
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline le pop etre

  • *
  • 7
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #15 on: August 23, 2011, 07:21:39 PM »
it worked on clean install
but
- it is not linked to sme user system accounts - each user need to make another user :( probably need one extension as LDAP login)
- it has no "local/global" flavor into config (I must try the other type of installs - but into "straight" one is public and that's all )

So how you did it ? it's confuse for me ... i tryed to follow row per row the wiki ... non of them seak the goal. i've allways an error .

My problem is that i dont note the code....

i do it once again and give error message or you can post something to help ?

thanks for your time.

Guillaume

___________________________________________________________________

"sur les épaules de darwin, sur les épaules des géants"

Offline le pop etre

  • *
  • 7
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #16 on: August 23, 2011, 10:47:11 PM »
to install the standard smeserver mediawki (v 1.6.10) it is quite easy
you'll need to set the repos as the wiki says

http://wiki.contribs.org/SME8.0_Contribs_QA

Quote

in fact the first bug appears here :
 :x

Code: [Select]
db yum_repositories set sme7contribs repository \
GPGCheck yes \
MirrorList http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7 \
Name 'SME 7 - contribs' \
Visible no \
status disabled

error message db: command not found

Offline johnp

  • *****
  • 312
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #17 on: August 24, 2011, 01:41:21 AM »
Did you copy and paste the whole code snipet? I works for me using putty and logged in as root

Offline le pop etre

  • *
  • 7
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #18 on: August 24, 2011, 06:26:09 PM »
Quote
I pasted it into this wiki page http://wiki.contribs.org/Talk:Mediawiki

Acheived, as well, using this post herelinked, and connected as "root"

to connect as root press : "Alt"+"F2" at prompt

then step by step

Offline larieu

  • *****
  • 214
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #19 on: August 25, 2011, 07:40:12 AM »
I have found a solution to authentication issue
I don't get why nobody (me in front of the row) didn't look at Talk page of the problematic plugin

practically now I have version 17 in "classical SME tradition"

short "How to" tested on SME 8b6 clean install

1. change the repo to have also sme7contribs
2. install smeserver-mediawiki
3. download latest wiki version you'll prefer
(
I have tested for 8,15,16,17 in 2 scenario
scenario 1
start at 1.6 standard upgrade to 1.7 and work without plugin alteration then upgraded to 1.8 and altered the plugin, then to 1.15,16,17
scenario 2
start with 1.6 and direct upgrade to 1.17
)
4. unpack over the installed one (/opt/mediawiki)
5. set ownership root:root for everithing in /opt/mediawiki and root:www for /opt/mediawiki/images
6. temporary change the mediawikiuser rights to database (for 1.7 you-ll need only create and alter structure but to other is more and more complex - I hope is not to dangerous to give all to structure - considering that you'll do it only to upgrade)
7. copy AdminSettings.sample AdminSettings.php and change the user as SME (mediawikiuser) without password
8. run the update from root of mediawiki
9. change back the user rigths to database to basic ones
10. go to /opt/mediawiki/extensions/PwAuthPlugin.php and change it according to the Talk page of the plugin
http://www.mediawiki.org/wiki/Extension_talk:PwAuthPlugin
Quote
// $pass = ;
// for($i=0; $i<15;++$i) $pass .= chr(mt_rand(0,255));
// $user->setPassword($pass);

now everything seems to be ok

do you think this should have a note into our wiki to mediawiki contrib - for sme8 users?
if everybody's life around you is better, probably yours will be better
just try to improve their life

Offline le pop etre

  • *
  • 7
  • +0/-0
Re: Howto install Mediawiki 1.16.0 on SME8b6
« Reply #20 on: August 25, 2011, 07:45:13 AM »
I have found a solution to authentication issue
I don't get why nobody (me in front of the row) didn't look at Talk page of the problematic plugin

practically now I have version 17 in "classical SME tradition"

short "How to" tested on SME 8b6 clean install

1. change the repo to have also sme7contribs
2. install smeserver-mediawiki
3. download latest wiki version you'll prefer
(
I have tested for 8,15,16,17 in 2 scenario
scenario 1
start at 1.6 standard upgrade to 1.7 and work without plugin alteration then upgraded to 1.8 and altered the plugin, then to 1.15,16,17
scenario 2
start with 1.6 and direct upgrade to 1.17
)
4. unpack over the installed one (/opt/mediawiki)
5. set ownership root:root for everithing in /opt/mediawiki and root:www for /opt/mediawiki/images
6. temporary change the mediawikiuser rights to database (for 1.7 you-ll need only create and alter structure but to other is more and more complex - I hope is not to dangerous to give all to structure - considering that you'll do it only to upgrade)
7. copy AdminSettings.sample AdminSettings.php and change the user as SME (mediawikiuser) without password
8. run the update from root of mediawiki
9. change back the user rigths to database to basic ones
10. go to /opt/mediawiki/extensions/PwAuthPlugin.php and change it according to the Talk page of the plugin
http://www.mediawiki.org/wiki/Extension_talk:PwAuthPlugin
now everything seems to be ok

do you think this should have a note into our wiki to mediawiki contrib - for sme8 users?

 :shock:
As far as I prefer, i can tell you i will not do so until their's code listed to do your how to ...

Ofcourse I'm BEGINER ... :D