Since I upgraded to Movable Type 4 on this site last week and had a few issues with modifying my templates to utilize the full benefits of MT4's new tags and approach to modularizing the templates further. I decided that it would probably be a very wise choice to have an implementation to play with here at home. Doing this serves several purposes:
- First: I can make changes to the site without getting egg all over my face.
- Second: I can see how my site will react to the changes I make and experiment with it until I am satisfied with the outcome.
- Third: I can modify the source code or develop plug-ins and test them in an environment that is self-contained
- A database: MT is compatible with quite a few database engines. I chose to use MySQL. I've used it for years and I've always been very satisfied with its performance.
- PHP: If you decide to use "dynamic publishing" you will need this. But that is not absolutely required.
- Perl: MT's engine is based on Perl so you can't get around this.
- A web server: I use Apache. But you can use IIS if you absolutely have to.
- Install your database.
- Install your web server
- Install PHP using the windows installer. The installer will automatically configure your webserver to use PHP.
- Install Perl
- At this point you should probably make sure that Perl came with the necessary libraries to connect to your database. Mine didn't and I did not know this until I tried installing MT. However, the Perl Package Manager made it easy to get and install.
- Now you're ready to install MT4.
#! /usr/bin/perlIf you install on Windows this directive will not work on a Windows machine. What you will probably receive is the following in your Apache error logs: "The system cannot find the path specified. : couldn't spawn child process: C:/Program Files/Apache Group/Apache2/cgi-bin/mt/mt.cgi" So, what your need to do is go into each of MT's .cgi files and replace that directive with something like this:
#!c:\perl\bin\perl.exeWhat you are doing is telling Apache that the appropriate executable that knows how to execute Perl script resides at this place - where this place is the path to your perl.exe. Once that is in place - and your other installations are in place - the MT installation is a snap. Good Luck.
