Installing MT onto XP from scratch (including PERL and

Installing MT onto XP from scratch (including PERL and Apache).

Forgive the length of this message, here is a start-to-finish account, including getting past the DB_FILE error.

First I had to get perl and apache, searching around perl.org I found a set of different Perl possibilities:
http://www.cpan.org/ports/index.html#win32

I selected the following because it contained a complete installation of the latest perl and apache with modules.

Perl/Apache/mod_perl/mod_ssl/php for Win32.
Perl-5.8-win32-bin.exe, consisting of Perl-5.8.0 and Apache 2.0.43

ftp://theoryx5.uwinnipeg.ca/pub/other/
I grabbed the whole directory: Perl-5.8-win32-bin
and then followed the joining instructions to create a 37MB file

this has a Perl, Apache2 and lots of modules

Running Perl-5.8-win32-bin.exe unzippled into three directories, Perl, Apache2, and Readme's

following the readme i put perl and apache2 directly under c:\

then I ran the perl config accepting all defaults:
C:\Perl\bin> perl configure.pl

Add the location of the perl bin/ and the Apache2 bin/
directory to your PATH.
(append ";C:\perl\bin;c:\apache2\bin" to PATH

set the following environment variables (these are under control panel: system: advanced: environmental variables)
HOME=C:\
TERM=dumb
NAME=your_name_without_spaces

Apache didnt't behave itself from the command line (as listed in the readme) but in the Apache2/bin directory there is a file: ApacheMonitor.exe which allows you to turn on apache on and off as a service (and defaults it appears to setting apache to run automatically; you can change this in Services)

Then i edited the apache config file:
C:\Apache2\conf\httpd.conf

(I had to use wordpad first to open some of these 'text' files, add a space somewhere and save to take care of the little squares that showed up on notepad)


I made sure the following were set:
ServerRoot "C:/Apache2"
DocumentRoot "C:/Apache2/htdocs"

Then I could point my browswer to
http://localhost/

and see that apache was running.

Now to MT

I unzipped/tarred it to
MT-2.63-full-lib
somewhere

then I made the following directories:
C:\Apache2\htdocs\mt-static
C:\Apache2\htdocs\blog
C:\Apache2\cgi-bin\db

then copied from MT-2.63-full-lib
styles.css
/docs
/images

into C:\Apache2\htdocs\mt-static

the rest I copied into
C:\Apache2\cgi-bin\

Then I edited C:\Apache2\cgi-bin\mt.cfg
with the following lines:

CGIPath http://localhost/cgi-bin/
DataSource C:\Apache2\cgi-bin\db
StaticWebPath /mt-static/

[I suggest rebooting at this point]

Now for the tricky stuff. I tried to access
http://localhost/cgi-bin/mt-check.cgi
as directed, and got a horrible DB_FILE not detected

(thanks to some webpages) it turns out that you can run this program from the command line:
c:\apache2\cgi-bin perl mt-check.cgi

and it finds DB_FILE

so then I ran
c:\apache2\cgi-bin perl mt-load.cgi
and that worked too

but still I couldn't get
http://localhost/cgi-bin/mt-check.cgi
or
http://localhost/cgi-bin/mt.cgi
to work from the browser. Still the same DB_FILE problem

Finally I REBOOTED, it all worked!
enter Melody and Nelson as password to get in, then change these

I'm too tired to figure out if I had rebooted where I suggest above whether it would work.

Anyway, I hope this helps, let me know if i missed something.
Posted by Jom at 2003-04-11 14:02:39
Commented on
MovableType Successfully Installed on Windows XP