Movable Type on Localhost

How to setup Movable Type Locally with WAMP!

Though the aim is to have Movable Type running on your local computer, but then we will have to go through two important (may be more) installations, namely an Apache/PHP/mySQL server and Perl. Let me tell you that this is more of my own experience, I am sure you can use your preferred installations though adhearing to the necessary requisites. This are the downloads that you will need;

Wamp5, at the time of writing this article was at version 1.1. The installation was straight forward, simple, quick and very easy. Just take care that it will not clash with an already running web server like IIS, simply stop your current web server during the installation. Though it should be rather similar in most windows box, I am refering to Windows 2K/XP installation in this article.
WAMP5 is a web server for your windows box, which installs the following applications - Apache, PHP, MySQL database, PHPmyadmin and SQLitemanager on your computer. The Tray Icon that it have as its service manager is also easy to customize to suit your needs, just edit the “wampserver.ini” using a text editor to suit your style and needs. I have specifically added a stop/start IIS and stop/start ColdFusion so that I can switch between Wamp5 and IIS/Cold Fusion. If you prefer other installation other than Wamp5, please go ahead. The Wamp5 installation was rather straight forward and easy, so let us move on to the next i.e Perl and the Database Module, a bit more difficult one, well, I mean comparing to Wamp5 intallation.

After you download Active Perl, extract the content to any location of your choice. It will extract a folder and a batch file. Now, concentrate on the batch file and leave the folder there. You would be using the DOS Command Prompt here to do the installation, double clicking on the batch file will not yield nothing. I think I better put down the Active Perl and our database module installation in steps;

  1. Launch the batch installer through command prompt.
  2. Follow the installation steps which are straight foward till now, I would rather prefer to have “Y” to most of the questions asked during the installation. It will try to install on “c:\perl”, it is upto you to choose where to install the same. You are free to install it anywhere as that makes little difference.
  3. Remember, our main aim is to install Movable Type, so let us tinker a bit with some Perl modules;
    (a) If you wish to use the Berkeley Database, go to your command prompt and type “PPM” without the quotes. Ok, if you get the PPM > prompt then the environment variable have been successful registered with the path else it has not, so you may wish to log off and login to Windows or Re-start. Once you path is registered in the environment variables, try doing PPM again in the command prompt. Type “Install DB_File” without the quotes and ENTER. Now you can type “Quit” and say bye bye to the command prompt.
    (b) If you wish to use MySQL. Go to DOS Command Prompt and type “PPM”. Now type “Install DBI” > ENTER. Once that install is done, type “Install DBD-mysql” > ENTER. You should be done by now.

Now, let us move ahead with the Movable Type Modification and Installation.

  1. Now that all the pre-requisites are taken care of, let us install Movable Type. Follow the Installation Manual of Movable Type to copy the files to your desired location.
  2. Before running mt-check, mt-load, we will have to modify some setting of all our cgi files, well we have to modify all cgi files that you get as commonly they will point to perl like “#!/usr/bin/perl” but we do not have that convention in windows. The change is just on the first line of your CGI files, so it shoould be easy. Change any reference to perl in your cgi files to your current location. Keep in mind if you have not enabled environment variable path during perl installation, you will have to give a full path like “c:\perl\bin\perl.exe” but if you have given the path in the environment variable, you can simply do “perl.exe” so most of our cgi files with have the first line as “#!perl.exe -w”, without the quotes though.
  3. If you are using your default installation, the “mt-db-pass.cgi” should be left blank.
  4. Add your MT Database to MySQL though PHPmyadmin or through the MySQL command console.
  5. I think, that’s it. Now do your mt-check.cgi, then mt-load.cgi. They should likely look like http://localhost/cgi-bin/mt/mt-check.cgi and http://localhost/cgi-bin/mt/mt-load.cgi respectively.
    Launch and enjoy Movable Type on your own machine. I noticed that I cannot install both MT 2.x and MT 3.0 version on my online Linux server but locally, both are installed and working properly.

Update: Here is a PDF of Running Movable Type Locally for Mac OS X.


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Thu, Jul 22nd, 2004 at 12:14 am
Categorized under Technology

Prev Article: Flying Day with Flash

Next Article: Flash Documentation Changelog

Archives: Visit the Archives for more articles.

Comments Post Yours

There are one response so far. You can follow any responses to this entry through the RSS feed. You can skip to the end and leave a response. Pinging is currently not allowed.

  1. But why I would setup MT on my localhost? Is there any specific reason.

    Now I understand what is WAMPServer, I was more familiar with LAMP and MP only :)

    cheers,
    Abdul

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

Fedora 10 Released

Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most up-to-date free and open source software ...28th Nov, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • My Special Job My Special Job is a place where you can look for your weird necessities, strangely superb employees, when your need are more of those hackers, geeks, and ultimate rockstars in the Internet Technology.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • Forum Oinam’s technical discussion forum where developers and designers can discuss all technical topics.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 949 Articles and 6,472 comments, contained within 22 categories and 1,497 tags.