Movable Type Documentation > Installation

Windows Server Installation Instructions

The required Movable Type Web server components are less likely to be pre-installed on a Windows, so this section gives detailed instructions for setting up your server.

These instructions assume you are using the MySQL database server. It is one of the most common and widely supported. The Enterprise Solution adds support for Microsoft SQL Server. If you are using SQL Server, follow instructions in Installing Enterprise Solution to set up a Movable Type database with SQL Server.

Windows Web Server Setup

Before installing Movable Type on a Windows Web Server, install these required components:

Microsoft Internet Information Server (IIS)

  • Microsoft IIS 6.0 is provided as part of the Microsoft 2003 Server software.
  • Microsoft IIS 7.0 is provided as part of Microsoft Windows Vista Ultimate, Vista Business, and Vista Enterprise software.
  • If you are using Microsoft Windows Vista, you will need to install an SMTP server or have access to an external SMTP server for email notifications. SMTP is not included with Windows Vista.

Follow your server documentation to insure that IIS is operating properly on your server.

ActiveState ActivePerl

Use your web browser to connect to connect to http://www.activestate.com and follow links and instructions on that site to download the latest Windows MSI package. After downloading, run the setup program using all the default settings.

MySQL Database Server

Use your web browser to connect to http://mysql.com and follow the links and instructions to download the most recent MySQL installer for Windows. Run the installation program selecting a Typical setup. Select the option to Configure MySQL Now and choose Standard Configuration with the default settings. Enter a root password, save your settings, and finish the wizard.

MySQL Administrator

Use your web browser to connect to http://mysql.com and follow the links and instructions to download the most recent MySQL Administrator installer for Windows. Run the installation program to install with default settings.

PHP

PHP is required only if you want to use Movable Type dynamic publishing or customize Movable Type with scripts authored in PHP. Use your web browser to connect to http://www.php.net and follow links and instructions for downloading the Windows PHP installer. Run the downloaded installation program leaving all of the default settings. The installer automatically configures IIS to work with PHP.

Set Up the Movable Type MySQL Database

  • Start the MySQL Administrator program. In the Start menu, select MySQL > MySQL Administrator.

  • In the Connect to a MySQL server instance: dialog, fill in these fields:

    • Server host: localhost
    • Username: root
    • Enter the root password you specified when you installed the MySQL server.
  • Click on the Service Control icon. Check that the message displays "MySQL Service is Running."

  • Click on the Catalogs icon. In the empty lower-left pane, click your right mouse button to display a context menu and select Create New Schema. Name the new schema movabletype.

  • Click the User Administration icon, then right-click in the lower-left pane (the user list). Choose Add New User. Name the new user mt_user and specify a password for the user. You will need to supply the schema name, user name, and password when you install Movable Type.

  • Select the Schema Privileges tab in the right pane and select the movabletype schema in the list of schemas. Assign the following privileges for this user then click Apply changes.

    • SELECT
    • INSERT
    • UPDATE
    • DELETE
    • CREATE
    • ALTER
    • CREATETMPTABLE.
  • Restart MySQL. Click the Service Control icon and click Stop Service. Wait until the service is stopped, and then click Start Service.

Configuring IIS to Use ActivePerl

  • Check that IIS is functioning. Connect to http://localhost/ in your web browser. You should see a startup page and documentation.

  • In the Start Menu, select Control Panel > Administrative Tools > Internet Services Manager.

  • In the Internet Services Manager, use the left-side navigation to select the Default Web Site. Right-click and choose Properties.

  • Select the Home Directory tab, and then click Configuration.

  • Click the Add button. In the form, fill in the fields as follows and click OK to save your changes.

    • Executable: C:\Perl\bin\perl.exe "%s" %s
    • Extension:.cgi
    • Verbs Limit to: GET,HEAD,POST
    • Check that file exists: (uncheck this box)

Installing Movable Type

  • Use a Web browser to connect to the Movable Type Download page and follow instructions there to download the Windows (.zip) release file.

  • Double-click to extract the release files from the .zip file. You'll see a folder named after the current Movable Type release. Rename this folder to mt.

  • Move the mt folder into the Web root folder, usually C:\Inetpub\wwwroot Check the properties of the mt folder to make sure that the Web User has Execute permission.

  • Start the Perl Package manager to install Perl modules required by Movable Type. From the Start menu, select All Programs>ActivePerl>Perl Package Manager.

  • If you see a Windows Security Alert, click Unblock to give the Perl Command Line Interpreter permission to access the web.

  • In the Search box, type DB and press Enter. You see a list of packages that contain the letters DB.

    • Select the package named DBI and chose Install DBI from the Action menu.
    • Select the package named DBD-mysql and chose Install DBD-mysql from the Action menu.
    • Choose Run Marked Actions from the File menu to install the two packages.
  • To verify the installation, enter the following Web address in a Web browser: http://localhost/MT/mt-check.cgi

  • If you see a green message saying, "Movable Type System Check Successful" at the bottom of the page, your Perl installation is complete.

  • To run the installation wizard, start a Web browser connect to the following Web address http://domainname/cgi-bin/mt/mt.cgi where domainname is the domain name for your blog. The installation wizard checks the configuration of your server, including database types and expansion packs, and displays a series of forms that you fill out to complete the Movable Type installation.

  • If the installation wizard displays a page listing optional Perl modules and features that you can install, print this page and save it so you know which modules to install later. The listing page tells where to get information on downloading and installing these modules.

  • When it completes, the installaton wizard writes the Movable Type configuration file, mt-config.cgi, and starts Movable Type. You are ready to begin adding content to the first blog and creating additional blogs. For instructions, see Working with Your Blog.

