[00:00:25] hi all. I was wondering if someone could tell me the easiest way to install media wiki to run at the root node of the web server? [00:01:59] tds5016: https://www.mediawiki.org/wiki/Manual:Installation_guide [00:03:24] I don't think that shows me how to run at a different location than /mediawiki [00:04:34] tds5016: https://www.mediawiki.org/wiki/Manual:Wiki_in_site_root_directory [00:05:05] thanks! [00:06:16] next question... what's the easiest way to create sysop users? is there a way to do that from the web ui? [00:08:31] You could use createAndPromote.php. From web ui you could use Special:CreateAccount and then promote, i assume [00:28:35] meh, just using a redirect actually seems to be the right option. [01:00:02] Error sending mail: Unknown error in PHP's mail() function. [01:00:21] any idea what would cause that or how to fix it? I'm pretty sure I just didn't configure something properly. [01:00:33] also, what port would that use? [01:40:43] i notice that abusefilter extension doesnt honor wgDBPrefix [01:44:32] Hi, i found that when i have to return wikitext within my #invoke function. How can i tell mediawiki to get them processed as wikitext instead of putting them directly on page? [08:41:03] hypergrove: where exactly? [08:48:43] Hello all. I have a question I haven't found an answer to with Google but I might use the wrong search terms. I want people to upload files with particular names not just the name of the picture. Is there a parameter I can send to Special:Upload for this or some extension that will do this fo rme? [12:02:14] Hi, I am looking for someone who can make the WikiEditor work with the WikiForum extension for me [12:02:16] I have left messages on the WikiForum extension page and also sent messages to the extension authors, but received no reply [12:04:31] Is someone interested/able to do this for me? [12:06:00] @BradLee, have you looked at using just Flow? [12:09:02] @Person, yes I have thanks. [12:09:03] But I really need a proper forum, whereas Flow strikes me more as just a discussion-type thing [12:13:19] "proper forum", you said it yourself [12:13:23] BradLee_: what does a forum provide that flow doesnt? [12:13:40] so go for proper forum software [12:19:16] well i DID have phpBB several years ago hooked into my old wiki but that was such a PITA [12:19:17] and the old extensions that allowed you to have common logins and stuff are all dead [12:20:11] Without ldap ? Then yes... [12:21:37] Hello all. I have a question I haven't found an answer to with Google but I might use the wrong search terms. I want people to upload files with particular names not just the name of the picture. Is there a parameter I can send to Special:Upload for this or some extension that will do this for me? [12:21:55] Apologies for repeat question but I'm sure that's a common use case [12:22:34] What do you mean by particular names? [12:22:59] @Betacommand: Flow is more of a comments-type tool. I need something with topics, categories, that sort of thing [12:23:01] WikiForums extension DOES this. [12:23:02] The ONLY thing that isn't so great is that it uses the OLD mediawiki editor... which is ugly and NOT very user-friendly [12:23:04] Which is something I am trying to move away from to encourage participation and improve usability [12:23:55] BradLee_: Flow has topics, doesnt necessarily have categories, but thats more of a wiki structure thing [12:24:09] Hell it uses the topic namespace [12:24:24] @Reedy - say someone has IMG1234.jpg. I want them to upload it but call it something more useful, like User:Username.jpg [12:24:44] Person: WMF use a TitleBlacklist extension to prevent generic titles like that [12:24:53] Person: the title blacklist can prevent some titles [12:25:19] I've tried setting it up with Semantic Forms but I can't seem to get it to upload to the actual file page. [12:25:22] Hmm. [12:26:22] Thanks. I've got some very predictable page names though, I'd rather autoassign a name than prevent some types. I was hoping that was an option using some sort of parameter [12:28:13] Person: I think the uploadwizard can do some of that [12:29:27] Person: there's also [[MediaWiki:Filename-prefix-blacklist]], a core feature for blacklisting certain prefixes for file uploads (done via [[Special:Upload]], anyway; not sure whether it's automagically applied to uploads done by extensions) [12:29:35] @Betacommand: Flow is just like a talk page... albeit a bit more fancy and organised... but it doesn't fit my requirements/criteria [12:30:05] BradLee_: I dont think you actually know how flow works then. [12:32:11] Rather than fudge around with it to somewhat resemble a forum, I would rather just have an ACTUAL mw forum customised to do the few extra little things I would like it to do [12:32:40] Surely making a wiki behave as a forum is fuding it? [12:32:42] BradLee_: there is no such thing [12:32:43] *fudging [12:32:45] actual MW forum *extension [12:33:03] BradLee_: that extension is probably outdated and not supported [12:33:05] BradLee_: oh yeah, I got your mail, haven't had a chance to reply, but tl,dr: you'll be in for a nice surprise, I think :) [12:33:30] Most of the tricky stuff about forums is laying it out in such a way that people can easily access what they want. That would definitely be harder with MW/Flow but it might be possible [12:33:46] urgh... I have a wiki for wiki stuff [12:33:48] the forum is a change to encourage DISCUSSION and PARTICIPATION [12:33:49] they go hand-in-hand [12:34:19] Person: actually I just did that, its fairly easy to setup [12:34:32] @ashley: I sent you and email? [12:34:50] BradLee_: ya, about WikiForum & WikiEditor [12:35:21] Beta, I'd be interested in having a look if you're willing to share. I currently run Oxwall as a social system and I'm about to set up a semantic mediawiki for information, I'd love to see if I could cut it down to one thing [12:35:31] oh wait... are you Jack Phoenix? [12:35:31] Person: its primarily about planning ahead and planning the forum/discussion growth [12:35:34] especially since I know basically nothing about Linux so every upgrade hurts my soul [12:35:56] aye, that would be me [12:36:05] Person: thats exactly what I did. Im taking a forum, and adding a wiki [12:36:13] Person: as long as you don't run "rm -rf /" with root perms, you're fine :P [12:36:47] @ashley: oh... sorry mate... i didn't recognise you -blush- [12:37:29] no worries :) [12:37:41] Person: define how you want the wiki to work, plan for the "talk" namespaces to use flow, use semantic forms, and have several "common" areas for topics to be posted [12:37:53] yeah, I <3 Semantic Forms [12:37:58] !hss [12:38:05] think I saw Yaron leave just now actually so he won't spot my love for his extension heh [12:38:08] ...wait, where's the channel bot? >.> [12:38:15] Let's take this discussion private then [12:38:16] saving flooding the boards ;) [12:38:18] Person: thats the KISS process [12:38:45] though I tried to use Semantic Forms to name file uploads, it did not end well [12:42:09] Person: it should be doable, Ill look into it when I get a chance [12:42:13] hi there! Back again people. Having a problem, tried solving it and I just can't seem to find my answer anywhere. Getting a error 403 with images and they wont display in my Wiki. I know its the .htaccess file that is giving me grief. Can't find anywhere telling me what it should say. [12:42:55] @Betacommand: I just want to clarify... I'm not knocking Flow... it just doesn't suit the workflow of what I am trying to achieve [12:42:56] Wrong tool for the job [12:42:58] Kind regards. [12:43:28] BradLee_: Like I said, its not the tool, its the user [12:46:28] @Betacommand: Yeah well some users can also be tools :/ [12:47:01] BradLee_: go check your inbox, you have mail ;) [12:47:35] @ashley: thanks :) [12:48:17] you're welcome :) [13:12:44] I've tried to include a link to MediaWiki:Sidebar in the Sidebar itself and it's caused no end of hassle. [13:23:08] Also has anyone tried to use UserPageEditProtection lately? I've installed it but it seems to be including the whole PHP file at the start of every page so it looks like the Phabricator page [13:24:36] @Person: ** mediawiki:sidebar|mediawiki sidebar <-- will do it [13:26:21] BradLee - thanks [13:26:33] no worries ;) [13:26:44] Also it seems UserPageEditProtection had to be manually created. My mistake [15:23:22] Hi! I want to let users configure a user script in their personal *.js (where the configuration isn't saved to the API). Is there a preference between mw.config.set(...) and mw.user.options.set(...) for that? [15:25:11] Pathoschild: Why not saved? [15:26:06] Maybe a cookie or localStorage? Not sure what you're trying to do, though. [15:27:50] https://www.mediawiki.org/wiki/ResourceLoader/Modules#jquery.jStorage [15:32:07] I have a script that users can configure right before it's loaded. Something like this: [15:32:07] mw.user.options.set('userjs-templatescript', { regexEditor: false }); mw.loader.load(...); [15:32:07] I think persisting the config (whether to cookies, localstorage, or the API) would be confusing, since removing the line afterwards would have no effect. It's really meant to set configuration only for the current context (previously they'd set a variable before calling the script). [15:34:30] Both work (since I'm just adding a value to the map), but I don't want to use them inappropriately. :) [15:35:26] so you want to just store a global variable during the execution of the script... yes, that's fine. I think mw.config.set(...) should be preferred [15:41:15] Thanks. Are there any conventions for custom mw.config settings (like prefixing the key with "userjs-")? [15:48:09] Pathoschild: I don't think so. But that's a good idea ("userjs-"). [18:02:55] Any experienced Semantic MediaWiki users here? [18:14:42] Person: you might have better luck at their dedicated irc channel , i think SMW has one [18:14:43] !semantic [18:14:43] Semantic MediaWiki is MediaWiki extension that lets you store and query data within the wiki's pages. It has a dedicated IRC channel at #semantic-mediawiki. [18:22:57] Hi! Is there an interface for user scripts that want to manipulate VisualEditor content (search & replace, append, etc)? [18:24:46] awesome, thanks MatmaRex [18:26:06] Pathoschild: sort of. https://www.mediawiki.org/wiki/VisualEditor/Gadgets [18:26:51] Thanks. :) [18:56:48] Pathoschild: there's also an ongoing wikitech-l thread about that [18:59:09] Thanks, I'll keep an eye on it. [21:10:43] why is the hotcat does not working in template and user namespaces? [21:12:32] any help? [22:44:16] I have mediawiki setup on a computer I use a server, when attempting to connect from my desktop computer all I see is the data, the no css formatting. Is there something I need to do? [22:47:06] kingVaughan: Did you make any modifications to mediawiki? [22:47:48] Not that I know of, I loaded extensions but just ones suggested in the install wiki [22:48:15] Try opening the developer console and see if there are any javascript errors [22:49:43] I guess im unfamilar with what u mean? [22:50:55] Press F12 and go to "Console" and see if there a ton of red text [22:52:24] theres nothing there [22:54:08] my fault, you meant on my desktop [22:54:22] yes, in your browser while on your wiki [22:54:34] failed to load, connection refused [22:54:50] http://localhost/mediawiki/load.php?debug=false&lang=en&modules=mediawiki.l…face%7Cmediawiki.ui.button%7Cskins.vector.styles&only=styles&skin=vector&* Failed to load resource: net::ERR_CONNECTION_REFUSED [22:54:50] http://localhost/mediawiki/load.php?debug=false&lang=en&modules=startup&only=scripts&skin=vector&* Failed to load resource: net::ERR_CONNECTION_REFUSED [22:55:04] Which means something is wrong with your server, I think [22:55:35] hmm, maybe ill have to try a fresh install. Havent done much with it yet. [22:56:28] kingVaughan: Try clicking n the links and seing what happens [22:57:14] I can go everywhere fine [22:57:19] even see the login button [22:57:27] or well login link [22:57:28] I mean the blue links in the console [22:57:32] ah [22:58:09] {"mediawiki.l\u2026face":"missing"} [22:58:10] is one [22:58:59] so you don't get a giant wall of code? [22:59:06] oh i did [22:59:55] that was just the beginning part [23:00:04] and thne the 2nd link is just 1 huge wall of text [23:00:26] How did you install mediawiki? [23:01:12] https://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu [23:01:14] followed that [23:04:09] btw [23:04:19] what is in your LocalConfig ? [23:04:27] the variables like [23:04:34] wgScriptPath [23:04:41] wgScript [23:04:42] listen to this guy ^ [23:04:48] wgLoadScript [23:05:12] $wgScriptPath = "/mediawiki"; [23:05:12] $wgScriptExtension = ".php"; [23:05:37] ...I only had something like that while trying to upgrade to 1.25.*, so... [23:06:20] ? just installed 2 weeks ago [23:06:27] havent used mediawiki before [23:07:05] could you pastebin your localsettings? [23:07:21] k [23:07:31] btw [23:07:39] do you check your server logs ? [23:07:59] I mean... you probably use apache, so apache access and error logs. [23:08:28] they may have some information about what's happening [23:08:47] http://pastebin.com/FxvZXcRG [23:10:42] haven't really used apahce outside of mediawikia, I'll see if I can figure out getting the error logs [23:11:13] . /var/log/apache/ [23:11:28] awesome [23:12:09] i have 4 error logs apparently [23:13:11] [Sun Aug 23 07:56:57.799002 2015] [mpm_prefork:notice] [pid 1660] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.11 configured -- resuming normal operations [23:13:11] [Sun Aug 23 07:56:57.799038 2015] [core:notice] [pid 1660] AH00094: Command line: '/usr/sbin/apache2' [23:13:11] [Sun Aug 23 20:30:45.812805 2015] [:error] [pid 16345] [client 192.168.1.5:54470] script '/var/www/html/mediawiki.index.php' not found or unable to stat [23:14:07] i have /var/www/html/mediawiki/index.php but not mediawiki.index.php [23:14:48] could you define the following ? [23:14:50] $wgScript = "$wgScriptPath/index.php"; [23:14:50] $wgRedirectScript = "$wgScriptPath/redirect.php"; [23:14:50] $wgThumbnailScriptPath = "{$wgScriptPath}/thumb.php"; [23:14:51] $wgLoadScript = "$wgScriptPath/load.php"; [23:15:14] ehh... let no need for the Thumbnail one. [23:17:04] as in throw that in my localsettings.php at the bottom? [23:17:24] if you want to have them at the bottom, sure [23:17:35] but not before $wgScriptPath [23:18:58] brb [23:21:08] Am I wanting to restart mediawiki at this point? [23:22:48] dunno [23:22:51] never hurts [23:22:59] apache2ctl restart [23:24:14] AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message [23:24:24] nvm [23:24:48] still getting just data, no css styling [23:26:02] GEOFBOT, if I'm not wrong. MediaWiki compresses the scriopts when it's first loaded, right ? [23:26:19] I think so [23:26:25] king, what are your permissions on the mediawiki folder ? [23:26:46] also [23:26:50] root owns, others can access [23:27:01] do you have addblock activated ? [23:27:06] or something like that ? [23:27:07] yep [23:27:36] do a 'chown wwwrun:www -R' on the mediawiki folder [23:27:36] or [23:27:45] whatever user is used by apache [23:30:09] wait I want to chown the www folder? [23:30:16] or the mediawiki folder [23:30:32] if mw is in the www [23:30:37] the do the www [23:31:39] also, is adblock or soemthing like that active ? if yes, deactivate it for a moment [23:32:31] chown wwwrun:www -R [23:32:34] not sure what im forgetting [23:32:45] isn't it just Chown [file] -R [23:33:05] dude, first of all [23:33:16] what is apache using ? [23:33:30] wwwrun ? or www-data ? [23:33:41] -R is recursive [23:33:59] chown wwwrun:www -R /var/www [23:34:30] will make everything under /var/www have wwwrun as user and www as group [23:34:51] read the man pages if you are not sure what you are typing on the cli [23:38:31] www-data owns my www folder and adblock is off. still same results [23:38:53] then chown www-data:www-data [23:38:59] hmm... [23:44:00] I'm tired, so I will go to sleep [23:44:07] but in your place I would do the following [23:44:23] Look at the apache logs while you load you page [23:44:32] and look for any possible errors [23:44:47] alright, thank you for the assistance [23:44:50] have a good night [23:44:52] check the configuration and see if some variable is pointing the wrong way [23:45:06] also, look at your apachec vhost configuration [23:45:17] that thing can also be the source of the problem [23:45:37] but as you can click the link and see a wall of text, it shouldn't be a problem [23:45:45] oh, btw [23:46:06] is the console throwing some kind of text that resembles [23:46:30] "The content isn't defined as ccs file, but a normal file " [23:46:34] or something like that ? [23:47:39] nope [23:47:57] just those two links [23:48:15] and it says Failed to load resource: net::ERR_CONNECTION_REFUSED [23:48:42] net::ERR_CONNECTION_REFUSED [23:48:58] means that your browser is blocking the access to that content [23:49:11] in most cases [23:49:40] as you can click the link and it leads you to the file [23:49:46] tried IE which I never use/ dont have adblocck same result [23:50:25] but, while you were installing MW [23:50:32] the style and everything else was ok [23:50:35] right ? [23:51:03] yeah I'm not actually running it on a server its on a computer that just sits but actually has ubuntu desktop on it [23:51:10] so I can access the wiki on there and it looks perfect [23:51:21] ,,, [23:51:25] right now I just vnc in and access the wiki but its a pain [23:51:35] ugh.... [23:51:36] ... [23:51:40] dude [23:51:44] vnc --> VPN? [23:51:45] you set "localhost" as yoru server name [23:51:53] ^ [23:51:53] im not stupid [23:51:53] rofl [23:51:54] When you access the wiki it is looking for css on itself [23:52:05] itself being your windows pc... [23:52:20] im navigating to 192.168.1.7?/mediawiki/index.php [23:52:20] $wgServer = "http://localhost"; [23:52:23] change it to [23:52:25] without ? [23:52:39] $wgServer = "//192.168.1.7"; [23:52:51] * Lord-Simon wants to punch something [23:53:25] doesn't localhost translate into 192.168.1.7 if im on that pc? [23:53:34] no... [23:53:40] "localhost" always means the machine you are using [23:53:43] dude [23:53:44] do a [23:53:48] cat /etc/hosts [23:54:02] he is on IE, so its windows [23:54:03] then tell me what localhost has [23:54:20] I'm on 2 computers right now so yeah [23:54:35] \windows\system32\drivers\etc\hosts [23:54:57] this is the computer that isn't hosting mediawiki [23:55:06] dude [23:55:15] Localhost on your wiki hosting computer > your wiki hosting computer [23:55:21] Localhost on your windows pc > your windows pc [23:55:30] i know... [23:55:30] _Local_ host [23:55:33] So.... [23:55:39] I am on windows, in chrome [23:55:47] If you see your console says it can't open the files ON LOCALHOST [23:55:53] which means it is looking on your WINDOWS PC [23:56:03] which means that your settings are screwed up [23:56:19] well there [23:56:24] now i understand you [23:56:59] Almost a hour spent on... nooo... *cries* [23:57:08] tell me about it >.> [23:57:47] all of my hosts file in windows seems to be normal [23:57:53] # localhost name resolution is handled within DNS itself. [23:57:53] # 127.0.0.1 localhost [23:57:53] # ::1 localhost [23:57:57] ... [23:57:59] that's not important anymore... [23:58:00] DUDE [23:58:08] JUST DO WHAT WE SAY [23:58:11] do the localsettings change that Lord-Simon provided above regarding $wgServer [23:58:19] GET THE FUCKING IP ADDRESS OF THE SERVER [23:58:41] Lord-Simon: Don't shout like that, please. [23:58:43] AND REPLACE localhost in $wgServer = "http://localhost"; with that ip you doung [23:58:45] If you're frustrated, try /clear. [23:59:01] I'll just go to sleep for now. [23:59:07] c ya [23:59:09] i apologize guys [23:59:10] thanks