Koozali.org: home of the SME Server

[Announce] MediaWiki for SME7.x

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: [Announce] MediaWiki for SME7.x
« Reply #15 on: October 12, 2007, 06:22:23 AM »
Quote
- Not the same web address
- Not the same install folder

Yes-but the rpm sets up the those things automatically (doesent it ?) and my question was how to avoid it.

(I have some standard wiki intallations running on another server and there it wasent a problem to set up new names as these were not set by default and by the RPM..)
......

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #16 on: October 12, 2007, 10:50:24 AM »
You can't avoid it... You have to do it manually, so the RPM will do 50% of the work, you'll have to do the next 50% on your own 8-)

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: [Announce] MediaWiki for SME7.x
« Reply #17 on: October 12, 2007, 01:18:10 PM »
Thats also what I thaught so what my question was intended to be: "How do I do it manually ?"

It was mentioned:

- Not the same web address
- Not the same install folder
- Not the same aliases
- Not the same DB

And what does it mean ?

The web adress might be changed by altering the name of the folder in the /opt directory "/opt/mediawiki2", is it like that could this work ?
(This sounds inncorect for me but I don't know the alternative.)

And this will also change the folder ?

And to change alias and change DB how to to that ?

I guess this is a typical "sme server problem" (??) that might be easy for some (?), but not for me.

If I just know some basic principles about it I think I would be able to find out a bit more myself ..

*******
By the way I also tried to install a standard mediawiki 1.6 but this did not work. I were not able to give it some "superuser logon".
(Apeared to be only a question of making a new superuseraccount that could be used for the purpose.)

*******
The contrib version runns nice and without a problem. I would just like it to be at least two installations.
« Last Edit: October 12, 2007, 02:30:10 PM by arne »
......

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #18 on: October 12, 2007, 01:51:07 PM »
There's a simple way: download the SRC RPM and open it with 7z (which can open .rpm files without being able to modify them)
You will find in it all you're looking for: a .tar.gz which contain all files that will be added during the RPM install. Directories /opt and /etc/e-smith/template/etc/httpd/conf/httpd.conf are good start points
You will also find a .spec file. Open it with your favorite text viewer - that's the 'install script'. A lot of stuffs are in it and if you can read a little bash code, then you will quickly understand the whole stuff!

Create a new template - let's say 96Mediawiki2 - and paste the content of the original template (or update the one created by the RPM install)
You can't install it in /opt/Mediawiki because there's already one install running here, so why not installing it to /opt/Mediawiki2 or whatever and don't forget to update paths in the httpd template everytime it's needed.
You just need to change a few other values.
As I told you the Aliases couldn't be the same (look in the httpd template to change both aliases). LocalSettings.php must be updated with new aliases too. Why not choosing mediawiki2 and wiki2 ?
You can use the same MySQL user/password created by the RPM install, But creating a new one is better... Adjust user/password in LocalSettings.php when done.
You must create and import the prepared database in a new database (or at least use different prefix if you want to only have 1 database for both websites)


Offline arne

  • *****
  • 1,116
  • +0/-4
Re: [Announce] MediaWiki for SME7.x
« Reply #19 on: October 12, 2007, 02:27:35 PM »
Thanks a lot !

When I have installed the contrib is it then possible in any way to remove it ?

(Lets say the first one that I installed first.)

Trying to do some thinking self as well ..

If I remove the database, the files in the /opt directory and the template ..

But there is no template fragment in the

/etc/e-smith/templates-custom directory ???

On the other side there is one here:

/etc/e-smith/templates/etc/httpd/conf/httpd.conf/95mediawiki

Could or should this be deleted to remove the mediawiki installation ?


To remove the files the database and the template /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95mediawiki

will this be the way for a adequate removal or deinstallation ?

(Or is it bether ways ?)
......

Offline cool34000

  • *
  • 339
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #20 on: October 12, 2007, 02:39:21 PM »
Just take a look at the .spec file. You will find install and uninstall scripts 8)

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: [Announce] MediaWiki for SME7.x
« Reply #21 on: October 12, 2007, 02:58:16 PM »
Thanks a lot ! Will just be doing some testing .. :)
......

