Not a developer? Go to MovableType.com

Documentation

Windows Server Installation Instructions

Internet Information Services (IIS) 7.0 is a standard attached webserver function in Windows Server 2008. In this section we will describe how to use Movable Type in the IIS environment. Please note that using Movable Type with pre-IIS versions will require different settings on account of the different OS. We recommend the following directory construction, as outlined in Preparing for New Installation.

These instructions assume you are using the MySQL database server. We also have information on using SQL Server with Movable Type Advanced.

New Installation Steps

  1. Install Perl
  2. Decompress and Amend Files
  3. Create Folders
  4. Set Access Permissions
  5. Move Files
  6. Register Virtual Directory
  7. Settings For Running CGI Script
  8. Register Default Content Pages
  9. Confirmation and Access Control 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 GUI Tools

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

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.

Installing Perl

Make settings that allow you to use Perl in Windows. Use your web browser to connect to connect to http://www.activestate.com/activeperl 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.

You also need to install CGI for IIS

  1. Run “Server Manager” under Admin Tools.
  2. Choose “Roles Services”
  3. Install both “CGI” and “ISAPI” Extensions under “Application Development”

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.

  1. Select the package named DBI and chose Install DBI from the Action menu.
  2. Select the package named DBD-mysql and chose Install DBD-mysql from the Action menu.
  3. Choose Run Marked Actions from the File menu to install the two packages.

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.

Create a Folder

Use Windows Explorer to create the directoris for Movable Type.

Application Directory

  • C:\Inetpub\wwwroot\mt
    • http://www.example.com/mt/
    • Permissions : “Read & Execute”, “List folder contents”, “Read”

Static Directory

  • C:\Inetpub\wwwroot\mt-static

    • http://www.example.com/mt-static
    • Permissions : “List folder contents”, “Read”
  • C:\Inetpub\wwwroot\mt-static\support

    • http://www.example.com/mt-static/support
    • Permissions : “Modify”, “Read & Execute”, “List folder contents”, “Read”, “Write”

Website Directory

  • C:\Inetpub\wwwroot\
    • http://www.example.com/
    • Permissions : “Modify”, “Read & Execute”, “List folder contents”, “Read”, “Write”

Access Permissions and Settings

Follow these steps to set access permissions for the folder you created:

  1. Right Click the folders to selcet “Properties” and choose the “Security” tab.
  2. Allow permissions to internet guest accounts (IUSR_).

Moving Files

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. Use Explorer to Move the Decompressed Package like this:

  • Move all the files in the mt-static directory in the extracted package to the static directory you created.
  • Move all other files not located in the mt-static directory to the application directory you created.

Registering Virtual Directory

Set virtual directory to access the application directory, static directory and website directory from the web browser.

  1. Run “Internet Information Service (IIS) Manager” under Admin Tools.
  2. Choose “Default Web Site” under “Sites.”
  3. Choose “Add Virtual Directory” from the right click menu and run the virtual directory wizard.
  4. For “Alias”, enter the name (mt, for example) you use to access from the web browser. Enter the physical path ( C:\inetpub\wwwroot\mt, for example) for the Alias folder and click the “OK” button.

Settings for Running CGI Script

Please see the updated documentation for running FastCGI and Microsoft IIS

  1. Run “Internet Information Service (IIS) Manager” from “Admin Tools.”
  2. Choose “Default Web Site” from “Sites.”
  3. Choose the virtual directory for the folder that installed Movable Type.
  4. Choose “Handler Mapping” under “Features View” and click “Open Feature” in the right click menu.
  5. Click “Add Script Map…” in the Actions menu.
  6. Make the following settings to permit running CGI script.
    • Request path: *.cgi
    • Executable: C:\Perl\bin\perl.exe “%s” %s
    • Name: CGIPerl

Registering Default Content Page

In Movable Type, index.html is a default content page. Follow these steps to register this page.

  1. Run “Internet Information Service (IIS) Manager” from “Admin Tools.”
  2. Choose “Default Web Site” from “Sites.”
  3. Choose the virtual directory for the folder that installed Movable Type.
  4. Choose “Default Document” under “Features View” and click “Open Feature” in the right click menu.
  5. Click “Add…” in the Operations menu. Type “index.html” and click the “OK” button.

Authentication and Access Control Settings

Make the following settings for access to Movable Type’s admin screen and blog pages:

  1. Run “Internet Information Service (IIS) Manager” from “Admin Tools.”
  2. Choose “Default Web Site” from “Sites.”
  3. Choose the virtual directory for the folder that installed Movable Type.
  4. Choose “Authentication” under “Features View” and click “Open Feature” in the right click menu.
  5. Make sure “Anonymous Authentication” is activated and choose “Anonymous Authentication.” Click “Edit…” in the right click menu and make sure the username is the same as the internet guest account.
Back

24 Comments

blankbaby.myopenid.com on September 21, 2007, 11:50 a.m. Reply

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 on October 24, 2007, 2:18 p.m. Reply

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 on December 20, 2007, 10:50 a.m. Reply

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 on December 27, 2007, 4:40 p.m. Reply

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 on December 27, 2007, 4:58 p.m. Reply

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 on December 28, 2007, 3:09 p.m. Reply

and the mt_user also needs the INDEX privilege

berahtnet.myopenid.com on December 31, 2007, 11:23 a.m. Reply

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

lewisbass on February 16, 2008, 4:18 p.m. Reply

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 on February 29, 2008, 1:47 p.m. Reply

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 on March 4, 2008, 5:00 p.m. Reply

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 on March 5, 2008, 4:59 p.m. Reply

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 on March 11, 2008, 8:49 a.m. Reply

still not found. any suggestions?

Dave on March 23, 2008, 11:27 p.m. Reply

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 on March 25, 2008, 2:32 p.m. Reply

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 on March 28, 2008, 10:54 a.m. Reply

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

zer on June 27, 2008, 6:34 p.m. Reply

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

ogeroner on September 10, 2009, 9:02 a.m. Reply

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

Stig on September 27, 2009, 4:12 a.m. Reply

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…

Stig on September 27, 2009, 4:15 a.m. Reply

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

ppm rep n

ppm install DBD-mysql

/Stig

Stig on September 27, 2009, 6:03 a.m. Reply

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.

iis7usr on November 3, 2009, 2:50 p.m. Reply

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

iis7usr on November 3, 2009, 5:40 p.m. Reply

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

iain wright on January 20, 2010, 5:54 p.m. Reply

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

العاب بنات on August 17, 2012, 4:34 a.m. Reply

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.