Jump to content

Recommended Posts

Posted

I'm trying to get movabletype to work.

I'm supposed to run the following script:

 

http://www.photo-phrensy.com/journal/cgi-b...bin/mt-load.cgi

 

the mt-load.cgi is located in ..journal/cgi-bin

 

But I get the following error:

------------------------------------------------------

------------------------------------------------------

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@photo-phrensy.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

--------------------------------------------------------------------------------

Apache/1.3.27 Server at www.photo-phrensy.com Port 80

------------------------------------------------------

------------------------------------------------------

I'm not sure what I'm doing wrong. Help. I'm just learing about cgi's by

trial and error since yesterday...crash course I guess you would say.

 

:D

Posted

Now you're into one of my areas of expertise: Movable Type :D

 

So where did you unpack the MT archive? What parameters did you set/change in mt.cfg? Where are the MT files currently located?

 

I don't recall running into a problem like this before, but I'm sure we can figure it out.

Posted

Its funny...from the looks of the forums at MT,

my error is quite common. But none of the

responses seemed to help me.

 

When you say 'unpack the MT archive. I'm not

quite sure what that means. I moved the MT files (not .cgi)

to http://www.photo-phrensy.com/journal/mtfi/

I moved the MT CGI files to http://www.photo-phrensy/journal/cgi-bin

 

I set all .cgi permissions to 755

I also set /journal/ , /journal/mtfi/ and journal/cgi-bin to 755

 

Following is what my mt.cfg file looks like (I deleted parts of it to fit

this all in one post):

 

## Movable Type configuration file [mt.cfg] ##

##

 

# Movable Type uses the CGIPath setting to construct links back to

blah blah blah, in INSTALLING THE MOVABLE TYPE

# APPLICATION CODE, Step 3.

 

CGIPath http://www.photo-phrensy.com/journal/cgi-bin/

 

 

# The filesystem path to the 'db' directory, where your MT database

# files are stored. You will probably need to change this when you

# first install MT; instructions for doing so are in the Installation

# Instructions, in INSTALLING THE MOVABLE TYPE APPLICATION CODE, Step 8.

 

DataSource ./db

 

ObjectDriver DBI::mysql

Database ravrosie_ravrosiemtfi

DBUser ravrosie_ravrose

 

DBUmask 0022

HTMLUmask 0022

UploadUmask 0022

DirUmask 0022

 

 

## The following options are commented out: to uncomment an ##

## option, remove the '#' at the beginning of the line. ##

## First, however, make sure that you understand the purpose ##

## of the configuration setting. ##

#

# If you place all of your MT files in a cgi-bin directory, you

# will need to situate the static files (docs, images, styles.css)blah

blah blah

#

# StaticWebPath /journal/mtfi/

#

#

# The filesystem path to the 'tmpl' directory, which contains the

# front-end templates used by the Movable Type application. This

blah blah blah

#

# TemplatePath ./tmpl

#

#

#

# be used throughout the default templates and Movable Type code by changing

# these values.

#

# CommentScript mt-comments.pl

# TrackbackScript mt-tb.pl

# SearchScript mt-search.pl

#

#

I DELETED THE REST OF THE FILE FOR THIS POST

:D

Posted

Well, first of all, just to eliminate permissions issues for the moment, go ahead and set all those directories to 777. (And just FYI, you can put the .cgi files outside of the cgi-bin directory if you so desire).

 

Secondly, try uncommenting the StaticWebPath directive in mt.cfg (i.e. take out the '#' in front of it)

 

Let me know if that helps any.

Posted

I'm still having trouble. I did what you requested and I still

get the same error message.

 

Some stuff I did:

 

CGIPath http://www.photo-phrensy.com/journal/mtfi/

 

all .cgi to 777

 

.cgi not in cgi-bin anymore but changed StaticWebPath /journal/mtfi/ (took out # in front)

 

When I run http://www.photo-phrensy.com/journal/mtfi/mt-check.cgi now, I still get the

same error message.

 

Do I need to change any permissions besides the .cgi files? I changed the .cgi folder,

/mtfi folder and /journal folder to 777 too.

 

:D

Posted

Hmm, okay.

 

How about we start from scratch then? Delete everything in your journal/mtfi directory to start with. Then unpack the MT archive into that directory, edit mt.cfg (CGIPath, the Database stuff, and the Umasks only), and bring up mt-check.cgi and see what it says.

 

While I'm thinking about it, which MT archive did you get?

Posted

I'll do the steps you said...might take awhile since I'm at

work. But I will keep you posted :-)

 

In the meantime, this is the MT version I downloaded:

 

