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

  • Now on YouTube

    Once in while, when answering questions on the Movable Type IRC channel or the support forums I find it easier to show rather than tell,...

  • Using jQuery with Movable Type

    Introduction jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development Today...

  • HashTag now on GitHub

    I have moved the source code for HashTag from my private SVN over to GitHub. If you want to contribute any changes you can find...

  • HashTag 2.5 Released

    Version 2.5 of my HashTag plugin has now been released. See the Hash Tag Plugin project page for more information. The major change in 2.5...

  • Hash Tag Beta 2.5 Now With Scheduled Post Support

    I have now added support for scheduled publishing in my HashTag plugin. It is currently a beta and can be downloaded from this link HashTag...

Close