This page was last updated on 2008-04-17, 22:06.  

15 User Contributed Notes

You might want to add for the IIS 6.0 folks running on Windows 2003 that you have to make sure that the 'Perl CGI Extension' is Allowed in the 'Web Service Extensions,' or else IIS won't execute those lovely CGI scripts.

What said:

hi ~ i install MT in windows local with PerlActive + Easyphp . So Download Madules For Perl DBI & dbd mysql . next step edit Mt config file .. but show this ERROR in this page [ 127.0.0.1/cgi-bin/mt.cgi ] !!! An error occurred Can't connect to data source , no database driver specified and DBI_DSN env var not set at C:\PROGRA~1\EASYPH~1\cgi-bin\extlib/Data/ObjectDriver/Driver/DBI.pm line 54 Pls Help me !!!

Steven Author Profile Page said:

Anyone know how to get past this error?

Can't connect to data source '' because I can't work out what driver to use (it doesn't seem to contain a 'dbi:driver:' prefix and the DBI_DRIVER env var is not set) at C:\CCUIntranet\html\cgi-bin\mt4\extlib/Data/ObjectDriver/Driver/DBI.pm line 54 at C:\CCUIntranet\html\cgi-bin\mt4\extlib/Data/ObjectDriver/Driver/BaseCache.pm line 234

Jerry said:

I was unable to get the install script to run using active perl 5.10.0.1001 but after uninstalling it and installing 5.8.8.822, all's well. I also used http://domainname/mt/mt.cgi instead of the http://domainname/cgi-bin/mt/mt.cgi suggested above.

Jerry said:

Also, note that I installed on Windows XP which has IIS 5.1 and that worked. It was a test install prior to installing on server 2003 which I haven't done yet.

Jerry said:

and the mt_user also needs the INDEX privilege

@Steven Check that your CGIPath is correct and that you have removed all ObjectDriver references for database types that you do not use.

lewisbass said:

I get an error "Movable Type Configuration File was not found.

What is missing? I unziped the 5 user license into a directory on windows 2003 server IIS 6.0

JC said:

when i try to "install DBI", i get the following:

=================================

Install 'DBI' version 1.601 in ActivePerl 5.8.8.816.

Error: error downloading 'http://ppm.activestate.com/PPMPackages/5.8-windows/MSWin32-x86-multi-thread-5.8/DBI-1.601.tar.gz': 404 Not Found

JC said:

well, the previous error has disappeared, but once it gets past that i'm getting: Error: error downloading 'http://ppm.activestate.com/PPMPackages/5.8-windows/MSWin32-x86-multi-thread-5.8/PathTools-3.19.tar.gz': 404 Not Found

do these things just come and go and i have to keep trying until they all get found and installed or what?

JC said:
guess so...got through the dbi install today. moved on to the DBD-mysql install and got another 404:

Install 'DBD-mysql' version 3.0002 in ActivePerl 5.8.8.816. Error: error downloading 'http://ppm.activestate.com/PPMPackages/5.8-windows/MSWin32-x86-multi-thread-5.8/DBD-mysql-3.0002.tar.gz': 404 Not Found

it's like banging my head against a wall...

JC said:

still not found. any suggestions?

Dave said:

I get the following error when they try to first goto: http://www.???.com/mt/mt.cgi

CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers.

I'm running on Windows 2003... does anyone know what I might be doing wrong? I don't even know where to begin to look?

Thanks, Dave

JC said:

i'm getting that as well! when i try to get to http://localhost/MT/mt-check.cgi, it displays

"CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers."

i'm also running windows server 2003

JC said:

Dave, found the answer in the wiki: http://wiki.movabletype.org/MTHostingQuirks#Windows_servers

Submit a User Contributed Note

User contributed notes are a great way to share the knowledge you have gained in using Movable Type.

If you have a technical question or problem, please visit Movable Type Support.

(If you haven't left a note here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)