Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: berdie on May 24, 2007, 02:28:23 PM

Title: [Announce] MediaWiki for SME7.x
Post by: berdie on May 24, 2007, 02:28:23 PM
to the community,
for the ease of installation a rpm package of MediaWiki for the SME Server 7.x is available at http://wiki.contribs.org/Mediawiki.
This package installs the popular wiki MediaWiki (like Wikipedia) into /opt.
You can start it with your browser with the URL http://MYSERVER/mediawiki.

Rgds.,
Dietmar
Title: Re: [Announce] MediaWiki for SME7.x
Post by: skydivers on May 24, 2007, 02:36:16 PM
Quote from: "berdie"
to the community,
for the ease of installation a rpm package of MediaWiki for the SME Server 7.x is available at http://wiki.contribs.org/Mediawiki.
This package installs the popular wiki MediaWiki (like Wikipedia) into /opt.
You can start it with your browser with the URL http://MYSERVER/mediawiki.

Rgds.,
Dietmar


Thanx Berdie, you are developping some nice contribs lately. Keep up the good work.

Tried the install and it works  :D
Title: Re: [Announce] MediaWiki for SME7.x
Post by: berdie on September 07, 2007, 09:13:38 AM
I have released a new version of my mediawiki contrib.
News:
- Support of short URL's
- The URL is now http://MYSERVER/wiki

It's available at http://wiki.contribs.org/Mediawiki (http://wiki.contribs.org/Mediawiki)

Dietmar
Title: Re: [Announce] MediaWiki for SME7.x
Post by: dlj on October 08, 2007, 12:00:24 PM
Hi,
I am having a problem with this contrib (probably my fault, but I am getting confused)
What I have done:
Fresh install of SME 7.2 on my test system ( just an old PII 500MHz, with 128Meg RAM)
Installed the contrib - which all installed fine, upto the part where I point my browser at the wiki. http://192.168.0.113/wiki

I get a web page "Main Page - From Wiki" but it doesn't look quite right, it is just an old style web page, no frames, no navigation tabs, no images.
I was expecting a page like Wikipedia but with the SME logo - am I wrong here?
Quote
Main Page
From Wiki
Jump to: navigation, search

MediaWiki has been successfully installed.

Consult the User's Guide for information on using the wiki software.
[edit]
Getting started

    * Configuration settings list
    * MediaWiki FAQ
    * MediaWiki release mailing list

For using Mediawiki start your browser with the URL http://servername/mediawiki and logon with the user admin + password admin.

For security-reasons, change your admin-password after your first login !
[edit]
There is a link to "Log in / create Account" but this gives another page "Index.php - from Wiki" with the same sort of layout as the previous page. However it does not present any login fields.

I have tried this a couple of times with the same results.
I have tried going back to SME 7.0, and that gives the same results.
I have tried to install mediawiki directly ( ie not as a contrib) and I get as far as the configuration form and then I have some problems with MySql accounts and passwords ( This i can fix - but I don't want to :?)

Any suggestions on how to get the contrib working on my system would be gratefully received.
David
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cactus on October 08, 2007, 06:11:19 PM
The page you quoted tells you to go to /mediawiki instead of /wiki. Did you test that as well?
Title: Re: [Announce] MediaWiki for SME7.x
Post by: dlj on October 08, 2007, 07:24:21 PM
Hi,

Yes I tried both http://MYSERVER/wiki and http://MYSERVER/mediawiki
http://MYSERVER/mediawiki - 404 page not found
http://MYSERVER/wiki - page as described in previous post

The first release of the contrib called for mediawiki, but the second release changed the url: see quote below

Quote
I have released a new version of my mediawiki contrib.
News:
- Support of short URL's
- The URL is now http://MYSERVER/wiki

I have been playing with the non-contrib version of mediawiki, and have resolved my Mysql issue ( this was only the unknown password for wikiuser). This installation works as expected, and has frames, and images, and all the other nice stuff :). I have hacked it about so that it uses the Mysql database that was created by the contrib. This indicates that the issue I am having with the contrib is not within the Mysql configuration/use.
This also indicates that my antique hardware is upto the job.

Regards,
David
Title: Re: [Announce] MediaWiki for SME7.x
Post by: berdie on October 08, 2007, 07:28:55 PM
Hi David,

sorry for the not-working URL's. It was correct when testing this.
So I'm working on a solution to use short URL's again.

Greetings,
Dietmar
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cactus on October 08, 2007, 07:31:13 PM
Hi David,

sorry for the not-working URL's. It was correct when testing this.
So I'm working on a solution to use short URL's again.

Greetings,
Dietmar
Dietmar, perhaphs it is a good idea to get you contribs listed in the bugtracker. This will make it easier for people to report issues, problems and suggestions. And on top of that we have everything in a cental location and archived properly.
Title: Re: [Announce] MediaWiki for SME7.x
Post by: berdie on October 09, 2007, 07:12:04 AM
Cactus,

yes, you're right. I have made that already but cannot find my bugs.  :-(
Maybe they are cancelled. Should I open new one's?

Greetings,
Dietmar
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cactus on October 09, 2007, 09:13:51 AM
Cactus,

