[00:57:24] k [13:00:50] morning [13:05:45] hi [14:50:33] Hello I have a new wiki install on the same server as my old wiki (in a subfolder) [14:50:54] I want to export the pages frm the old wiki and move them to the new subfolder [14:51:10] then remove the old wiki completely and move the subdirectory into the place of the old wiki [14:51:35] is there a guide somewhere for this? Not sure how to do the export/import of pages outside of a full db copy/upload in mysql [15:00:44] when i try to run Special:Import it eventually just times out [15:06:53] ive changed the php upload size limit restrictions in localsettings and php ini however still cannot upload [15:10:47] doing it in smaller batches seems to work, however files do not obviously transfer over [15:10:57] should i just copy the uploads manually? [15:16:02] kevindank: it should import/export the File: namespace pages, but not the actual files. there's a maintenance script that you can probably use to import the files afterwards [15:16:17] okay [15:16:56] !maintenance [15:16:56] https://www.mediawiki.org/wiki/Manual:Maintenance_scripts [15:17:13] there's rebuildImages.php and importImages.php. i'm not entirely sure what the difference is. [15:18:40] MamaRex: is there an export images script as well? [15:18:43] rebuildImages updates the metadata info on existing images, importImages is the one you want to mass-upload images from files already on the server [15:18:59] MatmaRex: sorry [15:19:47] Skizzerz: so should i copy/paste the files from current directory into new directory then run the importimages script? [15:19:49] (note you'll want to import the file description pages for them *first* from Special:Import before running the importImages script) [15:19:58] ? [15:19:58] kevindank: there isn't, afaik. you can just copy them from the images/ directory on the server [15:20:11] Thanks [15:20:12] oh [15:20:20] they're already formatted how mw wants them? [15:20:26] then just copy the images directory over [15:20:35] you don't need to mess with importImages.php in that case [15:20:44] and then additionally, when ready to move the site to the root directory, will i need to run any scripts to update permalinks or do i just make changes in localsettings.php? [15:21:10] Theres like a 1 month gap from when i copied over the database onto the new site and then current data on production site... [15:21:27] but really [15:21:39] I'm questioning if there's a better way of going about this [15:21:42] i want to make sure nothing gets missed, and in lieu of just importing the whole db again and losing any changes i made during dev i'd like to do an import/export and then copy/paste images after which im moving the site [15:21:48] are you only exporting certain pages or something? [15:22:01] e.g. what's precluding you just from simply copying/moving the old wiki to the new place [15:23:01] correct only exporting certain pages from the old wiki as most of them are already on the new site [15:23:12] ok [15:23:14] the new site uses a more recent version of mw and smw [15:23:23] then Special:Export all of those pages on old wiki, Special:Import them on new wiki [15:23:27] and ive modified it, so to avoid any data issues i just ran the xml export [15:23:57] however after importing them files arent showing as they should, they show as the link rather then the actual image [15:23:58] (you could've just updated the old wiki but I guess content differs by this point; I'd recommend in-place upgrades for the future as they're far easier) [15:24:12] then cp the old images directory to the new images directory [15:24:25] that should merge them and make all the old files available [15:24:37] Skizzers: that's what i plan to do. The issue was the current site was way outdated and on a legacy version of MW [15:24:47] i attempted to do an update however ran into issues and quickly decided to do a staging site [15:24:57] how legacy? ;) [15:25:03] So new site will be updated in place [15:25:08] 1.14 [15:25:09] (just curious) [15:25:12] hmm [15:25:19] that should support a direct upgrade to current [15:25:42] I preffered this method reguardless [15:26:05] only issue you might run into for it is php version stuff [15:26:20] however now, i want to ensure i dont lose any data on either old or new site, but move new site in place of old site [15:27:02] running on MAMP on Windows Server 2012, old wiki is located in c:/xamp/htdocs/ new site is located in c:/xamp/htdocs/2016 [15:27:07] point your webserver at the new directory, however you accomplish that with whatever server you're running [15:27:35] simply using the server name through web browser to access it [15:27:45] you'll have a httpd.conf file somewhere, you need to edit it (using a text editor) [15:27:49] http://server-name is old site and new site is http://server-name/2016 [15:28:12] ok [15:28:14] there will be a DocumentRoot directive in there you need to update, and maybe a couple of RewriteRules or Aliases too depending on if you set up short urls [15:28:28] (and maybe also a Directory; just look at what's using the old path) [15:28:56] after you finish editing it, you need to restart apache [15:29:36] okay great [15:29:39] i will give it a shot [15:29:50] Do you know of a guide with step by step instructions? [15:30:32] no, but the edits are fairly straightforward (replace C:\xamp\htdocs\ with C:\xamp [15:30:45] * C:\xamp\htdocs\2016 wherever you find it) [15:31:14] and again, make sure to use a text editor, e.g. *NOT* word [15:31:55] right, i use programmers notepad [17:31:28] where can I find checksums for the mediawiki source tarballs? They're not in release notes ans searching for md5 or sha1 produces a thicket [17:39:21] .j #php [17:42:22] Pennth: Look at the announcement emails [17:42:32] https://lists.wikimedia.org/pipermail/mediawiki-announce/2015-December/000187.html [17:42:48] https://releases.wikimedia.org/mediawiki/1.25/mediawiki-1.25.5.gz.sig [17:43:02] Well, isn't that interesting [17:43:04] That sig is broken [17:43:14] ostriches: ^^ [17:43:30] It seems the non core, non i18n sigs are missing [17:43:45] The requested URL /mediawiki/1.26/mediawiki-1.26.2.gz.sig was not found on this server. lolz [17:44:11] Reedy: The script didn't spit out all the sigs :\ [17:44:16] It was dumbbbbb [17:44:16] ah, they forgot '.tar' in the filenames [17:44:23] :( [17:44:27] I need to add some symlinks to the correct filenames. [17:44:32] for 1.26 [17:45:39] Bugs aside, thanks for the tip, Reedy! [18:00:48] Hey is there a way to add block elements to my Main page? [18:07:42] AAlex: sure,
...
... with CSS magic. Use MediaWiki:common.css to stay sane. [18:07:46] Or use tables [18:09:31] Cool. Thank you [18:12:17] AAlex: MediaWiki allows most structural HTML tags in wikitext. No or though. Or