Movable Type: March 2008 Archives

2008 Mar 5
I fell like posting a new blog post yesterday but when i tried logging in, i got this message:

Got an error: Error opening file '/mt-config.cgi': No such file or directory
I was stunned, like being hit by Skeleton king's hammer. I haven't done anything to the installation and why this incident has happened? I begin checking the server hoping to find any problems, but there were none. I tried the forums and the documentation but there were no instance of the same problem recorded lately. Lastly i tried contacting my host to see if they have done something to the server. Well the only solution they have is to edit my cgi scripts manually and add a $ENV{'MT_HOME'} tag in it.

Here's is what i did before adding the lines above.
1. Check if your mt-config.cgi is really missing or what. if its there and you can edit it fine then it shouldn't be the problem. if its not there then edit the file mt-config.cgi.original, fill in the necessary fields and save it as mt-config.cgi.

2. If the error persists, check the file security of your mt-config.cgi. It should be 755. if its not, issue a CHMOD command.

3. If at this point the error is still there. Edit your mt.cgi script and the following line just below the use strict; line. Please note that this depends upon the location of your movable type files. In my case its at /cgi-bin/mt4 your might be different.

BEGIN { $ENV{'MT_HOME'} = '/home/username/public_html/cgi-bin/mt4'; }

your mt.cgi should look like:

use strict;
BEGIN { $ENV{'MT_HOME'} = '/home/username/public_html/cgi-bin/mt4'; }
use lib $ENV{MT_HOME} ? "$ENV{MT_HOME}/lib" : 'lib';
use MT::Bootstrap App => 'MT::App::CMS';

4. Do the same with your mt-search.cgi. Insert the line above just below the use strict; line

UPDATE:
There is a much easier fix to this error. Instead of manually editing your .cgi files, edit the Bootstrap.pm located at

{MT HOME}/lib/MT/bootstrap.pm

Insert this line right after sub BEGIN {

$ENV{'MT_HOME'} = '/home/userfolder/public_html/cgi-bin/mt';

Edit the line above to match to your settings. 

About this Archive

This page is a archive of entries in the Movable Type category from March 2008.

Movable Type: February 2008 is the previous archive.

Movable Type: August 2008 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Today

  • tildemark tweeted, "@jjdoblados SmartBro wont work with linux because the installer is an exe file. plus SMARTBRO sucks my dialup connection is even faster."
  • tildemark tweeted, "i think i accidentally drank 2 dosage of my medication. now, im feeling dizzy. is there a way i cound unswallow it?"

Monday

  • tildemark tweeted, "I'm feeling tired. i hope the clock will run a bit faster this time."
  • tildemark tweeted, "got sick for about 3 days. ended up finishing nwn2."

Thursday

  • tildemark tweeted, "im planning to move again, but i dont know where."

Sunday

  • tildemark tweeted, "I drank 3 sachets of instant coffee, ang now i cant sleep even if my eyes are sleepy? I can hear voices.wtf"

Friday

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."