Talk:Debian packages

Thanks
Fantastic work! Let's make sure we get the word out to the world. Added to https://wiki.debian.org/MediaWiki#New_Debian_package for now. Nemo 17:30, 22 September 2016 (UTC)
 * Thanks :) It was on my list to update that page - I've removed all the old information from there and made it a stripped down version of this one. Legoktm (talk) 20:02, 22 September 2016 (UTC)
 * Ok, that works too. If the old package is not even worth mentioning, should you perhaps ask to take over the "official" Debian package? Nemo 20:06, 22 September 2016 (UTC)
 * Er, I already *do* maintain the official package . Debian Jessie users are installing the package from the official Debian repositories, and it's going to be included with the Stretch release. Legoktm (talk) 21:07, 22 September 2016 (UTC)
 * Oh good. From the page I got the impression that the PPA was the only option available to download the package. Nemo 21:22, 22 September 2016 (UTC)

Extensions?
Hi there, I see a comment that extensions are no longer supported. But how can I get them back into working order? I am looking for the math and graphviz extensions. How should I install them / clean up the old files in

/etc/mediawiki-extensions/* ?

Thank you!Florihupf (talk) 23:24, 10 October 2016 (UTC)
 * Hi Florihupf, you should install extensions into the normal MediaWiki extension directory, and add the proper wfLoadExtension(...) calls to your LocalSettings.php file. Legoktm (talk) 05:07, 4 November 2016 (UTC)
 * Ok, it is all good now! Thanks! Florihupf (talk) 19:02, 16 December 2016 (UTC)
 * Sure that placing in  is the proper way to do it with this package? I mean, why so   and  ? --Valerio Bozzolan (talk) 18:24, 4 July 2017 (UTC)
 * Yes. Those are legacy and left over from the old mediawiki-extensions packages. Since people may have referenced them in their LocalSettings.php I didn't remove them yet. Legoktm (talk) 23:53, 11 July 2017 (UTC)

I have now documented this in Filesystem section of the page. Legoktm (talk) 04:10, 17 August 2017 (UTC)

Beyond Debian
At FOSDEM the people behind http://openbuildservice.org/ stressed that they have a lot of computing resources available for people to make packages for other distributions as well. Is it worth trying to get more packages? --Nemo 20:06, 7 February 2017 (UTC)
 * That would be nice if someone else wants to step up, but I don't have time to extend this past Debian right now. The main part that takes up my time isn't the packaging itself, but ensuring everything is properly licensed, making sure new stuff isn't introduced that is problematic for Debian (e.g. ), and then keeping up to date with Debian policy changes. Legoktm (talk) 04:17, 17 August 2017 (UTC)

Potential double negative?
> In the past these packages were severely outdated ...

Maybe this whole subclause should be moved to its own notice box: "This package supercedes all previous packages, which are now dangerously outdated ...". Awesome work packaging, thanks! I'm happy to be trying out on puppetized VPS for a personal project. Adamw (talk) 07:52, 11 July 2017 (UTC)

Presentation at DebConf in Montreal 2017
Hello, I will be presenting about my experiences packaging MediaWiki and working with the Debian community. If you're interested, come check it out :) Legoktm (talk) 18:53, 24 July 2017 (UTC)
 * Video and Slides are available on Commons now :) Legoktm (talk) 04:18, 17 August 2017 (UTC)

Other apache aliases?
Is it okay to edit ? I'm assuming not. I'm attempting to write some docs about how to install multiple wikis (on a VPS) in the simplest way possible. At the moment, I'm thinking it's best to create a  and add everything there. Sound appropriate? Sam Wilson 01:51, 29 July 2017 (UTC)
 * Yes, it's probably OK to edit that file. It's actually not used by anything (it exists just in case someone still uses it from an older package version), the real config file is actually in . On a wiki farm I have running using the package, I have one apache conf file, and then have LocalSettings.php check   to figure out the dbname, and go one from there. Legoktm (talk) 16:38, 7 August 2017 (UTC)

User:Legoktm/Packages
I'm suggesting to add a note that, after installation, for Ubuntu Users, you'd have to follow Manual:Running_MediaWiki_on_Debian_or_Ubuntu to configure MySql before setting up the WIki for the first time. Masssly (talk) 08:49, 14 October 2018 (UTC)

Short URLs
Would  be the correct file to modify to add rewrite rules for Short URLs? -- Bryandamon (talk) 05:54, 15 October 2018 (UTC)
 * It sounds like  is the preferred location although the above location would work as well. -- Bryandamon (talk) 06:32, 24 October 2018 (UTC)

VisualEditor in 1.35... does it work?
Hello!

I've upgraded a Debian GNU/Linux  MediaWiki to   and everything was OK. I knew that VisualEditor was provided out-of-the-box in this version but actually it's not. Does it work in your installations? If yes, can someone share your related configuration? --Valerio Bozzolan (talk) 12:08, 3 December 2020 (UTC)
 * You need to add  to your LocalSettings.php, and then it should work (note that it doesn't work on SQLite yet). What errors/issues are you getting? Legoktm (talk) 21:50, 3 December 2020 (UTC)
 * Uhm. I've a missing  and it's also trying to open a file that I do not found nowhere . You can see this paste and this one. --Valerio Bozzolan (talk) 10:23, 4 December 2020 (UTC)
 * Why is it trying to load extensions out of the  directory? Extensions are supposed to be in  . Did you change $wgExtensionDirectory? And the WebRequest error is a red herring, see T261260. Legoktm (talk) 22:14, 8 December 2020 (UTC)
 * ✅ Uhm. It seems with your question you given me enough inputs to fix my issue. You remembered me that I adopted your package because it allowed me a workflow I love so much: I'm keeping everything on my legacy filesystem position, symlinking core stuff to  and shared extensions to  . In this way the wiki owners are independent by the sysadmin and can change some stuff via FTP, and decide to adopt shared simlinked extensions or just drop the symlink and upload a custom version or additional extensions. This is a lazy but powerful solution but... we forgot to symlink the new VisualEditor extension. For some reasons we were sure only the   file was missing but the whole directory was missing :) Thanks really. --Valerio Bozzolan (talk) 23:52, 8 December 2020 (UTC)
 * Aha! Glad you were able to get it working. Legoktm (talk) 09:29, 10 December 2020 (UTC)

Interest in having skins and extensions packaged?
Mostly as a proof of concept, I've packaged Skin:GreyStuff and Extension:YouTube. These are available as  and   respectively (just in buster-backports for now, Ubuntu PPA to come). Installing the package just drops the files in the right spot, you still need to manually wfLoadExtension/Skin them.

Are people interested in seeing more extensions/skins packaged? If so, which ones? Legoktm (talk) 01:09, 15 December 2020 (UTC)

Running inside Docker
I am looking to run semantic mediawiki inside docker. The existing docker implementations I am finding out of date, so I am thinking a docker file that builds from here is what will work for me. I will post this here in case it is helpful.

The docker file below works greate, except there is a problem with the packages. Going into the resultng container and from /usr/share/mediawiki I run

I get

So composer-plugin-api ^1.0 is required but it has composer-plugin-api[2.1.0]?

Am I doing something wrong? Suggestions?

{| class="wikitable"
 * + Docker file