Wednesday, September 11, 2002

Movable Type [mt-check.cgi]

SYSTEM INFORMATION:

Current working directory: c:/inetpub/wwwroot/mt
Operating system: MSWin32
Perl version: 5.6.1
(Probably) Running under cgiwrap or suexec

CHECKING FOR REQUIRED MODULES:

HTML::Template (version >= 2)...
Either your server does not have HTML::Template installed, or
the version that is installed is too old. HTML::Template is
required for all Movable Type application functionality. Please
consult the installation instructions for help in installing
HTML::Template.

Image::Size...
Your server does not have Image::Size installed. Image::Size is
required for file uploads (to determine the size of uploaded
images in many different formats). Please consult the
installation instructions for help in installing Image::Size.

File::Spec (version >= 0.8)...
Your server has File::Spec installed.

CGI::Cookie...
Your server has CGI::Cookie installed.


CHECKING FOR DATA STORAGE MODULES:

The following modules are used for Movable Type data storage. You must
use either the Berkeley DB or MySQL database backend. In order to run
Movable Type, your server needs to have at least one of these modules
installed.

DB_File...
Your server does not have DB_File installed. DB_File is
required if you want to use the Berkeley DB/DB_File backend.
Please consult the installation instructions for help in
installing DB_File.

DBD::mysql...
Your server does not have DBD::mysql 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.


CHECKING FOR OPTIONAL MODULES:

The following modules are optional; if your server does not have these
modules installed, you only need to install them if you require the
functionality that the module provides.

LWP::UserAgent...
Your server has LWP::UserAgent installed.

SOAP::Lite...
Your server has SOAP::Lite installed.

File::Temp...
Your server has File::Temp installed.

Image::Magick...
Your server does not have Image::Magick 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.



To be honest, I don't know too much on Perl and MySQL. However, to make the best weblog system work - Movable Type, I am trying to install it from scretch. I believe I am not alone to install MT to Windows XP machines - although I believe there will not be too many people doing so - so I'd like to record the steps for other's reference. Moreover, it is good for me if I need to rebuild the server again.
Environment
Windows XP
Inetnet Information Server (IIS)

Install Perl on Windows XP

  • Download ActivePerl for Windows XP from ActiveState. At the time I am downloading, the version is ActivePerl 5.6.1 build 633.
  • After registering my user information, I choosed WIndows MSI package, which is 8.31M in size.
  • It took me about 2 minutes and 51 seconds to download - thanks to the broadband provider - China Great Wall Broadband Corp[CHinese].
  • Install the MSI package. There is no any problem during the installation. I accepted all the defaul settings expect changing the default location from c:\Perl to c:\Program Files\Perl. I believe it is always good to follow the convension instead of seeking for a place in root directory of C:\. This makes the disk hard to manage.


Download MT source code

  • Download the MT source code from http://www.movabletype.org/download.shtml. It is only 299K in size and took me 5 seconds to get it from the other side of the Pacific.
  • Having MT-2.21.tar.gz on my disk, I met the first problem. I rely heavily on Windows XP to extract all .ZIP files and don't use WinZip any more, but it seems I need to get my Winzip back. OK. Download a trial version from www.winzip.com and continue.
  • Now all the source code is located in C:\Inetpub\Wwwroot\Mt folder, which can be accessed via http://home.wangjianshuo.com/mt. I am very serious about naming convensions. I cannot bear to put all the files directly into the root folder.


Configure IIS for Perl and perl script with .CGI extension to work

  • I know it is wired for more green hand to have CGI run on Windows computer. At this time, if anyone access http://home.wangjianshuo.com/mt/mt.cgi, it will prompt to download the file instead of see the result. I configured IIS to recognize .CGI extension just as it recognize .ASP or .SHTML.
  • In Inetmgr.exe, right click MT folder and select Properties. Click Create button in Application Settings area on Directory tab. Now we have created a seperate application.
  • Click Configure and check the program to parse .pl files. It is C:\program files\perl\bin\perl.exe "%s" %s for my server.
  • Note: The following changes can be changed on website level, no applicaiton level. Click Add and enter the same parsing program (C:\program files\perl\bin\perl.exe "%s" %s for my case) and enter .cgi to Extension text box. Click OK.


Configure MT to work on my site

  • Open MT.cfg,

Tuesday, September 10, 2002

With the

Monday, September 09, 2002

Recenlty, I begin to be aware of a new trends in Internet - the weblog or blog. I saw a lot of interesting web log such as Nick Finck's Digital Web Magzine. I will also want to have a try. But as I am too busy with my job, I cannot keep the post as frequent as daily. But I will have a try. Good luck to me. :-)