{"id":4,"date":"2004-03-22T04:04:54","date_gmt":"2004-03-22T09:04:54","guid":{"rendered":"http:\/\/www.sherylcanter.com\/wordpress\/?p=4"},"modified":"2015-10-22T20:31:22","modified_gmt":"2015-10-23T01:31:22","slug":"how-to-install-movable-type","status":"publish","type":"post","link":"https:\/\/sherylcanter.com\/wordpress\/2004\/03\/how-to-install-movable-type\/","title":{"rendered":"How to Install Movable Type"},"content":{"rendered":"<p><i>This article was originally posted in a MovableType 2.661 blog &#8211; now imported into WordPress, which is much easier to use.<\/i><\/p>\n<p>The Web Log you are now reading was created with a server-based publishing system called <a href=\"http:\/\/www.movabletype.org\" target=\"_blank\">Movable Type<\/a>. Installing server-based software isn&#8217;t difficult, but it requires many more manual steps than installing a program on your local computer. Before you can run an installation script, you must first put the files in the correct places on the server, set the correct permissions, manually create any necessary databases, and correctly specify configuration parameters.<\/p>\n<p>This is not hard to do if the software comes with precise, complete, and clearly written instructions. But unfortunately, the Movable Type installation docs are not as good as the software itself. So my first blog entry is a tutorial on how to install Movable Type, focusing on the parts that were unclear to me when I was doing it.<\/p>\n<p><!--more--><\/p>\n<p>My installation of Movable Type is on a Linux server with a MySQL database. If there are issues with other operating systems or databases, they won&#8217;t be addressed here. But most of what I describe here will be relevant across platforms.<\/p>\n<p>I&#8217;ll start with a list of what files go where (a directory structure that works) and the necessary permissions for the various files. Don&#8217;t forget to upload files in the correct mode:<\/p>\n<p>&#8211; Everything except the bitmaps must be uploaded in ASCII mode.<br \/>\n&#8211; The bitmaps must be uploaded in BINARY mode.<\/p>\n<p>If you don&#8217;t upload things in the correct mode, the scripts won&#8217;t run and the bitmaps won&#8217;t display.<\/p>\n<p><b>Directory Structure<\/b><\/p>\n<p>You will have two Movable Type directories, one containing the program and the other containing the data (your blog entries, and the Movable Type documentation and bitmaps). You need two directories because only script files can go in cgi-bin. Files stored in cgi-bin cannot be viewed or downloaded by visitors, only executed. Don&#8217;t be tempted to put the entire installation outside cgi-bin because the limitations are a security feature.<\/p>\n<p>The directories listed below are described relative to the Web site&#8217;s home directory. For example, the directory \/cgi-bin\/ corresponds to a URL like http:\/\/www.domain.com\/cgi-bin\/. When you configure Movable Type, you will need to know the server path to this home directory. If this information isn&#8217;t in your server&#8217;s control panel, ask your Web host administrator what it is.<\/p>\n<p>Beneath each directory name is a list of what it contains, followed by notes.<\/p>\n<p><u>Program directory: <b>\/cgi-bin\/movabletype\/<\/b><\/u><br \/>\n&#8211; all files with this filespec: mt*.cgi<br \/>\n&#8211; the configuration file: mt.cfg<br \/>\n&#8211; these folders: extlib, import, lib, schemas, search_templates, tmpl<\/p>\n<p><u>Notes:<\/u><br \/>\nSet the permissions for all the CGI files to 755.<\/p>\n<p>The &#8220;import&#8221; directory is something you create; it&#8217;s not in the distribution zip.<\/p>\n<p>The &#8220;extlib&#8221; directory will only contain extensions not already installed on your server, so don&#8217;t upload any files or folder to this yet. Just create an empty directory with this name and read on.<\/p>\n<p><u>Data directory: <b>\/movabletype\/<\/b><\/u><br \/>\n&#8211; these folders (you manually create them): archives, mt-static<\/p>\n<p><u>Notes:<\/u><br \/>\nThe \/movabletype\/ directory is where current blog entries are stored. Archives are stored in \/movabletype\/archives\/. The Movable Type documentation and bitmaps are stored in \/movabletype\/mt-static\/.<\/p>\n<p>The folders containing blog entries must be writable by the world, so the permissions for \/movabletype\/, \/movabletype\/archives\/, and all the files within these folders must be set to 777 (full permissions), unless you have special security software running on the server. See the Movable Type documentation for details.<\/p>\n<p><u>Movable Type docs and bitmaps: <b>\/movabletype\/mt-static\/<\/b><\/u><br \/>\n&#8211; these files: index.html, style.css<br \/>\n&#8211; these folders: docs, images<\/p>\n<p><u>Notes:<\/u><br \/>\nThe index.html file is mainly there to prevent visitors from viewing the contents of this directory. There is a link on this page to the Movable Type documentation.<\/p>\n<p><b>The Two Files You Need to Edit<\/b><\/p>\n<p>There are two configuration files you will need to edit:<br \/>\n&#8211; mt.cfg<br \/>\n&#8211; mt-db-pass.cgi<\/p>\n<p>To configure your settings, you need to know:<\/p>\n<p>&#8211; server path to your home directory<br \/>\n&#8211; server path to your sendmail program<br \/>\n&#8211; server path to Perl<br \/>\n&#8211; if there is anything in your MySQL installation that differs from the default<\/p>\n<p>If this information isn&#8217;t listed in your server&#8217;s control panel, ask your Web host administrator.<\/p>\n<p>The other thing you need to do before editing the configuration files is create an empty MySQL database (call it MovableType), and set up a username and password with full permission to access it. Don&#8217;t use the same username and password you use to access your Web hosting account; set up a separate one.<\/p>\n<p>Once you have all the information and have created the MySQL database, you are ready to edit mt.cfg. The comments in the file explain almost everything, with the exception of the database settings, which are described in the Movable Type installation docs.<\/p>\n<p>The database section is near the top of the file and contains just one line: &#8220;DataSource .\/db&#8221;. Since you will be using a MySQL database, comment out this line (put a # sign in front of it) and add these three lines in its place:<\/p>\n<p>ObjectDriver DBI::mysql<br \/>\nDatabase <i>database_name<\/i><br \/>\nDBUser <i>database_user<\/i><\/p>\n<p>Replace <i>database_name<\/i> and <i>database_user<\/i> with the names you set up when you created the database. If you called your database MovableType as I suggested above, the database line will read:<\/p>\n<p>Database MovableType<\/p>\n<p>If your MySQL installation is different from the default in terms of hostname, port, or location of mysql.sock, then you will need one or more of these additional lines (default settings are shown here):<\/p>\n<p>DBHost localhost<br \/>\nDBPort 3306<br \/>\nDBSocket \/tmp\/mysql.sock<\/p>\n<p>After you&#8217;ve finished editing the database settings, go through the rest of mt.cfg slowly and methodically. Read each comment carefully and make a choice; do not skim. If you want the default setting, leave the line for that setting commented out. You only need to uncomment lines when you are changing the default.<\/p>\n<p>When you&#8217;re done editing mt.cfg, there is only one more change you need to make: edit the file mt-db-pass.cgi. This file contains a single word, &#8220;database_password&#8221;, and nothing else. Replace &#8220;database_password&#8221; with your MySQL password. The password is stored in a separate file for security reasons.<\/p>\n<p>Upload the two edited configuration files to the program directory on the server. If you uploaded these files before and set their permissions, you don&#8217;t need to set them again.<\/p>\n<p><b>How to Know Which of the extlib Files You Need<\/b><\/p>\n<p>The files and folders in extlib are extensions that you may already have on your server. You only need to install the ones you don&#8217;t have. To find out what you need, point your browser here: http:\/\/www.domain.com\/cgi-bin\/movabletype\/mt-check.cgi. This script will check your server, and tell you which extension modules are missing.<\/p>\n<p>In addition to what this script reported, I had to upload the subdirectories &#8220;I18N&#8221; and &#8220;Locale&#8221;. I got error messages when they weren&#8217;t there.<\/p>\n<p><b>Run the Installation Script<\/b><\/p>\n<p>Now all the files you need are on the server in the correct places, the correct permissions have been set, and the configuration parameters have been specified. So point your browser to this URL:<\/p>\n<p>http:\/\/www.domain.com\/cgi-bin\/movabletype\/mt-load.cgi<\/p>\n<p>This script creates the initial Movable Type files, and sets up the database tables. <u>After you have successfully run mt-load.cgi, delete it from the server. It is a serious security risk not to do this.<\/u><\/p>\n<p><b>Configure Movable Type<\/b><\/p>\n<p>Now you are ready to log into Movable Type for the first time so you can configure it. Point your browser here:<\/p>\n<p>http:\/\/www.domain.com\/cgi-bin\/movabletype\/mt.cgi<\/p>\n<p>This is the administration area. Log in using the default username (Melody) and password (Nelson).<\/p>\n<p>There are two configuration changes that are necessary. Everything else is optional:<\/p>\n<p>&#8211; Edit the profile to change the username and password (that&#8217;s for security).<br \/>\n&#8211; Edit the paths. For some reason, Movable Type does a poor job of guessing and they will be wrong. In general, the string &#8220;cgi-bin&#8221; should not be in there anywhere.<\/p>\n<p>Now you have a working blog, though you will probably want to change the default appearance and settings. Most of the settings are clearly documented within the program except for the Templates area, which controls the appearance of your blog.<\/p>\n<p>The style presets are not stored within the program itself. They are on the Movable Type Web site here:<\/p>\n<p><a href=\"http:\/\/www.movabletype.org\/default_styles.shtml\">http:\/\/www.movabletype.org\/default_styles.shtml<\/a><\/p>\n<p>Copy the style code you want from this page, then paste it into the edit box on the Templates page.<\/p>\n<p>Before you make your blog live, test all the links. It&#8217;s very easy to mess up the paths.<\/p>\n<p>I hope this overview is helpful and saves you some time.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>This article was originally posted in a MovableType 2.661 blog &#8211; now imported into WordPress, which is much easier to use. The Web Log you are now reading was created with a server-based publishing system called Movable Type. Installing server-based software isn&#8217;t difficult, but it requires many more manual steps than installing a program on &hellip; <a href=\"https:\/\/sherylcanter.com\/wordpress\/2004\/03\/how-to-install-movable-type\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to Install Movable Type<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/posts\/4"}],"collection":[{"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":2,"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/posts\/4\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/posts\/4\/revisions\/431"}],"wp:attachment":[{"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/media?parent=4"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/categories?post=4"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sherylcanter.com\/wordpress\/wp-json\/wp\/v2\/tags?post=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}