You are not logged in.

#1 2022-12-25 23:26:19

mrpaul
Member
Registered: 2022-03-15
Posts: 9

Wiki article about MediaWiki

I used the wiki article about MediaWiki to set up a wiki on my server.
Since I'am not very familiar with linux, I did all the recomended settings. At the end, the wiki works now.

When I was done with it, I realized that using the wildcard mediawiki in all the instructions and settings is not the best idea.
When I followed the instructions, I always thought thaz using mediawiki in the path names was related to the mediawiki package and its code itself. Later I realized that this is not the case.
I use lighttpd as web server, so I set up lighttpd as described in the article:

/etc/lighttpd/lighttpd.conf

alias.url += ("/mediawiki" => "/usr/share/webapps/mediawiki/")
url.rewrite-once += (
                "^/mediawiki/wiki/upload/(.+)" => "/mediawiki/wiki/upload/$1",
                "^/mediawiki/wiki/$" => "/mediawiki/index.php",
                "^/mediawiki/wiki/([^?]*)(?:\?(.*))?" => "/mediawiki/index.php?title=$1&$2"
)

However, this leads to the wiki URL <my_server>/mediawiki/index.php.
So, if I want to reach my wiki from <my_server>/my_wiki I have to configure lighttpd.conf like this

alias.url += ("/my_wiki" => "/usr/share/webapps/mediawiki/")
url.rewrite-once += (
                "^/my_wiki/wiki/upload/(.+)" => "/my_wiki/wiki/upload/$1",
                "^/my_wiki/wiki/$" => "/my_wiki/index.php",
                "^/my_wiki/wiki/([^?]*)(?:\?(.*))?" => "/my_wiki/index.php?title=$1&$2"
)

Right?

And then the next question is: What, if I want to set up multiple wikis? Each wiki has it's own database, ok. But what, if I want to use different extensions? So as far as I understood, I have to create one LocalSettings.php file per wiki. But how should the web server distinguish between these files, if they are all stored into /usr/share/webapps/mediawiki?
So in my opinion, it would be better to create the paths with the names /usr/share/webapps/my_wiki, /usr/share/webapps/my_second_wiki and so on.
Is this correct?
If so, then it might be useful to revise the wiki article and replace all occurences of mediawiki by my_wiki if they refer to my_wiki and not to the mediawiki package itself.
And perhaps a note on how to set up multiple wikis would be helpful.

Offline

#2 2022-12-25 23:35:28

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,252

Re: Wiki article about MediaWiki

The forum is not the appropriate place to discuss wiki page changes -- suggest your changes on the Discussion page for the MediaWiki section: https://wiki.archlinux.org/title/Talk:MediaWiki.


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#3 2022-12-26 00:03:36

mrpaul
Member
Registered: 2022-03-15
Posts: 9

Re: Wiki article about MediaWiki

2ManyDogs wrote:

The forum is not the appropriate place to discuss wiki page changes -- suggest your changes on the Discussion page for the MediaWiki section: https://wiki.archlinux.org/title/Talk:MediaWiki.

I wasn't sure if I understood correctly how to set up a wiki with MediaWiki. So before I start a discussion on the wiki page itself, I wanted to ask here if I understood the MediaWiki article correctly.
But maybe this is not the right subforum and this questions should be moved to another subforum?

Last edited by mrpaul (2022-12-26 00:06:14)

Offline

Board footer

Powered by FluxBB