IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Mt-config.cgi Missing?
Ito
post Nov 21 2007, 04:16 AM
Post #17





Group: Members
Posts: 11
Joined: 20-November 07
Member No.: 49,632



i tried, but it gave me 500 internal error. sad.gif

but i do know it managed to connect to the database.
Go to the top of the page
 
+Quote Post
PRO IT Service
post Nov 21 2007, 04:28 AM
Post #18





Group: Members
Posts: 422
Joined: 20-August 06
From: Romania, E.U.
Member No.: 36,509



Guys, you need to edit the file mt-config.cgi-original

1) Save it as mt-config.cgi


2) Edit the CGIPath line:

QUOTE


Make sure you keep the "/" listed at the end of the URL pattern


3) Edit the StaticWebPath line:

QUOTE


Most people do a mistake here by placing a "/" after the static folder! Don't do that! Just follow the model


4) Assuming you are going to run the web site backed on a mysql database, then:


4.1) Delete:

QUOTE
##### POSTGRESQL #####
ObjectDriver DBI::postgres
Database DATABASE_NAME
DBUser DATABASE_USERNAME
DBPassword DATABASE_PASSWORD
DBHost localhost

##### SQLITE #####
ObjectDriver DBI::sqlite
Database /path/to/sqlite/database/file



4.2) Edit:

QUOTE
##### MYSQL #####
ObjectDriver DBI::mysql
Database DATABASE_NAME
DBUser DATABASE_USERNAME
DBPassword DATABASE_PASSWORD
DBHost localhost


Basically replace: DATABASE_NAME, DATABASE_USERNAME, DATABASE_PASSWORD and localhost with the right values of your database (sometimes you will leave localhost the same, if your database is hosted on your 'localhost', meaning on the same place as the rest of the site files. you will however get that exact information when creating a new mysql database)


5) Save and upload your mt-config.cgi in ASCII mode to the same folder where you've uploaded the other Movable Type .CGI files so basically at the location you've mentioned as CGIPath


6) Make sure this file permission is set to 755 or chmod it to 755

That should make your life much easier smile.gif

Enjoy


--------------------
Would you like to check how Movable Type v4.x is taking shape? Go and try it out live yourself!
Always the latest version! Currently Movable Type v4.23 Free Demo - http://www.movabletype4.org/

Mihai Bocsaru, MovableType Consultant http://www.pro-it-service.com/

Professional Consultancy and Advice on Setting Up Movable Type Driven Web site Applications

Solutions for: Movable Type Installation, Movable Type Upgrade, Coding Movable Type Templates, Movable Type Extra Facilities, Movable Type Search Engine Marketing, Movable Type Custom Programming, Optimizing Movable Type Templates to Reduce Server Usage and Rebuild Times, Professional Movable Type Hosting
Go to the top of the page
 
+Quote Post
drritalin
post Nov 21 2007, 10:54 PM
Post #19





Group: Members
Posts: 44
Joined: 14-January 05
Member No.: 29,237



I have the same problem.
I am sure I did all things you said "PRO IT Service" but the problem exists.
Any Help?

UPDATE:
As Moji said: I used the method described in the following link and now it seems to be working fine:
http://orangescale.net/blognotes/movable-t...bject-is-empty/

This post has been edited by drritalin: Nov 21 2007, 11:10 PM


--------------------
Go to the top of the page
 
+Quote Post
rmdelatorre
post Nov 23 2007, 02:33 PM
Post #20





Group: Members
Posts: 15
Joined: 1-May 04
Member No.: 24,070



[quote name='drritalin' date='Nov 22 2007, 06:54 AM' post='257513']
I have the same problem.
I am sure I did all things you said "PRO IT Service" but the problem exists.
Any Help?

I also did all the things above, and no solution.
Go to the top of the page
 
+Quote Post
PRO IT Service
post Nov 23 2007, 02:39 PM
Post #21





Group: Members
Posts: 422
Joined: 20-August 06
From: Romania, E.U.
Member No.: 36,509



it would actually be great if you do follow the exact steps

sometimes one things sHe did it right but a little detail could be the cause of the problem smile.gif

anyhow, feel free to send me access to your mt admin and ftp and i will be glad to have a look


--------------------
Would you like to check how Movable Type v4.x is taking shape? Go and try it out live yourself!
Always the latest version! Currently Movable Type v4.23 Free Demo - http://www.movabletype4.org/

Mihai Bocsaru, MovableType Consultant http://www.pro-it-service.com/

Professional Consultancy and Advice on Setting Up Movable Type Driven Web site Applications

Solutions for: Movable Type Installation, Movable Type Upgrade, Coding Movable Type Templates, Movable Type Extra Facilities, Movable Type Search Engine Marketing, Movable Type Custom Programming, Optimizing Movable Type Templates to Reduce Server Usage and Rebuild Times, Professional Movable Type Hosting
Go to the top of the page
 
