[06:22:55] Hi there, I have 3 private wikis in 3 different languages. Earlier I was using $wgSharedDB for login using the same username on all wikis but now when I'm removing $wgSharedDB I'm getting "There is currently no content on this page." error in almost all namespaces. No history, no contents when editing a page so can someone please tell if this is a [06:22:56] bug? Thank you [06:24:31] I tired rebuildall.php with no help. [06:29:16] When editing a page I'm getting "Version #0 of "Article name" page does not exist." error. [07:26:33] Hi, is it possible to use multiple domains for $wgCentralAuthCookieDomain ? [07:49:38] Guest85: "when I'm removing $wgSharedDB" I am not sure you can do this post-factum [07:49:51] I suspect SQL queries will fail [07:50:09] unless you copied the data from the shared tables over [07:52:15] Remilia thank you for replying. Maybe that could be the reason so I will try to copy shared tables. [07:52:39] Also can you please tell if it's possible to use multiple domains for $wgCentralAuthCookieDomain ? [07:54:08] To save cookies on two different domains. I have meta wiki on a different domain and enwiki on a different domain. So if I'm saving cookies on .example.com it's not logging me to en.example.org [08:05:41] Guest85: I am not an expert but you likely need to use a single domain for cookies, not multiple [08:10:24] Remilia I see, actually I was trying to build central login like Wikipedia. e.g. when a user login to meta.wikimedia.org they are automatically logged in to en.wikipedia.org. [08:12:26] Guest85: https://www.mediawiki.org/wiki/Extension:CentralAuth [08:13:32] Remilia I'm done with all these settings and it's working if I set cookies to just one domain. [08:15:14] but I want my wikis to login on both domains like wikimedia.org and wikipedia.org. My current settings can log me to only one domain that I set for cookies but not for the other domain. [08:19:17] cookies need to be shared for it to work [08:20:19] I think the SUL2 part of the extension page describes something that might help [08:20:50] RhinosF1 is exactly what I'm trying to figure out how to share cookies? [08:21:08] Remilia I'll check that part. [08:21:13] Guest85: set the cookie domain to whatever your wikis share [08:21:28] So if they are all x.example.org [08:21:37] Set it to .example.org [08:22:11] CentralAuth is a fairly complex extension, I suggest reading the guide in full [08:23:20] RhinosF1: judging by what was mentioned just now, the issue is with having multiple domains, like there are mediawiki/wikitech/wikipedia [08:24:02] RhinosF1 I have loginwiki on a different domain and enwiki on a different domain. Like meta.example.com, login.example.com and en.example2.com [08:24:36] * RhinosF1 groans about stupid irc client [08:25:10] Guest85: try look at Wikimedia or Miraheze's setup [08:25:29] It works inconsistently though for me since all the same site nonsense [08:28:01] Well, I guess I should stick to a single domain for all wikis rather than different domains for login and mainwiki. [08:30:56] I host five wikis but never touched this stuff since it seems to be more trouble than it is worth for smaller scale deployments [08:32:04] and if I really needed that stuff I would probably use some external authentication mechanism [08:34:43] It is for small setups [09:42:21] if the answer is CentralAuth, chances are you'll wanna rethink the question ;-) [15:46:29] Hi [15:47:12] Did I set up LocalSettings.php correctly to make a wiki farm? https://gist.github.com/Jst-Tan/c366a13e2252b31d2fc38b8f3d82aec1 [15:55:57] JstTan did you mean to intentionally leak your secrets in that gist? [15:56:08] No? [15:56:31] probably should regenerate them then... [15:56:46] How to generate it [15:58:17] JstTan: does it work? [15:58:37] What does the secret do through [15:58:45] Both wgSecretKey and wgUpgradeKey should be changed as far as I know. [15:59:08] (Disclaimer: I have no experience with setting up a mediawiki installation, so I could be wrong) [15:59:30] I use Softaculous to install it [15:59:38] and I will delete it on the gas now [16:01:25] Ok done. But did I install it correctly? [16:01:43] if it works, then its correct, if it does not work then it is not correct [16:01:48] * Reedy grins [16:02:12] step 1 of making a wiki farm is don't use autoinstallers like softaculous [16:02:19] because they're fundamentally incompatible with farms [16:02:38] you're going to need to get comfortable with ssh and maintenance scripts [16:02:58] No, I just going to install it for first and then will do everything afterward [16:03:18] its auto-update feature will break your farm [16:03:21] I know and I will work on it myself without doing the autoinstaller [16:03:22] Ik [16:04:21] The code could run usually as a wiki but I doesn't know if I install it correctly to make a wiki farm [16:04:49] we don't know either by just looking at a config file, you need to test what you are trying to do [16:04:58] like how? [16:05:29] How to make a wiki farm or a wiki inside the wiki farm with the easiest methods [16:07:08] there's no one true way to set up a farm, as it's very specific to your environment and also specific to how you plan on managing everything. So really the only way to see if what you have works is by actually setting up two wikis and seeing if your farm setup breaks or functions [16:07:34] from a brief glance at your config, yours is going to be more on the "breaks" side [16:08:06] I accident left [16:09:04] (just in case my message gone), how to make a wiki inside my wiki farm in the easiest method [16:09:22] there's no one true way to set up a farm, as it's very specific to your environment and also specific to how you plan on managing everything. So really the only way to see if what you have works is by actually setting up two wikis and seeing if your farm setup breaks or functions [16:09:22] from a brief glance at your config, yours is going to be more on the "breaks" side [16:09:29] there is no "easy" for wiki farms [16:10:00] you can look into wiki creation extensions, or script up install.php [16:10:16] or use automation like puppet or ansible to create new wiki databases and merge in the appropriate settings [16:10:42] if you're planning on making a big farm, I'd start with the automation route to save a lot of headache later [16:10:51] JstTan, just to be clear, are you hoping to set up a singular wiki, or did you want to create a mass collection of multiple wikis? [16:11:15] I wanted to set up a wiki farm (mass collection of multiple wikis) [16:11:27] 👍 [16:11:30] roughly how many wikis are you planning on having in your farm? [16:12:01] I didn't expected how much for now, I just wanted to get things up [16:12:21] are there any wiki creation extension through? [16:12:28] sure [16:12:47] where are they? [16:12:49] usually written for very particular setups, but if you match their setup then it'll work fine-ish usually [16:13:30] are there a link maybe [16:13:59] search box on mediawiki.org [16:14:36] none of those will be as simple as 'copy-paste a line into LocalSettings.php', you will actually need to understand your particlar setup and what the extension is doing and configure it accordingly [16:15:16] hey, guys! So I just found out that rsvg (or the version mediawiki uses) doesn't really support SVG2. The problem is that modern browsers are already dropping support for deprecated SVG1 features. [16:15:17] I'm specifically trying to use here, and rsvg wants me to use `xlink:href` while firefox wants me to use `href`. What should I do? [16:16:13] like this extension? https://www.mediawiki.org/wiki/Extension:CreateWiki [16:18:20] JstTan, well does the extension's description sound like what you need for your setup? [16:18:44] it does look like it [16:20:14] so I needed to create a wiki and see if it work or not? [16:20:19] Riedler: consider just sending the svgs to end users rather than rasterizing them; e.g. https://www.mediawiki.org/wiki/Extension:NativeSvgHandler [16:21:00] otherwise by default MediaWiki will use something (e.g. rsvg) to turn the svg into a jpg/png on the server side, and then serve the static image to the browser [16:21:14] so browser svg support is a bit irrelevant since no svg is being sent to the browser [16:21:16] uhm, well. I'm trying to update a SVG on wikimedia, actually, so that's not really possible here. [16:21:34] ah ok [16:21:37] also is it possible to create a wiki without any extension? [16:21:53] in that case stick with whatever rsvg supports, because it'll turn it into a static image behind-the-scenes before you see it on a page [16:22:44] allright, thanks! I'll keep my ears peeled for when mediawiki updates rsvg (or changes to a better rasterizer) [16:22:45] thanks for the help [16:22:49] JstTan: install.php maintenance script, web installer, directly provisioning tables.sql against your db, ... [16:25:20] there aren't a install.php code through? [16:25:31] and what web installer is needed [16:26:27] There is an install.php [16:33:10] I couldn't the file [16:34:52] it's at maintenance/install.php in mediawiki core [16:36:27] is it at the root folder? [16:36:49] https://github.com/wikimedia/mediawiki/blob/master/maintenance/install.php [16:38:17] ah found it [16:38:57] what is the web installer and provisioning tables.sql