You are not logged in.
Pages: 1
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
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.
Offline
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
Pages: 1