+Quote Post
rmdelatorre
post Nov 23 2007, 02:52 PM
Post #22





Group: Members
Posts: 15
Joined: 1-May 04
Member No.: 24,070



QUOTE (PRO IT Service @ Nov 23 2007, 10:39 PM) *
it would actually be great if you do follow the exact steps

sometimes one things sHe did it right but a little detail could be the cause of the problem smile.gif

anyhow, feel free to send me access to your mt admin and ftp and i will be glad to have a look


Here my steps...

1. Downloaded MT 4.01. Uploaded it to cgi-bin/mt folder in my website. Permissions ok. Ascii mode ok. I have done these steps few times before, so I shouldn't have got it wrong now.
2. Uploaded mt-static to / folder.
3. Made changes to mt-config.cgi accordingly.
4. Try to access mt.cgi, and I get an error:

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

5. Search foruns. Find this thread.
6. Follow Shelley's prior suggestion. Add ", Config => '/home/trpz/public_html/cgi-bin/mt/mt-config.cgi'" to all cgi files, with the exception of mt-config.cgi (that I know is not a real cgi file...).
7. Try to access mt.cgi, and I get a new error:

Got an error: Base class package "Data::ObjectDriver::BaseObject" is empty.
(Perhaps you need to 'use' the module which defines that package first.)
at lib/MT/Object.pm line 10
BEGIN failed--compilation aborted at lib/MT/Object.pm line 10.
Compilation failed in require at (eval 13) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at lib/MT/Config.pm line 9.
Compilation failed in require at lib/MT/ConfigMgr.pm line 256.

8. Search. Find this post:

http://orangescale.net/blognotes/movable-t...bject-is-empty/

9. Follow suggestion and add "BEGIN { $ENV{'MT_HOME'} = '/home/trpz/public-html/cgi-bin/mt/'; }" to all cgis (in addition to what I had changed before).
10. Try to access mt.cgi. Get access. Configure and post some entries.

However, I cannot post comments. I get a 500 error.
Go to the top of the page
 
+Quote Post
rmdelatorre
post Nov 23 2007, 03:05 PM
Post #23





Group: Members
Posts: 15
Joined: 1-May 04
Member No.: 24,070



By the way, from the other posts and a little bit of research, this seems to be a widespread problem that has been going on for a while now –– And Six Apart is paying no attention at all to this. No information whatsoever about what may be doing this.
Go to the top of the page
 
+Quote Post
liquidcourage
post Nov 23 2007, 04:18 PM
Post #24





Group: Members
Posts: 41
Joined: 26-January 05
Member No.: 29,478



I get the same error. I really want to use MT too! It looks like I'm going to be using Wordpress....
Go to the top of the page
 
+Quote Post
rmdelatorre
post Nov 24 2007, 06:47 AM
Post #25





Group: Members
Posts: 15
Joined: 1-May 04
Member No.: 24,070



QUOTE (liquidcourage @ Nov 24 2007, 12:18 AM) *
I get the same error. I really want to use MT too! It looks like I'm going to be using Wordpress....


Nothing changed since yesterday, but my hosting company said I was using too much processor resources from the server, and my account was suspended. They say they will be charging me the next time it happens, and that I should "reconsider using the perl script I was using". They gave me the log file, that is like this, but with ten times as many lines.

trpz 13540 11.9 55.1 4931260 2233488 ? D 20:57 0:23 /usr/bin/perl -w mt.cgi
trpz 13540 14.1 55.1 4931260 2233488 ? D 20:57 0:23 /usr/bin/perl -w mt.cgi
trpz 14488 2.9 0.5 50752 22964 ? S 20:59 0:00 /usr/bin/perl -w mt.cgi
trpz 14488 1.1 0.5 50752 22964 ? S 20:59 0:00 /usr/bin/perl -w mt.cgi
trpz 14593 23.2 0.5 50752 22960 ? S 21:00 0:01 /usr/bin/perl -w mt.cgi
trpz 14601 20.0 0.5 50752 22960 ? S 21:00 0:00 /usr/bin/perl -w mt.cgi
trpz 14604 29.6 0.5 50752 22964 ? S 21:00 0:00 /usr/bin/perl -w mt.cgi
trpz 14616 36.5 0.5 50756 22964 ? S 21:00 0:00 /usr/bin/perl -w mt.cgi
trpz 14593 3.2 0.5 50752 22960 ? S 21:00 0:01 /usr/bin/perl -w mt.cgi
trpz 14601 2.2 0.5 50752 22960 ? S 21:00 0:00 /usr/bin/perl -w mt.cgi
trpz 14604 2.6 0.5 50752 22964 ? S 21:00 0:00 /usr/bin/perl -w mt.cgi
trpz 14616 2.2 0.5 50756 22964 ? S 21:00 0:00 /usr/bin/perl -w mt.cgi
trpz 13540 11.2 51.6 5110504 2090628 ? D 20:57 0:24 /usr/bin/perl -w mt.cgi
trpz 14488 0.8 0.5 50752 23136 ? S 20:59 0:00 /usr/bin/perl -w mt.cgi
trpz 14593 2.0 0.5 50752 23148 ? S 21:00 0:01 /usr/bin/perl -w mt.cgi

