{"id":11897,"date":"2008-01-05T20:03:47","date_gmt":"2008-01-06T03:03:47","guid":{"rendered":"http:\/\/hill-kleerup.org\/blog\/wp\/2008\/01\/05\/installing-movable-type-4.html"},"modified":"2014-11-05T10:48:35","modified_gmt":"2014-11-05T17:48:35","slug":"installing_movable_type_4","status":"publish","type":"post","link":"https:\/\/hill-kleerup.org\/blog\/2008\/01\/05\/installing_movable_type_4.html","title":{"rendered":"Installing Movable Type 4"},"content":{"rendered":"<div class=\"img-shadow-right\"><img decoding=\"async\" title=\"Movable Type 4\" style=\"WIDTH: 120px; HEIGHT: 60px\" alt=\"\" src=\"https:\/\/www.hill-kleerup.org\/blog\/images\/mt4.png\" \/><\/div>\n<p>I&#8217;m going to use this post to keep track of my MT4 installation.&nbsp;<\/p>\n<p>The good folks at <a href=\"http:\/\/www.hostingmatters.com\" target=\"_blank\">Hosting Matters<\/a> (who are probably sick and tired of my site sucking system resources on Brizo) were good enough to make a copy of my database for me, so I could test installation.&nbsp; Seki also recommended that, given my &#8220;highly-upgraded&#8221; installation (since v2.something), I do a clean install.&nbsp; Good advice (though it would cause a few complications later).&nbsp;<\/p>\n<p>The initial goal again, here, is to update the test directory just to assure myself that it will work.&nbsp; \ud83d\ude42&nbsp; I have to be careful in rebuilding so that I don&#8217;t overwrite the actual production directories.&nbsp; Once I am sure it&#8217;s cool, I&#8217;ll load everything into a new directory, make it production, and eventually delete both the test directory and (after I&#8217;m sure everything is out of there I need) the old MT directory.<\/p>\n<p>Installation:<\/p>\n<ol>\n<li> I&#8217;m downloading <a href=\"http:\/\/www.movabletype.com\/download\/personal-use.html\" target=\"_blank\">MT4 Personal Edition<\/a>&nbsp;(per <a href=\"https:\/\/www.hill-kleerup.org\/blog\/2007\/12\/27\/so_the_movable_type_quest.html\" target=\"_blank\">these decisions<\/a>).&nbsp; Currently at v4.01.&nbsp; Unzip to my blog directory.&nbsp; Nets about 14Mb.&nbsp;Using the <a href=\"http:\/\/www.movabletype.org\/documentation\/installation\/\" target=\"_blank\">installation instructions<\/a> and (mostly) the <a href=\"http:\/\/www.movabletype.org\/documentation\/upgrade\/\" target=\"_blank\">upgrade instructions<\/a> from MT.&nbsp;<\/li>\n<li> Loading the files up to a directory I&#8217;ll call MT4test.&nbsp; This took about half an hour.<\/li>\n<li> Making my own backup of my production MT MySQL db.<\/li>\n<li> Fired up the mt.cgi.&nbsp; It confirmed the Perl modules were there, then asked about database configuration (huzzah).&nbsp; Specified MySQL, the user and password.&nbsp; Hrm.&nbsp; Ah, needed to add the user to the SQL database (which had no users specified).&nbsp; Duh.&nbsp; Worked like a champ.<\/li>\n<li> Asked about mail config.&nbsp; Set it to sendmail, and the sample e-mail came through just fine.<\/li>\n<li> It then determined it was time to upgrade the database to the new schema.&nbsp; When I said yes (crossing my fingers), it went on its merry way.&nbsp; And &#8230; huzzah!<\/li>\n<\/ol>\n<p>Fire it up and configure:<\/p>\n<ol>\n<li> Got into the control panel &#8212; er, dashboard &#8212; and changed where the cloned version of DDtB should be posted.&nbsp;<\/li>\n<li> Time to install plug-ins.<\/li>\n<li> Installed <a href=\"http:\/\/blog.thought-mesh.net\/solidwallofcode\/mt_projects\/autoban.php\" target=\"_blank\">AutoBan<\/a> plug-in.&nbsp; No problem.<\/li>\n<li> Installed <a href=\"http:\/\/mt-hacks.com\/fastsearch.html\" target=\"_blank\">FastSearch<\/a> (upgraded to 2.1 for MT4).&nbsp; The download doesn&#8217;t create a clean FastSearch directory, and the install instruction imply (incorrectly) that a db schema update doesn&#8217;t happen automatically.&nbsp; Aside from that, though, it&#8217;s golden.<\/li>\n<li> Test rebuild.&nbsp;<\/li>\n<li> (Parenthetical comment &#8212; the new dashboard looks very keen, but the layout is &#8230; unfamiliar.&nbsp; And it feels like things are multiple clicks\/screens\/menus further away than they used to be.&nbsp; And lots of stuff hidden in different locations, different menus along the side, across the top, in the footer, in the header .. Confusing.)<\/li>\n<li> Rebuild failed, because of plug-ins not yet plugged-in.&nbsp; Well, we can deal with that.<\/li>\n<li> Upgrade and install <a href=\"http:\/\/everitz.com\/mt\/notifier\/index.php\" target=\"_blank\">MT-Notifier<\/a> (4.0.2) &#8212; which triggers an upgrade sequence once installed.<\/li>\n<li> Reinstalled <a href=\"http:\/\/www.staggernation.com\/mtplugins\/TinyTuring\/\" target=\"_blank\">TinyTuring<\/a> (same version, no sweat).<\/li>\n<li> Reinstalled the <a href=\"http:\/\/www.masahiko.info\/shuriken\/archives\/000106.html\" target=\"_blank\">mt-pingedentry.pl<\/a> into the plugins dir.<\/li>\n<li> Let&#8217;s try that rebuild again!&nbsp; And &#8230; success!<\/li>\n<\/ol>\n<p>So, how do things look?<\/p>\n<ol>\n<li> Index page looks great.<\/li>\n<li> Test an individual archive page &#8212; dynamic &#8212; which then then blows up with a Smarty error (around the TinyTuring module &#8212; &#8220;Smarty error: [in evaluated template line 106]: syntax error: unrecognized tag &#8216;mttinyturing&#8217; (Smarty_Compiler.class.php, line 580)&#8221;).&nbsp;<\/li>\n<li> I wonder if I still need the SmartyPants.pl stuff I had before.&nbsp; Nope, that didn&#8217;t work.<\/li>\n<li> Contacted the TinyTuring plug-in writer.&nbsp; Immediate response and suggestions about how some new plug-in structure for dynamic publishing may be causing the problem.&nbsp; Try them, but they don&#8217;t work.<\/li>\n<li> So I can wait to hear back from the plug-in (TinyTuring) writer; or I can remove TinyTuring from my blog and crank up other anti-comment-spam functionality while it gets fixed (which means, at the least, doing a bunch of editing of the blog entries).<\/li>\n<li> Holding &#8230;<\/li>\n<li> A few days later &#8212; it seems the PHP files for the TinyTuring module need to be in all lower case for MT4 (props to writer for figuring it out).&nbsp; Change it and &#8230; all is right with the world.&nbsp; (Well, there looks to be a FastSearch problem, similar to with TinyTuring, but that&#8217;s not a showstopper &#8212; I&#8217;ll fix it in production).<\/li>\n<\/ol>\n<p>Okay &#8230; so that&#8217;s that!&nbsp; Now wait for an opportune opportunity, like Saturday, to <a href=\"https:\/\/www.hill-kleerup.org\/blog\/2008\/01\/05\/once_more_with_feeling.html\" target=\"_blank\">do this all for real <\/a>&nbsp;&#8230;<\/p>\n<ol>\n<li> Backup the main MT database (just in case).<\/li>\n<li> I&#8217;d made a copy of the install files in the MT4 directory, too, so no need to reload.<\/li>\n<li> Change the CGI files to 755.<\/li>\n<li> Fire up mt.cgi &#8230; answer the responses (as above) to tie to and convert the database.<\/li>\n<li> The database upgrade got hung up on the Entries.&nbsp; I reloaded and &#8230; it finished up fairly quickly, throwing no errors, and the erro count looks correct.&nbsp; Woot!<\/li>\n<\/ol>\n<p>Install the plugins (see above for links)!<\/p>\n<ol>\n<li> Go to each site for the directions.<\/li>\n<li> AutoBan<\/li>\n<li> FastSearch&nbsp;&nbsp; (This plug-in requires a database upgrade, which is automatic whenever you invoke anything in mt.cgi) (The install instructions for this are unforgivably vague.&nbsp; You want to not only pull the FastSearch.pl over to the plugins directory, but also create a FastSearch directory under Plugins&nbsp;and pull the php and tmpl folders over into that)<\/li>\n<li> MT-Notifier (also triggered an automatic upgrade)<\/li>\n<li> TinyTuring (with case adjustments)<\/li>\n<li> mt-pingedentry.pl<\/li>\n<\/ol>\n<p>And time for the testing in production:<\/p>\n<ol>\n<li> Rename the comment and trackback scripts (mutter-mutter-spammers-mutter) &#8230; Interestingly, the mt-config.cgi file now only contains &#8220;non-standard&#8221; fields.<\/li>\n<li> Test out on each of my blogs.&nbsp; For each of the below, do a full rebuild; add a post (&#8220;now upgraded&#8221;); add a comment (&#8220;and comments work&#8221;); make sure the pages look correct.<\/li>\n<li> Doing Write (start small)<\/li>\n<li> Boulder Dude (ooooh &#8230; live (CSSed) previews!) (Let BD know about it.&nbsp; (Possibly prematurely, but I think I fixed the problems that cropped up before he actually went in and started using it.))<\/li>\n<li> Dave Does the Blog (dynamic publishing is my friend).&nbsp; Errors &#8212; aha!&nbsp; My templates are so old and crufty, they are ridden with individual calls to <em>\/blog\/mt\/<\/em> stuff, rather than using the tags to insert the blog address.&nbsp; Do some template searches and corrections to change to <em>\/blog\/mt4\/<\/em>.&nbsp; The <em>rememberme java header<\/em> function calls \/blog\/mt\/mt.js.&nbsp; But that file doesn&#8217;t seem to exist any more in MT4.&nbsp; Hrm.&nbsp; Comment it out?&nbsp; Seems to still work. But the entry archives still&nbsp;are not working &#8212; dig around &#8212; hey, <a href=\"http:\/\/mt-hacks.com\/20071214-dynamic-publishing-bug-in-mt4.html\" target=\"_blank\">the most useful piece of MT upgrade advice <em>evah!<\/em><\/a>&nbsp; So, for each of these (including the ones above?) need to (a) rename mtview.php in the blog root, then (b) re-save the publishing preferences.&nbsp; It&#8217;s whacky!&nbsp; But <a href=\"https:\/\/www.hill-kleerup.org\/blog\/2008\/01\/05\/mt401_is_alive.html\" target=\"_blank\">it now works<\/a>.<\/li>\n<li> Margie&#8217;s Kitchen<\/li>\n<li> Blog of Heroes<\/li>\n<li> WIST&nbsp;(remarkably clean for being such a kludge.&nbsp; The Java to select categories is slower than the old drop-downs, and rebuilds seem slower, but workable).<\/li>\n<li> All the other dribs-and-drabs.<\/li>\n<li> Put a fork in it, Edgar, it&#8217;s done.<\/li>\n<\/ol>\n<p>Now, it&#8217;s altogether possible there are still a few glitches out there &#8212; I&#8217;d be surprised if there weren&#8217;t &#8212; but main functionality all seems to be there.<\/p>\n<p>Next up &#8212; on some other day, believe me &#8212; I&#8217;m going to play with the new default templates. Maybe start on a peripheral blog that&#8217;s fairly new &#8220;clean,&#8221; and then tackle DDtB, which desperately needs its templates replaced with something that doesn&#8217;t have bits of code from MT1.x in it.<\/p>\n<p>Many thanks to Margie who let me get away with spending the day (and chunks of Christmas vacation) doing this.<\/p>\n<p>We now return you to your regular blogging.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m going to use this post to keep track of my MT4 installation.&nbsp; The good folks at Hosting Matters (who are probably sick and tired of my site sucking&#8230;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-11897","post","type-post","status-publish","format-standard","hentry","category-blogging"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2129,"url":"https:\/\/hill-kleerup.org\/blog\/2002\/03\/05\/its_like_moving.html","url_meta":{"origin":11897,"position":0},"title":"It&#8217;s like moving into a frickin&#8217; new house","author":"***Dave","date":"Tue 5-Mar-02 3:51pm","format":false,"excerpt":"Moving into a new PC, that is. The guys at the office got my old hard drive working in a different notebook, so I have been able to pull in...","rel":"","context":"In &quot;Personal&quot;","block_context":{"text":"Personal","link":"https:\/\/hill-kleerup.org\/blog\/category\/personal"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7042,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/11\/08\/your_itunes_for.html","url_meta":{"origin":11897,"position":1},"title":"Your iTunes for Windows Tip o&#8217; the Week","author":"***Dave","date":"Mon 8-Nov-04 10:12am","format":false,"excerpt":"If a CD rip into Apple iTunes aborts for some reason, crashing iTunes (yes, it happens), the tracks already successfully copied over remain in the appropriate directory, but unused and...","rel":"","context":"In &quot;Hi-Tech&quot;","block_context":{"text":"Hi-Tech","link":"https:\/\/hill-kleerup.org\/blog\/category\/hi-tech"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10502,"url":"https:\/\/hill-kleerup.org\/blog\/2007\/01\/04\/when_mtentrynext_isnt.html","url_meta":{"origin":11897,"position":2},"title":"When MTEntryNext isn&#8217;t","author":"***Dave","date":"Thu 4-Jan-07 9:59am","format":false,"excerpt":"So in playing around with some stuff last night, I discovered that on the individual entry archives, in the little triptych of links at the top of each entry (previous...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1793,"url":"https:\/\/hill-kleerup.org\/blog\/2002\/04\/29\/sounds_like_a_r.html","url_meta":{"origin":11897,"position":3},"title":"Sounds like a ringing endorsement to me!","author":"***Dave","date":"Mon 29-Apr-02 7:38pm","format":false,"excerpt":"I run Ad-Aware, a free program from Lavasoft, which searches for spyware andother commercial \"We're tracking you for your own good (and our profits)\" programs that get snuck onto your...","rel":"","context":"In &quot;Hi-Tech&quot;","block_context":{"text":"Hi-Tech","link":"https:\/\/hill-kleerup.org\/blog\/category\/hi-tech"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":5760,"url":"https:\/\/hill-kleerup.org\/blog\/2004\/07\/21\/good_migrations.html","url_meta":{"origin":11897,"position":4},"title":"Good Migrations: The Plan","author":"***Dave","date":"Wed 21-Jul-04 11:37am","format":false,"excerpt":"UPDATE (3:00p) - Got the loaner PC, a Thinkpad T40. Faster, but smaller (and lower screen res) than my A31. Ah, well, beggers can't be choosers. I'm going to lay...","rel":"","context":"In &quot;My Computer&quot;","block_context":{"text":"My Computer","link":"https:\/\/hill-kleerup.org\/blog\/category\/my-computer"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":10043,"url":"https:\/\/hill-kleerup.org\/blog\/2006\/09\/18\/test_2.html","url_meta":{"origin":11897,"position":5},"title":"Test","author":"***Dave","date":"Mon 18-Sep-06 7:05pm","format":false,"excerpt":"This is a test ... UPDATE: Okay, I've gotten ecto back working with my blog. In an annoying twist, WS_FTP again failed to properly copy over some of the files...","rel":"","context":"In &quot;Blogging &amp; Internet&quot;","block_context":{"text":"Blogging &amp; Internet","link":"https:\/\/hill-kleerup.org\/blog\/category\/blogging"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/11897","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/comments?post=11897"}],"version-history":[{"count":1,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/11897\/revisions"}],"predecessor-version":[{"id":46378,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/posts\/11897\/revisions\/46378"}],"wp:attachment":[{"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/media?parent=11897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/categories?post=11897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hill-kleerup.org\/blog\/wp-json\/wp\/v2\/tags?post=11897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}