Recently my hosting provider, Blacknight Solutions, requested that bloggers using WordPress use the WP-Cache plugin to reduce the load on their servers. Michele at Blacknight has been somewhat critical of WordPress in the past, mainly due to it’s inefficient SQL and the resultant high number of database queries required to generate even a simple page. Based on this Michele moved over to Movable Type 4, and despite a few teething problems, he seems to be quiet happy with it.
As part of their control panel, Blacknight provide the handy Installatron Script Installer, however, there is no installer available for MT, so users have to manually install it themselves. Unfortunately my upload connection is so bad, that it me takes hours to upload the approximately 20 MB of MT install files. As I use MAMP for local site development, I’d thought I’d have a go at a local install of MT.
Because of where MAMP is installed, it’s not a straightforward process, there are a couple of “gotchas” along the way. So for those of you interested in performing a local install of MT4, here’s a quick HOWTO.
Part I: Getting Ready To Install Movable Type
- Once you have downloaded the MT4 ZIP file, extract the files to a folder of your choice.
- Within this folder, you should now have an MTOS-4.1-en folder.
- Open this folder and locate the mt-static folder.
- Move the mt-static folder to /Applications/MAMP/htdocs/
- Open a new Finder window and browse to /Applications/MAMP/cgi-bin/
- Create a new folder, and name it mt
- Move the remaining files in the MTOS-4.1-en folder to /Applications/MAMP/cgi-bin/mt/
Part II: Create a SQLite Database
Before starting the Movable Type installer, you need to create a database in which to store your blog settings, posts etc. While the MT developers recommend that you use MySQL for your database, an additional Perl Module is required otherwise MT will not recognise your MySQL server. However, as this will be a local install, SQLite should be more than enough for your needs. (If you really need it, the required module is DBD::mysql which can be found here, but be warned installing it is problematic and time consuming).
- Start the MAMP application and click the “Open Start Page” button, or alternatively, type http://localhost:8888/MAMP/ into your address bar.
- Click the link for the SQLiteManager at the top of the page.
- Type in the name of your database, and select Version 3.
- The full path to the database file also needs to be provided. In this example, I’ve called my database mt4, but you’re free to call it whatever you wish.
- Note that the path to your database will be /Applications/MAMP/db/sqlite/[your database name].db
- Click the Save button, and your database will be created.
Part III: Installing Movable Type
Now that you have all the MT4 files in place, and your database has been created, you’re ready to start the Movable Type web-based installer.
- Open your browser, and type in the following address: http://localhost:8888/cgi-bin/mt/mt.cgi
- The installer will tell you that the mt-static has either been renamed or moved and will request both the Static Web Path and Static File Path to the folder. Enter the following paths:
- Click the Begin button and the installer will confirm that the paths you have entered are correct.
- The next step brings us to the database connection setup page. Here is where we’ll tell Movable Type where our database is and how to connect to it.
- You’ll note that the only database connection available to us is the SQLite Database and once again we’re being asked for the path to the database. This is the exact same path that you entered in Step 6 of Part II above:
- In order to proceed, you’ll need to Test the Connection.
- Once MT can talk to your database, then Continue onto the next step -setting up your email.
- From the drop-down, select Sendmail and accept the default Sendmail path. Enter your email address and click the Send Test Email Button.
- The next step is to set up the admin user and password.
- The final step is to create your first blog!