Full Version, with Libraries: this archive contains the full Movable Type system and all of the external libraries needed by the system. If you're not sure whether your hosting provider has the external modules installed, select this version, and follow the installation instructions.

 

I will have to go back to MT to get the install so I'll wait to hear from you

to see if I am downloading the correct version.

 

:D

Posted

That is the archive I've been using. Did you snag the latest version? (2.51)

 

Anyways, let me know how it goes. If you want me to walk you through the install, you can contact me via email at rayners@rayners.org or over AIM as drraynes. If there's anything else I can do, just let me know.

Posted

I did what you mentioned. Started from a fresh install (ver 2.51), uploaded

and made changes and still same error. Here are the changes I made:

 

mt.cfg

 

CGIPath http://www.photo-phrensy.com/journal/mtfi/

 

DataSource ./db <----left that alone

 

ObjectDriver DBI::mysql

Database ravrosie_ravrosiemtfi

DBUser ravrosie_ravrose

 

# StaticWebPath /path/to/static-files/ <------left this alone

 

DBUmask 0022

HTMLUmask 0022

UploadUmask 0022

DirUmask 0022

 

--------------------

mt-db-pass.cgi put in my db password

--------------------

changed all .cgi to 755

 

If you are not using Movable Type's Berkeley DB support, skip this step. <---skipped

 

/usr/bin/perl -w <-----changed to that on .cgi files

 

RAN http://www.photo-phrensy.com/journal/mtfi/mt-check.cgi

and got same error

 

changed .cgi to 777 and still same here

 

:( :( :D :( :( :(

Posted

I read the links and I think I found what applies to me (?). But I

don't know where to put the script.

 

Explicitly using Options to permit CGI execution

You could explicitly use the Options directive, inside your main server configuration file, to specify that CGI execution was permitted in a particular directory:

 

<Directory /usr/local/apache/htdocs/somedir>

Options +ExecCGI

</Directory>

 

The above directive tells Apache to permit the execution of CGI files. You will also need to tell the server what files are CGI files. The following AddHandler directive tells the server to treat all files with the cgi or pl extension as CGI programs:

 

AddHandler cgi-script cgi pl

 

AND/OR

 

.htaccess files

 

A .htaccess file is a way to set configuration directives on a per-directory basis. When Apache serves a resource, it looks in the directory from which it is serving a file for a file called .htaccess, and, if it finds it, it will apply directives found therein. .htaccess files can be permitted with the AllowOverride directive, which specifies what types of directives can appear in these files, or if they are not allowed at all. To permit the directive we will need for this purpose, the following configuration will be needed in your main server configuration:

 

AllowOverride Options

In the .htaccess file, you'll need the following directive:

 

Options +ExecCGI

which tells Apache that execution of CGI programs is permitted in this directory.

Posted

I just had a brainstorm. Did you move everything from the unpacked archive over, or just the .cgi's? Movable Type requires all of the files in the lib/ and extlib/ directories.

 

The easiest way to set that up would be to unpack the archive in your www/journal directory, and then rename the MT-2.51-full-lib directory to mtfi. Then make your changes to the cfg file, and things should be working perfectly.

Posted

Ok, I want to make sure what I'm doing.

When you say unpack, I assume you

mean unzip? Originally I unzipped onto

my pc then did the ftp to the site. Is

that correct. Or do I upload it as is then

unzip directly from the site? Do I create

the directory MT-2.51-full-lib before doing

any of the above?

 

:( :D

Posted

Yes, unpack and unzip are effectively the same thing. :D

 

The key here is that you need to upload the rest of the files that were in the archive. Either by just uploading them, or by uploading the archive itself and unzipping it through CPanel's Filemanager.

Posted

It just dawned on me. I did move all files and folders to /mtfi not just

the cgi files. So not sure if I need to re-do that part. What do you think

if I gave you my password and you could try installing? If not I understand.

I do appreciate all the help you've given me up to this point.

 

:blink: ;)

Posted

Okay, I've got it working. I'm not entirely sure what the problem was, but here's what I did to get it working.

 

1. Uploaded the tar.gz archive (MT-2.51-full-lib.tar.gz in this case)

2. Through CPanel's file manager, I extracted the file contents into the current directory (which created a MT-2.51-full-lib directory)

3. Renamed the directory to mtfi

4. Edited the mt.cfg file to what you've mentioned before

5. http://www.photo-phrensy.com/journal/mtfi/mt-check.cgi works fine now

 

Apparently, just uploading the files individually screws up the necessary permissions. If I had a bit more time tonight, I'd try and track down what files needed to be changed, but you've got yourself a working installation now.

 

You'll only need to double-check what I put into mt.cfg and edit your mt-db-pass.cgi file.

 

Enjoy! :blink:

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...