yes, you're right. I have made that already but cannot find my bugs.  :-(
Maybe they are cancelled. Should I open new one's?

Greetings,
Dietmar
I can't find bugs for smeserver-mediawiki also, probably no bugs listed at the moment against this contrib. I guess the bugzilla maintainer has pointed the default assignee to be you, so if someone reports a bug against your contrib you should receive an e-mail.
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cool34000 on October 10, 2007, 12:37:15 PM
Hi all,

I just found and fixed the bug. I've send modified files to Berdie so he can modify his RPM.
For those you can't wait, here's the quick fix:

1) Edit /opt/mediawiki/LocalSettings.php
Modify the line
Code: [Select]
$wgScriptPath     = "/wiki";by this one
Code: [Select]
$wgScriptPath     = "/mediawiki";
2) Edit /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95mediawiki
Modify the first 2 lines
Code: [Select]
Alias /wiki   /opt/mediawiki/index.php
Alias /index.php  /opt/mediawiki/index.php
by this two lines
Code: [Select]
Alias /mediawiki /opt/mediawiki
Alias /wiki      /opt/mediawiki/index.php

3) Expand modifications and restart Apache
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf && service httpd-e-smith restart


Images are back and URL is readable :-P
Title: Re: [Announce] MediaWiki for SME7.x
Post by: dlj on October 10, 2007, 10:48:37 PM
Hi all
Followed cool43000s instructions and they have resolved my issues :).

Now I can get down to the serious business of adding some content.

Many thanks.
David
Title: Re: [Announce] MediaWiki for SME7.x
Post by: berdie on October 11, 2007, 07:27:45 AM
Hi,

a new version is available at http://mirror.contribs.org/smeserver/contribs/dberteld/mediawiki/smeserver-mediawiki-1.6.10-4.noarch.rpm (http://mirror.contribs.org/smeserver/contribs/dberteld/mediawiki/smeserver-mediawiki-1.6.10-4.noarch.rpm)
Big thanks to Sylvain Gomez (Cool34000) who helped me to to improve this contrib with short URL's and automatic language detection.

Greetings,
Dietmar
Title: Re: [Announce] MediaWiki for SME7.x
Post by: arne on October 12, 2007, 04:31:36 AM
Hello and thanks a lot !

I installed and everything looks fine.

One question: Is it possible to install more then one wiki on one server ?

Could the web directory where it is installed be changed from /wiki to something else ?

(I am working at two different "books" that I host at the moment at a web hotel. As I dont feel sure about their backup and security system I would like to transfere copies or future originals to my home server.)

By the way do you know an easy way to make a backup of datas ?

Best reg Arne.
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cool34000 on October 12, 2007, 04:59:39 AM
Hello and thanks a lot !

I installed and everything looks fine.

One question: Is it possible to install more then one wiki on one server ?

Could the web directory where it is installed be changed from /wiki to something else ?

(I am working at two different "books" that I host at the moment at a web hotel. As I dont feel sure about their backup and security system I would like to transfere copies or future originals to my home server.)

By the way do you know an easy way to make a backup of datas ?

Best reg Arne.
Yes it's possible to install multiples wiki, but there are multiples conditions :
- Not the same web address
- Not the same install folder
- Not the same aliases
- Not the same DB
In short, it's a new install!
If you can manage that then yes it could work

For your backups, look on the wiki, there's a backup contribs section (http://wiki.contribs.org/Category:Backup)
Take a look also here (http://sme.firewall-services.com/spip.php?rubrique2)
Title: Re: [Announce] MediaWiki for SME7.x
Post by: arne 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..)
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cool34000 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-)
Title: Re: [Announce] MediaWiki for SME7.x
Post by: arne 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.
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cool34000 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)

Title: Re: [Announce] MediaWiki for SME7.x
Post by: arne 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 ?)
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cool34000 on October 12, 2007, 02:39:21 PM
Just take a look at the .spec file. You will find install and uninstall scripts 8)
Title: Re: [Announce] MediaWiki for SME7.x
Post by: arne on October 12, 2007, 02:58:16 PM
Thanks a lot ! Will just be doing some testing .. :)
Title: Re: [Announce] MediaWiki for SME7.x
Post by: rdtaylor 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
Title: Re: [Announce] MediaWiki for SME7.x
Post by: cactus 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 (http://httpd.apache.org/docs/2.0/mod/mod_access.html#allow) keyword can be found in the Apache manual (http://httpd.apache.org/docs/2.0/)) 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.
Title: Re: [Announce] MediaWiki for SME7.x
Post by: rdtaylor 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...
Title: Re: [Announce] MediaWiki for SME7.x
Post by: berdie 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 (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
Title: Re: [Announce] MediaWiki for SME7.x
Post by: rdtaylor 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...
Title: Re: [Announce] MediaWiki for SME7.x
Post by: SoftDux 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?
Title: Re: [Announce] MediaWiki for SME7.x
Post by: arne 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
Title: Re: [Announce] MediaWiki for SME7.x
Post by: electroman00 on February 19, 2008, 06:18:02 PM
included in smecontribs

http://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7/smecontribs/i386/RPMS/ (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