[04:28:28] Winston_Sung[m]: did you end up asking in Village Pump on zh? [04:28:40] for the translation of widget [08:33:57] what extension is best if i want to create a 2nd version of my mediaWin in another language and handle both at a farm? extension:Interwiki or extension:MediaWikiFarm? [10:26:19] so...i tried copying the folder that cointains my working mediawiki installation into a subfolder and access index.php from there (an empty database is correctly linked in the LocalSettings.php). The site doesnt seem to be working though. What am I missing? [10:47:44] Mirghon: what do you mean "doesn't seem to be working"? what is happening? what isn't? what should happen? (also note that [[mw:Extension:Interwiki]] basically has nothing to do with wiki farms and the MediaWikiFarm ext. isn't well-maintained AFAIK; the whole topic of "how to set up a wiki farm" is...convoluted, and the documentation on MW.org is woefully outdated, as always) [10:48:14] Mirghon: If you created an empty database, you must run the installer (delete/rename LocalSetting first) [10:58:36] the installer seems to be stuck on the "Welcome to MediaWiki!" screen [11:01:04] (the one that pos up after i selected the language, before you set up the DB connection [16:51:31] !bash Pchelolo: We should throw away the entire extension. So please remove anything that doesn't work. [16:51:31] Amir1: Stored quip at https://bash.toolforge.org/quip/AA_odn0Ba_6PSCT9i2_F [17:00:32] is there a way to rename my admin user? [17:03:45] Reedy: can we please get https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Nuke/+/742247 a C+2 and also a backport to REL1_35? [17:55:28] i think i got it, at least it seems logical. the logged in user cant use the rename extension on themselves [18:08:55] the wiki is really a great piece of work [18:09:13] since more than 10 years? [19:24:08] I have a mediawiki server, installed from apt on a Debian server (running on DigitalOcean) [19:24:20] I am struggling to set up short urls. [19:24:41] I believe I have exhausted all the options detailed on the shorturls guide. [19:25:15] To be honest, I'm not super familiar with the ins-and-outs of apache, so the guides explanations I don't really understand. [19:25:39] https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Short_URL/Apache [19:26:28] So first recommendation is to edit ".htaccess" - I don't know what this file is [19:26:50] Or where it would be kept in the directory structure, but I followed the guide and placed the file in random places. [19:45:27] jfaxdora: I believe the .htaccess file should be place in the apache root directory (like /var/www/html, whatever is specified in /etc/apache2/apache2.conf [19:59:13] Hm, hasn't helped (with the two rewrite rules in it). I presently have LocalSettings.php configured wgScriptPath and wgArticlePath such that when browsing my wiki, it is attempting to reach the short urls, but it is 404ing. [19:59:58] Another guide I attempted to follow now was this: https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Debian_or_Ubuntu#Pretty_URLs [20:00:04] "To use /wiki/* instead of /wiki/index.php/* on Debian, follow the recommended short URL guide using '/mediawiki' as the script path instead of '/w' and placing the rewrites in /etc/apache2/conf-enabled/mediawiki.conf. " [20:00:21] I added those rewrite rules to the end of mediawiki.conf, still nothing. [20:03:11] I am restarting apache of course. [20:15:53] jfaxdora: I don't have an answer for you but I can commiserate as I set up a mediawiki instance last week and still haven't figured out how to get the /index.php/ out of the url [20:18:00] Bad times. [20:19:34] jfaxdora: .htaccess would be placed in the website root, and will only take effect if your main apache conf is AllowOverride All (or more specific AllowOverride to enable rewrite rules) [20:19:55] doing it in conf should work as well, so let's focus on what you did in mediawiki.conf [20:20:35] jfaxdora: can you share your conf via a pastebin like https://dpaste.de ? [20:21:57] How could I make a sidebar look different using .less? [20:22:49] same way you would using regular css [20:23:06] LESS is CSS? [20:23:25] less is a superset of css and is compiled down to css by ResourceLoader [20:23:50] the main thing it gives you is the ability to "nest" styles to avoid having to re-type long chains [20:24:34] How do you style a footer using CSS? Would it be md-ui.components.footer.less? [20:24:44] well LESS. [20:24:51] are you writing a custom skin? If so, play around with it and see how things react [20:25:04] This is the mediawiki.conf [20:25:16] As you see I put rewrite rule frantically in multiple places [20:25:44] jfaxdora: can you give a link to the pastebin where you put the config? We don't magically see it here :) [20:25:52] https://dpaste.org/g5UV [20:25:54] O forgot to past [20:26:16] Not making my own skin, per se. I'm just trying to fix a skin task. [20:26:39] jfaxdora: well remove the global rewriterules at the very bottom [20:27:02] Okay. [20:28:36] what does /var/lib/mediawiki look like? [20:28:57] are the wiki files directly in there? are they in a subdirectory? if a subdirectory, what is that subdirectory named? [20:29:36] oh [20:29:40] also remove that Alias on line 1 [20:30:53] Okay [20:30:58] And var lib mediawiki [20:31:04] That exists, for sure [20:31:12] Doing a full ls it's a bunch of symlinks mostly [20:31:20] To files in /etc/mediawiki [20:31:49] Is this where an htaccess goes... [20:32:38] can you dump `ls /var/lib/mediawiki/` into a pastebin somewhere? [20:33:22] it sounds like you're using a packaged version of mw which I'm not super experienced with layout-wise, so knowing how the files are structured is very helpful [20:33:29] (without knowing that I can't help you fix the rewrites) [20:34:08] Ah, Linux I see. [20:34:38] Here we are https://dpaste.org/RTQB [20:35:32] ok [20:36:27] No hidden dotfiles [20:37:10] Did you do ls -a? [20:37:15] not relevant [20:37:24] I just wanted to know if the wiki files were directly there or in a subdir [20:37:29] the above paste answered that :) [20:37:31] Ah, alright [20:37:56] ok [20:38:37] one last question: jfaxdora: is /var/lib/mediawiki itself a symlink to somewhere else (e.g. /var/www/html/mediawiki)? [20:39:27] or wait, misreading the guide. Should be the other way around I think. /var/www/html/mediawiki should be a symlink to /var/lib/mediawiki [20:39:47] or if you don't want /mediawiki in your URLs and want to follow normal best practice, make /var/www/html/w a symlink to /var/lib/mediawiki [20:39:49] It is a real directory. [20:40:46] https://www.mediawiki.org/wiki/User:Legoktm/Packages#Filesystem for reference. I have a TODO on documenting how to enable short/pretty URLs for the package. [20:42:31] >I maintain packages of MediaWiki for Debian and Ubuntu [20:42:35] Waw, celebrity encounter [20:43:05] jfaxdora: if your symlink is at /var/www/html/mediawiki, then copy/paste all of those RewriteRules into /var/www/html/.htaccess -- if it's /var/www/html/w then put the RewriteRules in the same place but change %{DOCUMENT_ROOT}/mediawiki/index.php to %{DOCUMENT_ROOT}/w/index.php [20:43:21] and remove all of the rewrites (and the alias on line 1) from mediawiki.conf [20:44:08] if you would rather have them in mediawiki.conf then they should be inside of a (newly-created) block [20:44:46] on the LocalSettings.php side ensure you have $wgArticlePath = '/wiki/$1'; [20:48:19] Okay, doing this... treading carefully. [21:00:35] Still not working [21:02:01] what does work vs doesn't work. can you load your wiki at all just without pretty urls? [21:05:23] Yes, I can browse my wiki fine - thought presently, trying to work through all this, my LocalSettings.php has the wgArticlePath configured such that it is attempting to reach the short urls when I click an article but it 404s. [21:05:40] Otherwise, if I revert that, everything is fine. [21:06:44] Might be worth mentioning I got SSL set up with letsencrypt, so I have configured this install in successful ways. [21:08:02] did you restart apache since making all of those changes? [21:08:32] Yes [21:10:16] I might leave this to another day.. [21:10:37] I'm mostly out of ideas of where to look myself without actually going into the server and poking around [21:11:42] only thing I can think of is that /var/www/html is AllowOverride None [21:11:55] which you'd discover in the main site conf rather than mediawiki.conf [21:12:29] (if that is the case, change it to AllowOverride All) [21:15:14] Oh [21:15:32] I wonder: is there a simple "hello world" RewriteRule I can use to see if those are taking effect at all? [21:15:35] I just went hunting for AllowOverrides in a bunch of files and found some that were set to None. [21:15:40] Changed them to all. [21:15:44] Now it's working... [21:15:52] Something like "RewriteRule testurl /" to see if it redirect [21:16:08] the only ones that would matter would be the ones controlling /var/www/html; others may want to legitimately be set to None for security reasons [21:16:39] (if you are the only user on the server those security reasons are pretty moot, however) [21:17:52] Hmm, well two configs seem dodgy: Directory / and Directory /usr/share [21:18:07] I'd keep / as None [21:18:23] that one is there by default to say "no you aren't allowed to traverse up to the root" [21:19:51] Setting back / to None, everything still in tact, so that's good. [21:20:21] This file bu the way is /etc/apache2/apache2.conf [21:21:04] yep [21:21:31] A debian comment in the file suggests /usr/share is fine [21:21:51] (To keep outside the security model) [21:21:54] Thank you [21:22:19] I plan to make my wiki public some time, with some more work... [21:22:28] best of luck! [21:26:54] jfaxdora: from where did you take your rewriting rule credentials? [21:27:34] .htaccess in /var/www/html [21:27:51] from which docs i mean [21:28:40] Oh right, it was from this https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Short_URL/Apache#.htaccess_source_code [21:29:18] did you see the comment that mentions that the page needs work? [21:30:01] https://www.mediawiki.org/wiki/Topic:Wkl8a45bfljf034y [21:30:27] if we get more people to help we can do this [21:30:28] Yeah... well, that template doesn't tell anything that isn't evident to me :P [21:30:45] yes :) wanna help? [21:31:10] The page is a mess, if you were to ask my opinion, I kept my mouth zipped cause I know the wiki spirit to take initiative. [21:32:41] If I found opportunity to reproduce all these steps, on Debian, from a tarball, etc, I might rewrite.