No help fro Movable Type, so I say bye. I'll try wordpress. If you start having the mt-config.cgi no such file... error, I suggest to do the same.

I have been using Movable Type for the past 4 years. But the last 4 months were hell.
Go to the top of the page
 
+Quote Post
OtherNiceMan
post Nov 24 2007, 11:54 AM
Post #26





Group: Members
Posts: 2,039
Joined: 4-January 04
From: UK
Member No.: 19,351



What plugins do you have installed?


--------------------
Rob Kenny
The Composing Stick Movable Type Tricks & Tips
Twitter|Flickr|Vox
Sites I manage: Darren Kenny: Professional Cyclist O.B.E
Go to the top of the page
 
+Quote Post
rmdelatorre
post Nov 24 2007, 11:57 AM
Post #27





Group: Members
Posts: 15
Joined: 1-May 04
Member No.: 24,070



QUOTE (OtherNiceMan @ Nov 24 2007, 07:54 PM) *
What plugins do you have installed?


No plugins. Fresh install in order to see if that was the problem.
Go to the top of the page
 
+Quote Post
bunny
post Nov 27 2007, 02:23 PM
Post #28





Group: Members
Posts: 2
Joined: 12-November 07
Member No.: 49,067



Hi Guys,

different blog - same problem sad.gif
I tried all the different methods as well but always get a perl error:

The script could not be executed correctly.
Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.

Any help or suggestion would be wounderful

Desperate bunny greetings...
Go to the top of the page
 
+Quote Post
sandylp
post Dec 14 2007, 01:31 PM
Post #29





Group: Members
Posts: 8
Joined: 15-April 02
Member No.: 1,106



QUOTE (bunny @ Nov 27 2007, 10:23 PM) *
Hi Guys,

different blog - same problem sad.gif
I tried all the different methods as well but always get a perl error:

The script could not be executed correctly.
Common causes might be that the file was uploaded in a non-ASCII format or the path to the interpreter (e.g.: #!/usr/bin/perl) is missing or set incorrectly.

Any help or suggestion would be wounderful

Desperate bunny greetings...


I was having a similar problem when my blog (version 3.21) was moved to a new server by my host. I could not access the cgi file and received the error: Maybe you forgot to move mt-config.cgi-original to mt-config.cgi? They also upgraded the PHP to version 5.2.4 and mysql to 5.0.27. The technician said that he added a directive to the cgi file by adding another file called .htaccess.bkp. The directive is: AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi
#Options -ExecCGI


He said that there was a bug in MT causing the scripts not to detect the config file. I don't know why the problem occurred when everything was working fine on the old server. Maybe it had something to do with the PHP upgrade. I'm also curious as to why the directive couldn't be added directly to the .htaccess file. Oh well, everything is working fine now so I'll just keep my fingers crossed. smile.gif
Go to the top of the page
 
+Quote Post
Filmstalker
post Jun 25 2008, 08:21 AM
Post #30





Group: Members
Posts: 21
Joined: 1-June 06
Member No.: 35,656



Just to let people know, because yet again I can't find a proper answer from the MT people nor a solution that worked, my hosting company helped me out when this happened to my installations - both untouched for close to two years.

They added the following line to the BOOTSTRAP.PM file:

CODE
sub BEGIN {
$ENV{'MT_HOME'} = '/home/[account]/public_html/[path to mt]';


The problem seemed to coincide with an upgrade of Perl.

Frankly, even though this is fixed, my unhappiness with the way MT isn't easily upgradable - install problems, having to recreate templates from scratch or use the previous versions minus the new features, etc. - has me looking to Expression Engine, Drupal or WordPress, despite my years of running MT.

This post has been edited by Filmstalker: Oct 23 2008, 05:45 AM
Go to the top of the page
 
+Quote Post
OtherNiceMan
post Jun 25 2008, 10:47 AM
Post #31





Group: Members
Posts: 2,039
Joined: 4-January 04
From: UK
Member No.: 19,351



I surprised that you had a problem finding an answer for this problem. I encounter this error when moving to a new host and googled the answer It is related to security and new versions of Perl, the OS stops the CGI script from reading environmental variables.


--------------------
Rob Kenny
The Composing Stick Movable Type Tricks & Tips
Twitter|Flickr|Vox
Sites I manage: Darren Kenny: Professional Cyclist O.B.E
Go to the top of the page
 
+Quote Post
1omrani
post Jul 22 2008, 08:46 PM
Post #32





Group: Members
Posts: 1
Joined: 22-July 08
Member No.: 53,177



Hi...
I used the method described in the following link and now every thing is ok...
Link : http://orangescale.net/log/2007/10/movable...bject-is-empty/
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11.24.09 - 11:34 PM