Offline rdtaylor

  • **
  • 26
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #22 on: October 18, 2007, 02:33:32 PM »
Thank you for the contrib!

I have installed it and it is running, however, it seems to be accessible from the external interface (ie. from the internet).

I want the wiki to be only accessible to the LAN hanging off our SME server.

How do I go about adding this restriction?

Thanks

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: [Announce] MediaWiki for SME7.x
« Reply #23 on: October 18, 2007, 10:32:14 PM »
Thank you for the contrib!

I have installed it and it is running, however, it seems to be accessible from the external interface (ie. from the internet).

I want the wiki to be only accessible to the LAN hanging off our SME server.

How do I go about adding this restriction?

Thanks
Modify the template a bit by adding the proper apache directives (more information on the allow keyword can be found in the Apache manual) to allow only local access, it should read something like this:

Code: [Select]
<Directory /opt/wiki>
  ....
  AllowOverride None
  order deny,allow
  deny from all
  Allow from {LocalAccess}
  ...
</Directory>

If you add this to the relevant template fragment the {LocalAccess} should be replaced by all ip numbers defined to be in your local network. Unfortunately I do not have the wiki template fragments at hand to write you a full working template fragment.
« Last Edit: October 18, 2007, 10:36:43 PM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline rdtaylor

  • **
  • 26
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #24 on: October 21, 2007, 11:58:04 PM »
Thanks for the help, but now I have NO access at all.

I continually get a 403 error "The website declined to show this webpage".

This is trying to access the page from the local LAN.

Please help...

Offline berdie

  • *
  • 237
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #25 on: October 22, 2007, 04:15:33 PM »
A new version is available at http://mirror.contribs.org/smeserver/contribs/dberteld/mediawiki/smeserver-mediawiki-1.6.10-5.noarch.rpm

Now with adjusting accessibility as follows:

The default behaviour of Mediawiki is: accessible from LAN + Internet You can easily change this default setting with following commands:

# config setprop mediawiki PublicAccess global
# config setprop mediawiki PublicAccess local

Once done, apply modifications and restart Apache:

# expand-template /etc/httpd/conf/httpd.conf
# service httpd-e-smith restart

Greetings,
Dietmar

Offline rdtaylor

  • **
  • 26
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #26 on: October 23, 2007, 12:32:23 AM »
I just did a 'yum localupdate' of your RPM, and it has deleted my wiki database and re-installed a new empty database...2 days work down the tube...never mind...I have copies of the content in my local cache I guess...

Thanks for your help and the new version...

Offline SoftDux

  • *****
  • 240
  • +0/-0
    • http://www.SoftDux.com
Re: [Announce] MediaWiki for SME7.x
« Reply #27 on: February 19, 2008, 03:42:50 PM »
Sorry for replying to an old thread, but I the rpm doesn't exist on your server anymore, any reason why? Where do we get an updated one?

Offline arne

  • *****
  • 1,116
  • +0/-4
Re: [Announce] MediaWiki for SME7.x
« Reply #28 on: February 19, 2008, 04:34:17 PM »
Not sure if I remember it right, but I wonder if it was not a broblem that the rpm allowed ony one wiki at the server while a "original mediawiki installation" will allow unlimited numbers of wikies.

The only challange is to find the last revision made for php4/mysql4 so it will run with SME 7.3 In my download folder I have a mediawiki rev 1.10.3. Cant't guarantee it, but I guess the reason it is there is bacause I am using it.

Correction: For the one I have on net the release note says rev 1.6.7
......

Offline electroman00

  • *****
  • 491
  • +0/-0
Re: [Announce] MediaWiki for SME7.x
« Reply #29 on: February 19, 2008, 06:18:02 PM »
included in smecontribs

http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smecontribs/i386/RPMS/

yum provides --enablerepo=* smeserver-mediawiki

yum install --disablerepo=* --enablerepo=smecontribs smeserver-mediawiki



« Last Edit: February 21, 2008, 04:55:27 PM by electroman00 »