Jump to content

Recommended Posts

Posted

Does anyone have experience using MT. I've seen some previous thread dealing with it so assume so. I'm trying to get it configured and running, but like many others I'm hitting the "Internal Server Error 500" when trying to load mt.cgi. Funny thing is I can load mt-check.cgi and that works. mt-load.cgi worked fine as well.

 

Anyone have suggestions? CGI files are all set to 755 I believe. I assume I transferred everything correctly as the mt-check.cgi works.

 

Thanks.

Posted

:) Welcome to the family, 7seven8! :lol:

 

How did you install the archive? Did you extract it on the server or upload it from your machine? And if you uploaded it from you machine, did you upload it in BINARY or ASCII mode? It must be uploaded in ASCII mode to work. Can you upload it again forcing ASCII mode?

 

If this doesn't help, post back and maybe someone else may have an idea.

Posted

I extracted on my machine and then I uploaded. I did the upload in ASCII, but I'll try it again. Everything was in ASCII, except my image folder per the MT instructions.

 

Can I upload the tar file and then extract? Do i do that through File Manager?

Posted
Can I upload the tar file and then extract? Do i do that through File Manager?

When I installed it that's the way I did it. But just try forcing another upload of just the mt.cgi file in ASCII mode to see if that corrects it.

Posted

hmm, i tried uploading the file again through WSFTP in ASCII mode, and I also connected through a cmd prompt, setting the type to ASC, and doing the upload. Still no difference. So, I'm leaning toward maybe that isn't the issue. Permissions still look ok for all cgi files.

Posted

This is right out of the MT troubleshooting section of the docs.

 

I get a 500 Internal Server Error

500 Internal Server Error is the general webserver error that occurs when something goes wrong--in particular, when something goes wrong when trying to execute a CGI script.

 

Here is a list of diagnostics for trying to fix this error:

 

Are all of the CGI scripts and libraries uploaded in ASCII mode?

 

Have you set the permissions properly for all of the CGI scripts? They should all be set to 755; this grants read/write/execute permissions to the owner, and read/execute permissions to everyone else.

 

Check that the path to Perl is correct for your machine. The path to Perl is specified on the first line of each CGI script, like this: #!/path/to/perl, where /path/to/perl is the path. Typically on a Unix server this is #!/usr/bin/perl. You may need to change this value in each CGI script if the path is different on your webserver. If you do need to change the setting, take care not to remove the -w at the end of the first line in each file; this setting turns on warnings in Perl, and it is important that it be left on.

To determine the location of Perl on your webserver, take a look at the support pages for your hosting service. Alternatively, if you have a shell (command line) account, and are familiar using it, you can log in to that account that type:

 

$ whereis perl

 

This will give you the location(s) of Perl on your system.

 

 

Does your webserver have a sufficiently high version of Perl? Movable Type requires Perl version 5.004_04 or greater, and errors will occur when trying to use a version of Perl earlier than this.

Posted

Ok, it actually might have to do with the upload. Through file manager, if I look at mt-check.cgi, which ran ok, the formatting looks good for that file. Looking at mt.cgi, the formatting sucks, everything is jumbled together. Maybe this is actually the problem, the aschii upload.

 

bruce, how do i put my mt tar file up there and extract? Just upload it, go into file manager, and click on it? Will it give me an option to extract in there? how is that done exactly.

 

thanks for everyone's help by the way.

Posted

Since you don't have access to a command line for that last part, I'll help you out there...

 

Perl on all of the servers is located at /usr/bin/perl. But that's unlikely your problem as that's where MT should be looking for it by default.

 

You probably will be best suited to submit a helpdesk ticket. If mt-check.cgi and mt-load.cgi both worked (are you absolutely certain mt-load.cgi didn't return any errors, btw), and your mt.cgi file is in the same directory and does not work, I would be hard pressed to give you a good reason why without seeing your setup.

Posted

I'll submit a ticket.

 

I'm sure that the mt-load.cgi worked. I can see all 15 or so tables in my DB out there. I got a success message also.

 

Comparing mt-check.cgi and mt.cgi, in File Manager, File Manager gives me the ability to edit mt-check.cgi. It has the choice "Edit File" or similar. With mt.cgi, I don't get the option to edit. And it looks like:

 

!/usr/bin/perl -w CGIPath http://localhost/MT # Copyright 2001-2003 Six Apart. This code cannot be redistributed without # permission from www.movabletype.org. # # $Id: mt.cgi,v 1.18 2003/02/12 01:05:31 btrott Exp $ use strict; my($MT_DIR); BEGIN { if ($0 =~ m!(.*[/\\])!) { $MT_DIR = $1; } else { $MT_DIR = './'; } unshift @INC, $MT_DIR . 'lib'; unshift @INC, $MT_DIR . 'extlib'; } eval { require MT::App::CMS; my $app = MT::App::CMS->new( Config => $MT_DIR . 'mt.cfg', Directory => $MT_DIR ) or die MT::App::CMS->errstr; local $SIG{__WARN__} = sub { $app->trace($_[0]) }; $app->run; }; if ($@) { print "Content-Type: text/html\n\n"; print "Got an error: $@"; }

 

 

In comparison, mt-check.cgi is formatted nicely. (And mt.cgi is formatted correctly sitting on my PC, so it isn't junked before the upload) So, I guess I'm leaning toward mt.cgi not uploading properly. But like I said, I am doing this through command line on my windows machine, setting type to ASC, doing the put, and it comes back saying the file was indeed uploaded in ASC. I also tried through WSFTP. Very, very strange to say the least.

 

I'll submit the ticket.

Posted

Well, before hitting up support, I decided to put the tar file up on the site and just extract it all out there. And of course it worked perfrectly. That's the way to go, very simple. Too much can go wrong in the transfer of files I guess. Even though I know that I was transferring those things correctly.

 

Anyway, hope this helps someone else out in the future.

Posted

7seven8,

 

I can't speak for anyone else, but I had innumerable issues with ascii vs. binary uploads utilising ws_ftp. smartftp seems to get it right everytime, as long as you have it in the list in the options.

 

Because you'll probably end up installing plugins etc, you might want to check out that program, it's free anyway, for personal use. =)

 

... and I'm not really lucky. I've installed MT 4 or 5 times now, the first 2 times I had a lot of problems, it's a learning experience. :dance:

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...