Can't find mt-config.cgi

When the Composing Stick was being set up I encountered a problem with my web host's security configuration. When I tried to log on to Movable Type I would get the error

Got an error: Error opening file '/mt-config.cgi': No such file or directory

This was easily solved by editing lib/bootstrap.pm

sub BEGIN {
    $ENV{'MT_HOME'} = '/home/username/public_html/mt';
    my ($dir, $orig_dir);
    require File::Spec;
    if (!($dir = $ENV{MT_HOME})) {

Line 2 was added with the full path to Movable Type and the system started working

Recently I went to configure Microsoft Live Writer and during the configuration process I got the error again. A quick check showed that the web site was functioning correctly, so why not Live Writer?

The answer, it turns out, is very simple. Live Writer communicates with Movable Type through mt-xmlrpc.cgi, this does not use bootstrap.pm so the code needs to added to mt-xmlrpc.cgi as well

sub BEGIN {
    $ENV{'MT_HOME'} = '/home/username/public_html/mt';
    require File::Spec;
    if (!($dir = $ENV{MT_HOME})) {

Once this has been done the Live Writer is able to link up and you can post to your blog

1 Comment

ooohhhh you saved my life! thank you! thank you!

Leave a comment

Gallery

Recent Entries

  • Creating a Clickable Header in Movable Type

    A question that comes up every so often on the Movable Type message boards is how to create a clickable banner that links back to...

  • So You Want To Write A Movable Type Plugin?

    One of the great things about Movable Type is it's flexibility. Behind the scenes is a powerful system that can be used to expand the...

  • Learning to Share

    Today I have added functionality to this site and to Darren Kenny Paralympic Cyclist that makes it easier for visitors to share the love and...

  • What has been happening

    The last week or so I have spent time on upgrading by brother's site to run on Movable Type 4.2. The previous site was still...

  • Almost Recent Entries

    There are some things about blogging that just doesn't make sense, take recent entries as an example. On the front page you have maybe your...

Close