[00:37:03] Hi! I'm havinf a difficult time getting Mediawiki to run the installer web page on Mac Sierra. I keep getting "Cannot access the database: No such file or directory (localhost)" [00:38:32] When I try with an IP address I get "Cannot access the database: Host 'XXX.XXX.XXX.X' is not allowed to connect to this MySQL server (XXX.XXX.XXX.X) [00:41:23] I've tried a google search but nothing I have found fixes the issue. [00:42:31] https://dev.mysql.com/doc/refman/5.7/en/grant.html [00:42:50] Lyrad: have you tried 127.0.0.1 as ip [00:43:30] I have not. Back in a sec [00:43:33] often localhost will use a socket, and your real (non loopback) doesnt have grant rights by default [00:44:45] That got me to the next page!!! Awesome!! [01:58:17] what reason would I get this error after running updateSearchIndex.php [01:58:21] *** Couldn't write to the searchUpdate.ffxiv_wiki-ffxiv_mw_.pos! [02:03:48] c: Usually a file permission issue? https://github.com/wikimedia/mediawiki/blob/master/maintenance/updateSearchIndex.php#L90 [02:03:57] But those two errors aren't really distinguishable. [02:04:09] It can happen if file !== false is NOT true. [02:04:16] Or it can happen if the directory is not writeable. [02:04:33] isn't the search index in the database and not the filesystem tho [02:04:52] > * POSFILE is a file to load timestamps from and save them to, searchUpdate.WIKI_ID.pos by default [02:04:58] Yes, kind of. [02:05:07] The database itself still lives on the filesystem. [02:05:12] Typically, anyway. [02:05:29] where is that file located [02:05:31] Anyway, you could modify one of the error messages. [02:05:38] To figure out which branch you're hitting. [02:05:46] if ( is_writable( dirname( realpath( $posFile ) ) ) ) { [02:06:16] You could put an echo above that line. [02:06:31] That's like... echo dirname( realpath( $posFile ) ); I guess. [02:06:42] To figure out which directory it's trying to write to. [02:09:33] Or you could maybe do like `updateSearchIndex.php -p /dev/null` or similar. [02:09:41] But that's probably not a great idea? Idk. [02:09:51] Depends on the size of the wiki, I guess. [02:17:30] Esther: the error message was the second one and not the first, but the echo didn't seem to work though [09:15:26] I’m trying to reconfigure Math extension on my old wiki [09:15:39] any mathoid public server avalaible? [09:15:49] or need to install one on my system? [09:19:12] this isnt enough to config https://www.mediawiki.org/wiki/Extension:Math/advancedSettings#Installing_texvc [13:46:16] I am working on this api https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=cat&formatversion=2&prop=pageimages&piprop=thumbnail&format=json [13:46:24] I want also to get an image source url using the above request [15:30:47] Technical Advice IRC meeting starting in 30 minutes in channel #wikimedia-tech, hosts: @addshore & @Christoph_Jauera_(WMDE) - all questions welcome, more infos: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting [17:27:35] oh ugh, https://www.mediawiki.org/wiki/MediaWiki current versions looks wrong [17:48:07] Hi! Thanks to Bawolff I was able to get MediaWiki to run on localhost but I Want to be able to access it from any computer on the LAN. When I try I get "This page isn't working. XXX.XXX.XXX.X sent an invalid response" Are there grant rights I need to add or some config file I need to alter? [17:48:57] No, the grant rights are just for the db, which should be fine running on localhost (Only php talks to the db. Other computers on the lan talk to php and don't talk to the DB) [17:49:12] Invalid response is a weird error message [17:49:27] Is this using https or plain http? [17:49:41] What is $wgServer set to in your LocalSettings.php [17:50:41] Plain http [17:51:16] $wgServer = "http://localhost"; [17:51:43] Change $wgServer to be "http://XXX.XXX.XXX.XXX" where that is your IP address [17:53:26] You are awesome! That did the trick. Sorry for such basic questions I am very new to this. [17:54:11] That's ok [17:54:39] That's still a very odd error message for that error. Unless maybe your web browser things redirects to localhost are invalid for some security reason [17:55:23] Both of the issues you had are really common issues. We should probably make the installer better so people encounter them less [18:01:50] There process was a little complicated but understandable given all the possible permutations [18:17:10] Thanks again, bawolff. Have a nice day! [19:58:54] Hello! Does anyone know the severity of the issues patched by the 1.27.4 release? https://lists.wikimedia.org/pipermail/mediawiki-announce/2017-November/000216.html The CVEs I found didn't mention the severity of the issues. Thanks! :) [20:11:24] bokchoy: depends on which your install is vulnerable to, but at least one is of high severity [20:11:29] you should patch ASAP [20:11:59] Skizzerz: thanks! [20:12:39] bokchoy: specifically this one: https://nvd.nist.gov/vuln/detail/CVE-2017-9841 [20:12:45] impacts some (not all) 1.27 installs [20:12:52] CVSS score of 9.8 [20:14:42] thanks again :) [20:15:24] hello to all , I have clone the mediawiki from git, how do i install? [20:16:14] afernandez_: first, pull required vendor files via `composer update --no-dev` on the command line on the mediawiki directory [20:16:24] It created a core dir, I dont see install scritpt there, and INSTALLATION, says decompress the media wiki installation on your server. [20:16:29] then go to the /mwsetup directory in your web browser [20:16:59] (might've typoed the name a bit, but it's something like that) [20:17:07] thank you [20:17:10] will do [20:17:19] im at core dir now i will pull [20:18:28] afernandez@kanotixbox:~/core$ git-clone composer update --no-dev [20:18:30] bash: git-clone: command not found [20:18:42] composer is not a git repo [20:18:44] it's a command [20:18:59] you may need to install it first [20:19:18] this what i did before: afernandez@kanotixbox:~/core$ git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git [20:19:25] if you have no idea how to do that, I recommend installing from tarball instead of git [20:19:38] installing from git requires additional levels of system administration knowledge [20:19:54] Documentation on hot to install from git? so i can read? [20:20:02] !git [20:20:02] MediaWiki development is using Git, a distributed source control manager, with Gerrit for code review. Details: https://www.mediawiki.org/wiki/Gerrit Instructions for using it: https://www.mediawiki.org/wiki/Gerrit/Tutorial To get an account: https://www.mediawiki.org/wiki/Developer_access [20:20:07] no [20:20:10] that's not the right link [20:20:44] https://www.mediawiki.org/wiki/Download_from_Git [20:20:52] afernandez_: if you're dead-set on installing from git, read that [20:21:11] again, it's more user-friendly to use the tarballs [20:21:16] Thanks. [20:21:28] will read if I cant I will install from tar. [20:21:30] (less steps, and it comes bundled with common extensions) [20:21:33] Thank you all [20:22:16] Skizzerz: that is the tutorial i did to clone [20:22:24] cloning is step 1 [20:22:32] and im at the core dir, that does not say how to install [20:22:43] I already clone [20:22:46] now you need to download the composer dependencies, clone any extensions, clone any skins, and then browse to the install script in your web browser [20:22:51] and i am in the core dir. [20:23:26] how do i download all that im using debian. [20:23:27] with the tarball it's download and extract tarball, and then go to install script in web browser, so a bit easier :) [20:23:32] it's in the guide [20:23:36] ok [20:23:46] will do the tar. [20:23:57] Thank you for your time Skizzerz [20:26:24] this is what i have in core http://paste.debian.net/995946/ [20:26:37] I dont see the composer script. [20:27:20] !composer [20:27:20] Composer is a dependency manager for PHP. MediaWiki uses it to include certain external libraries. See https://www.mediawiki.org/wiki/Composer for more details. For information on how to install MediaWiki dependencies with composer see https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries [20:27:46] composer is a separate program; it is not shipped with mediawiki [20:28:20] (sorry for terse replies, I'm multitasking a lot right now) [20:29:49] ok installed composer now the command is running on core dir [20:29:55] lets see [20:30:21] Ok the composer command is done lets see now [20:38:28] ok composer command did this http://paste.debian.net/995949/ now where do i go? [20:43:04] afernandez_: Run the mediawii installer [20:43:12] OK [20:43:16] go to the mw-config directory in your web browser [20:43:51] There should be on-scree instructions that are fairly self-explanatory [20:43:55] localhost/mediawiki/mw-config? [20:44:41] Once i have all from git on the core dir do I have to mv anything somewhere else? [20:47:39] I think something is wrong , when i do http://myip i get the apache initial page [21:07:51] http://localhost/mediawiki not found [21:08:13] I have all the contents of mediawiki in /var/www/html [21:08:43] http://paste.debian.net/995955/ [21:08:58] afernandez_: Maybe php is not installed [21:09:12] what happens if you go to http://localhost/index.php [21:09:32] :) [21:09:49] If its not that, then probably something is weird with your virtual host configuration [21:10:26] Media wiki 1.29.2 LocalSetting.php not found. please set up the wiki first. [21:10:45] setting up [21:10:51] ... [21:10:56] will update. [21:11:33] The environment has been checked. You can install MediaWiki. [21:21:29] MediaWiki has been installed. :0 Thank you all. [21:21:59] Woo [21:22:19] afernandez_: Don't hesitate to ask if you run into any problems with your wiki [21:22:36] Thank you very nice community here. [22:14:49] how do I add categories under the main page on the left column???? [22:16:24] afernandez_: what do you mean by "categories"? [22:16:44] Categories in MediaWiki don't show up in the left sidebar. [22:17:22] you want to edit the sidebar [22:17:30] or maybe, to change your skin to show categories there [22:19:40] sorry may be i used the wrong term [22:20:21] I want to put on the left column something like this red hat debian ubuntu under the title main page. [22:21:27] afernandez_: see here: https://www.mediawiki.org/wiki/Manual:Interface/Sidebar [22:21:28] and then under those "how to install abc" [22:21:39] Thank you Yaron [23:12:38] on php7.1 is php-apcu stil la thing? [23:12:44] yes [23:13:03] i see it mentioned in the debian setup docs, was curious if thats something that mediawiki still suggests [23:13:35] yes [23:13:51] hmm, its not in the sury packages for debian stretch [23:14:51] seems it needs to be manually compiled atm, so i'll skip that for now [23:15:20] if you're using stretch, is there a reason you're not using the standard OS packages? [23:15:34] its not there either [23:15:49] only for php5 [23:16:13] huh? [23:16:14] https://packages.debian.org/stretch/php-apcu [23:16:28] that's for PHP 7 [23:28:27] hard to tell i guess [23:28:34] should be named like the rest, shitty debian devs [23:32:23] Cronus: careful, the shitty debian devs are in this channel ;) [23:32:41] well i mean lets be honest, its hard to tell what that is and everything else is php7.1 :p [23:33:19] so rip opcache, hey apcu ? [23:33:39] Anyways, isn't apcu built into php7 [23:33:43] legoktm is this php7.1 ? [23:33:49] or is that hhvm [23:33:51] doesnt look like it, dunno [23:34:05] apc opcode stuff is built into php7 [23:34:11] Cronus: no, it's PHP 7.0 [23:34:13] apcu is the apc userland cache [23:34:35] so its no bueno for me on 7.1 [23:34:38] Cronus: also if you want to call them "shitty debian devs", you can go elsewhere. [23:34:50] im sorry if i triggered you [23:35:17] I suggest you read https://www.mediawiki.org/wiki/Code_of_Conduct#Unacceptable_behavior [23:35:41] yea yea i'll afk now [23:35:54] i cant stand uptight folk, it wasnt a serious thing i said [23:36:33] Trying to google if hhvm has apcu as something always on leads me to this scariness of a bug https://github.com/facebook/hhvm/issues/6784 [23:37:19] Debian stretch comes with PHP 7 [23:37:47] the packages are named php-whatever so you don't have to constantly update names of packages whenever the version changes [23:38:14] I thought php-foo was stuff written in php or something? [23:38:25] it's both :/ [23:38:30] yea it seems it doesnt exist for php 7.1 [23:38:41] you can tell that https://packages.debian.org/stretch/php-apcu is for php 7.0 because of the dep: phpapi-20151012 section [23:38:51] stretch doesn't have php 7.1. buster likely will [23:39:03] why do you want to use 7.1 anyways? [23:39:19] then there is your reason why i dont use debian packages then ^ [23:39:28] i dont "want" to, i "am" using it [23:40:23] Didn't you just say you were using deb.sury.org? [23:40:24] Well the drawback of someone doing all the compiling and integration work for you is that sometimes they don't have the exact version you want to use [23:40:28] yep [23:40:44] The Debian packages...from the official Debian maintainer. [23:40:57] ok :) [23:40:58] anyways [23:41:01] what are you on about? [23:41:01] apcu is optional [23:41:05] i meant debian repos * [23:41:06] :p [23:41:10] but it's recommended to use for performance [23:41:16] i know this [23:41:30] you got anything helpful to say that the docs havent told me? :P [23:41:47] i know this is shocking, but im a user that read the docs "before" i came here :) [23:41:56] i've heard my breed is rare... [23:42:12] Cronus: Well you know, ask a stupid question get a stupid answer [23:42:26] bawolff what is the meaning of life [23:43:20] Your asking questions about how to install mediawiki, and don't want to use debian packages for the optional dependencies, the natural thing to say is don't use the dependency if you can't use the debian package and don't want to compile it yourself or find an unofficial package [23:43:34] i disagree [23:43:46] he more so was talking to me about why im using sury or php7.1 than talking about apcu :p [23:44:41] also you seemed to have missed the part where there seems to be no apcu for 7.1 yet, so all good [23:44:54] Well again your complaining that php7.1 is hard to use. Natural question is well then why are you doing it [23:45:14] your making assumptions now [23:45:39] php7.1 is quite easy to use? alot easier than ever, there just isnt the optional dependency in php7.1 [23:46:02] im gonna go do something else, if you'd like to have a dick size comparision, feel free to continue with yourself, im not interested [23:46:34] php 7.1 vs php7.0 makes basically no difference to mediawiki [23:51:03] I meant to say "good bye" but I guess it didn't like the space [23:51:20] lol