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)
  • If you are running IIS 6.x on Windows Server 2003, you must also enable the Web Services Extension for CGI scripts:

    • Load IIS from the Administrative Tools in the Control Panel by clicking Start > Administrative Tools > IIS Manager (or loading the Control Panel, entering the Administrative Tools folder, and double clicking IIS Manager).
    • Click the name of your computer then click "Web Service Extensions". On the left side of the main frame you will see a green arrow pointing to a link that says, "Add a new Web service extension...". Click that link.
    • In the dialog that is displayed, you are asked for an "Extension name". You can enter any text in that field, such as "CGI script".
    • Next to the "Required Files", click the "Add" button.
    • In the text box, enter the following (without the apostrophes): 'C:\Perl\bin\perl.exe "%s" %s'. Click OK to the accept the new entry.
    • Check the "Set status to allowed" checkbox.
    • Click OK to add the Web Service Extension and close the dialog 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 2009-11-05, 16:16. [Edit]

23 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.

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 !!!

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

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.

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.

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.

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

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

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?

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...

still not found. any suggestions?

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

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

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

can someone tell me why the moveabletype installation instructions are written as if users have a webserver??.. Most users have a hosted solution somewhere and they dont have the luxury of having console access to an IIS or Unix webserver. I seriously think these guides should be written with the expectation that MT users have hosted sites in places like Godaddy.com, network solutions.com etc.. A lot of interested clients are getting discouraged by the level of difficulty involved in setting up this application on popular websites like Godaddy.co etc... Please make it easier for everyone..

Hello all, I am new to this stuff and I just tried to install the Movable Type as was described above. However, I stopped because I did not see the "DBD-mysql" in the Pearl Package Manager. I found some instruction on "http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql/INSTALL.pod" to do the following:

ppm install DBI install DBD-mysql

but, where should I must to type it? any idea?

My configuration is: IIS v.5.1 Windows pro xp MySQL server 5.1

Thanks for your feed back!

oger

I was able to install DBD-mysql from the command-line. I succeeded with both 32 bit and 64 bit versions of ActivePerl 5.10.1 build 1006.

ppm rep add PPM2 http://ppm.activestate.com/PPMPackages/5.6plus/

Above command returns a "repo" number n which you need in the following command:

ppm rep n ppm install DBD-mysql

Or well, it looks like it installed. I still doesn't have Perl working. But my current problem might not be related to DBD-mysql. More likely a manner of configuration and permissions on the web-server I think...

Argh, "ppm rep n ppm install DBD-mysql" needs to be on two lines:

ppm rep n

ppm install DBD-mysql

/Stig

Ahh, I finally succeeded the install on my x64 Windows system. Besides the DBD-mysql problem, I had to allow 'Perl CGI Extensions' in the 'Web Service Extensions' configuration on IIS (Thanks to blankbaby for his tip above) and the above list of privileges needed by the mt_user DB-user was missing type INDEX ! So after first MT setup attempt I had to clean the database and delete configuration file, and then restart the setup.

I am completely lost on these insturctions.

I have creating handler mappings for *.pl using isapi but I still cannot execute the mt.cgi script

Does anyone have up to date on how-to install on Web Server 2008?

Thanks

ok -- now where the heck do I fin the following? DBI (version >= 1.21) Your server has DBI installed (version 1.607).

DBD::mysql Your server does not have DBD::mysql installed, or DBD::mysql requires another module that is not installed. DBI and DBD::mysql are required if you want to use the MySQL database backend. Please consult the installation instructions for help in installing DBD::mysql.

DBD::Pg (version >= 1.32) Either your server does not have DBD::Pg installed, the version that is installed is too old, or DBD::Pg requires another module that is not installed. DBI and DBD::Pg are required if you want to use the PostgreSQL database backend. Please consult the installation instructions for help in installing DBD::Pg.

SOAP::Lite (version >= 0.5) Either your server does not have SOAP::Lite installed, the version that is installed is too old, or SOAP::Lite requires another module that is not installed. SOAP::Lite is optional; It is needed if you wish to use the MT XML-RPC server implementation. Please consult the installation instructions for help in installing SOAP::Lite.

Image::Magick Your server does not have Image::Magick installed, or Image::Magick requires another module that is not installed. Image::Magick is optional; It is needed if you would like to be able to create thumbnails of uploaded images. Please consult the installation instructions for help in installing Image::Magick.

IPC::Run Your server does not have IPC::Run installed, or IPC::Run requires another module that is not installed. This module is needed if you would like to be able to use NetPBM as the image driver for MT. Please consult the installation instructions for help in installing IPC::Run.

Crypt::DSA Your server does not have Crypt::DSA installed, or Crypt::DSA requires another module that is not installed. Crypt::DSA is optional; if it is installed, comment registration sign-ins will be accelerated. Please consult the installation instructions for help in installing Crypt::DSA.

XML::Atom Your server does not have XML::Atom installed, or XML::Atom requires another module that is not installed. XML::Atom is required in order to use the Atom API. Please consult the installation instructions for help in installing XML::Atom.

Cache::Memcached Your server does not have Cache::Memcached installed, or Cache::Memcached requires another module that is not installed. Cache::Memcached and memcached server/daemon is required in order to use memcached as caching mechanism used by Movable Type. Please consult the installation instructions for help in installing Cache::Memcached.

XML::SAX Your server does not have XML::SAX installed, or XML::SAX requires another module that is not installed. XML::SAX and/or its dependencies is required in order to restore. Please consult the installation instructions for help in installing XML::SAX.

Where do I locate all these componenets? I never read anything in the instructions about any of this stuff?

I am trying to get rid of WordPressMU do to way to many issues

Hey everyone,

So after a week, and countless hours troubleshooting/documenting I have successfully Installed Movable type 4 on Windows Server 2008, using IIS7.

If anyone needs a tutorial on how to get up and running on a Windows Dedicated Server environment, I created a very detailed tutorial with screenshots. Check it out and feel free to contact me if you run into trouble!

http://iainlbc.com/2010/01/install-movable-type-4-on-windows-server-2008-with-iis7-php-perl-cgi-mysql/

Enjoy,

Iain Wright

Leave a note

Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.