Print service provided by iDogiCat: http://www.idogicat.com/
home logo





Home > IT > System Administration > Install Movable Type Blog in Windows

Install Movable Type Blog in Windows

iDog

I installed the Weblog called 'Movable Type', which is implemented in Perl.

I configured it to use Berkeley DB as the database. DB_File module of Perl is needed to be installed.

Installation of DB_File

Windows

Suppose Active Perl has already been installed.

  • launch command prompt
  • exec 'ppm'
  • at ppm prompt, type 'install DB_File'

Cygwin/Unix/Linux

Suppose Perl has already installed.

  • download Berkeley DB source distribution, and extract the files into a directory
  • change dir to '../dist/configure', and type 'make'. This builds the Berkeley DB lib.
  • type 'make install', this installs Berkeley DB lib to
    /usr/local/BerkeleyDBx.xx
  • make a soft link to the above dir, called
    BerkeleyDB
  • start 'cpan'
  • at cpan prompt, type 'install DB_File'

Install Weblog

  • make a dir in cgi-bin called 'weblog'
  • extract all files to the above dir
  • make a dir outside cgi-bin but in web-accessable area, called 'weblog' which holds static files
  • move 'images', 'docs' and 'styles.css' from cgi-bin/weblog to <site-root>/weblog.
  • modify config file: mt.cfg
  • modify CGI scripts
perl -pi~ -e 's;#!/usr/bin/perl;#!e:/perl/bin/perl;' *.cgi
rm -f *~
  • make a dir for database: f:/data/mysite/weblog/db
  • change mode of cgi files to '755'

Start Weblog

  • start 'http://<hostname>/cgi-bin/weblog/mt-check.cgi' to verify the installation and configuration
  • start 'http://<hostname>/cgi-bin/weblog/mt-load.cgi' to init
  • delete mt-load.cgi
  • start weblog for the first time at http://<hostname>/cgi-bin/weblog/mt.cgi, using 'Melody/Nelson' to login
  • click 'Edit your profile', modify username and password