{"id":364,"date":"2005-09-16T15:27:23","date_gmt":"2005-09-16T15:27:23","guid":{"rendered":"http:\/\/www.nargalzius.com\/blog2\/http:\/www.nargalzius.com\/blog2\/archives\/2005\/09\/2005_09_16_2327.php"},"modified":"2017-02-10T05:27:50","modified_gmt":"2017-02-10T05:27:50","slug":"movabletype-with-mamp-os-x","status":"publish","type":"post","link":"http:\/\/nargalzius.com\/blog\/archives\/2005\/09\/16\/movabletype-with-mamp-os-x","title":{"rendered":"MovableType with MAMP (OS X)"},"content":{"rendered":"<div class=\"notice\">\n<p class=\"header\"><strong>NOTICE<\/strong><br>CONTENTS OUTDATED<\/p>\n<p class=\"content\">The MAMP+MT implementation process today differs drastically from the time this tutorial was first posted. I suggest checking the comments for a link of a possible updated tutorial from another user.<\/p><\/div>\n<p>I tried installing MovableType locally in my laptops webserver (OSX), but ran into some snags. It turns out that there are non built-in perl modules required for it to access the MySQL database. What made it worse is that I was running <a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">MAMP<\/a> and not the normal Apache webserver bundled with the OS.<\/p>\n<p>I figured I&#8217;d write this for those users planning to do the same thing&#8230; and of course the ever persistent reason of &#8220;for my future reference.&#8221;<!--more--><a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">mamp<\/a>: <a href=\"http:\/\/www.mamp.info\/en\/home\/\">http:\/\/www.mamp.info\/en\/home\/<\/a> &#8220;Visit site&#8221;<\/p>\n<p>First a couple of preliminary facts: the MySQL is not activated by default&#8230; it isn&#8217;t even configured. Unlike Apache, which can be launched via <em>System Preferences,<\/em> the MySQL server has to be started via Terminal (well, at least, that&#8217;s what I had to do).<\/p>\n<p><a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">MAMP<\/a> <span class=\"footnote_referrer\"><a role=\"button\" tabindex=\"0\" onclick=\"footnote_moveToReference_364_1('footnote_plugin_reference_364_1_1');\" onkeypress=\"footnote_moveToReference_364_1('footnote_plugin_reference_364_1_1');\" ><sup id=\"footnote_plugin_tooltip_364_1_1\" class=\"footnote_plugin_tooltip_text\">1 <\/sup><\/a><span id=\"footnote_plugin_tooltip_text_364_1_1\" class=\"footnote_tooltip\">Macintosh, Apache, MySQL, PHP<\/span><\/span><script type=\"text\/javascript\"> jQuery('#footnote_plugin_tooltip_364_1_1').tooltip({ tip: '#footnote_plugin_tooltip_text_364_1_1', tipClass: 'footnote_tooltip', effect: 'fade', predelay: 0, fadeInSpeed: 200, delay: 400, fadeOutSpeed: 200, position: 'top right', relative: true, offset: [10, 10], });<\/script> solves that problem because it was meant to be self-contained by design. Meaning every component you would usually have for dynamic publishing, is already included and pre-configured. Unfortunately, this is a very broad area to cover, so <a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">MAMP<\/a> only deals with the most common stuff people need, and can&#8217;t really be expected to have any other <em>special<\/em> modules installed by default.<\/p>\n<p>Before everything else, now is a good time to install the Developer Tools included in your OSX CD, you need this to compile and install the Perl modules you&#8217;ll need for MT-MySQL access.<\/p>\n<p>It is to be noted that Perl support <strong>isn&#8217;t<\/strong> enabled by default in <a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">MAMP<\/a> so make sure to configure your <code>httpdconf<\/code> file to enable it. Just uncomment the line (take out the <code>#<\/code>) where it says:<\/p>\n<h1>AddHandler cgi-script .cgi<\/h1>\n<p>Once you&#8217;ve done that, visit this URL\n<a href=\"http:\/\/www.cpan.org\/modules\/by-category\/07_Database_Interfaces\/DBD\/\">http:\/\/www.cpan.org\/modules\/by-category\/07_Database_Interfaces\/DBD\/<\/a><\/p>\n<p>Download these latest (or not) versions of these two files (where <code>x<\/code> are numbers):<\/p>\n<ul>\n<li>DBI Module (filename is <code>DBI-X.XX.tar.gz<\/code>)<\/li>\n<li>DBD::MySQL module (filename is <code>DBD-mysql-X.XXXX.tar.gz<\/code>)<\/li>\n<\/ul>\n<p>Extract both of these files in <code>\/Library\/Perl<\/code><\/p>\n<p>To install the DBI module, do this (again <code>x<\/code> is a number):<\/p>\n<p>cd \/Library\/Perl\/DBI-X.XX<\/p>\n<p>sudo Perl Makefile.PL\nsudo make\nsudo make install<\/p>\n<p>To install the DBD::MySQL module, it&#8217;s pretty much the same with one nuance.<\/p>\n<p>cd \/Library\/Perl\/DBD-mysql-X.XXXX<\/p>\n<p>sudo Perl Makefile.PL &#8211;mysql_config=\/Applications\/MAMP\/bin\/mysql4\/bin\/mysql_config\nsudo make\nsudo make install<\/p>\n<p>Notice the extra parameters in one line &#8211; this is precisely because we are on a <a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">MAMP<\/a> environment, and you have to explicitly point it there, else it wont compile properly. Of course the actual path of <code>--mysql_config=<\/code> would depend where you put your <a href=\"http:\/\/www.mamp.info\/en\/home\/\" title=\"Visit site\">MAMP<\/a> folder.<\/p>\n<p>Once both have been installed, you can delete the folders where you extracted them to. Because the installed modules should now be located in a folder resembling <code>\/Library\/Perl\/X.X.X\/darwin-thread-multi-2level<\/code> (at least that&#8217;s where it put mine)<\/p>\n<p>That&#8217;s it! You&#8217;re now ready to use MovableType locally on your machine with MySQL support \ud83d\ude09<\/p><div class=\"speaker-mute footnotes_reference_container\"> <div class=\"footnote_container_prepare\"><p><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_label pointer\" onclick=\"footnote_expand_collapse_reference_container_364_1();\">Notes<\/span><span role=\"button\" tabindex=\"0\" class=\"footnote_reference_container_collapse_button\" style=\"display: none;\" onclick=\"footnote_expand_collapse_reference_container_364_1();\">[<a id=\"footnote_reference_container_collapse_button_364_1\">+<\/a>]<\/span><\/p><\/div> <div id=\"footnote_references_container_364_1\" style=\"\"><table class=\"footnotes_table footnote-reference-container\"><caption class=\"accessibility\">Notes<\/caption> <tbody> \r\n\r\n<tr class=\"footnotes_plugin_reference_row\"> <th scope=\"row\" class=\"footnote_plugin_index_combi pointer\"  onclick=\"footnote_moveToAnchor_364_1('footnote_plugin_tooltip_364_1_1');\"><a id=\"footnote_plugin_reference_364_1_1\" class=\"footnote_backlink\"><span class=\"footnote_index_arrow\">&#8673;<\/span>1<\/a><\/th> <td class=\"footnote_plugin_text\">Macintosh, Apache, MySQL, PHP<\/td><\/tr>\r\n\r\n <\/tbody> <\/table> <\/div><\/div><script type=\"text\/javascript\"> function footnote_expand_reference_container_364_1() { jQuery('#footnote_references_container_364_1').show(); jQuery('#footnote_reference_container_collapse_button_364_1').text('\u2212'); } function footnote_collapse_reference_container_364_1() { jQuery('#footnote_references_container_364_1').hide(); jQuery('#footnote_reference_container_collapse_button_364_1').text('+'); } function footnote_expand_collapse_reference_container_364_1() { if (jQuery('#footnote_references_container_364_1').is(':hidden')) { footnote_expand_reference_container_364_1(); } else { footnote_collapse_reference_container_364_1(); } } function footnote_moveToReference_364_1(p_str_TargetID) { footnote_expand_reference_container_364_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } } function footnote_moveToAnchor_364_1(p_str_TargetID) { footnote_expand_reference_container_364_1(); var l_obj_Target = jQuery('#' + p_str_TargetID); if (l_obj_Target.length) { jQuery( 'html, body' ).delay( 0 ); jQuery('html, body').animate({ scrollTop: l_obj_Target.offset().top - window.innerHeight * 0.2 }, 380); } }<\/script>","protected":false},"excerpt":{"rendered":"<p>NOTICECONTENTS OUTDATED The MAMP+MT implementation process today differs drastically from the time this tutorial was first posted. I suggest checking the comments for a link of a possible updated tutorial from another user. I tried installing MovableType locally in my laptops webserver (OSX), but ran into some snags. It turns out that there are non &hellip; <p class=\"link-more\"><a href=\"http:\/\/nargalzius.com\/blog\/archives\/2005\/09\/16\/movabletype-with-mamp-os-x\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;MovableType with MAMP (OS X)&#8221;<\/span><\/a><\/p><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[5,13],"tags":[33,93,96,595,732,791,797,805,860,893],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-internet","category-technology","tag-33","tag-apache","tag-apple","tag-internet","tag-mamp","tag-movabletype","tag-mt","tag-mysql","tag-os-x","tag-perl"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":2,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":1847,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/posts\/364\/revisions\/1847"}],"wp:attachment":[{"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nargalzius.com\/blog\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}