rav4rosie Posted November 15, 2002 Posted November 15, 2002 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. Quote
rayners Posted November 15, 2002 Posted November 15, 2002 Now you're into one of my areas of expertise: Movable Type 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. Quote
rav4rosie Posted November 15, 2002 Author Posted November 15, 2002 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 Quote
rayners Posted November 15, 2002 Posted November 15, 2002 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. Quote
rav4rosie Posted November 15, 2002 Author Posted November 15, 2002 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. Quote
rayners Posted November 15, 2002 Posted November 15, 2002 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? Quote
rav4rosie Posted November 15, 2002 Author Posted November 15, 2002 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. Quote
rayners Posted November 15, 2002 Posted November 15, 2002 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. Quote
rav4rosie Posted November 16, 2002 Author Posted November 16, 2002 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 Quote
rayners Posted November 16, 2002 Posted November 16, 2002 I am completely at a loss here. Maybe trying setting all of the directories involved to 777? Quote
rav4rosie Posted November 16, 2002 Author Posted November 16, 2002 I had previously posted on the MT boards and no one had responded or so I thought. (I just never got email notification) They posted these links: http://httpd.apache.org/docs/howto/cgi.htm...achetopermitcgi http://httpd.apache.org/docs/howto/cgi.htm...stillnotworking I'm going to read those and see if I can understand what I need to do. Quote
rav4rosie Posted November 16, 2002 Author Posted November 16, 2002 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. Quote
rayners Posted November 17, 2002 Posted November 17, 2002 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. Quote
rav4rosie Posted November 17, 2002 Author Posted November 17, 2002 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? Quote
rayners Posted November 17, 2002 Posted November 17, 2002 Yes, unpack and unzip are effectively the same thing. 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. Quote
rav4rosie Posted November 18, 2002 Author Posted November 18, 2002 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. Quote
rayners Posted November 18, 2002 Posted November 18, 2002 If you're comfortable giving it to me, I'd be happy to give it a try. You can either email it to me at rayners@rayners.org or send me a PM here on the forums. Quote
rayners Posted November 18, 2002 Posted November 18, 2002 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! Quote
rav4rosie Posted November 18, 2002 Author Posted November 18, 2002 omg, no way. you are awesome. I can't thank you enough!! I will go in and see what changes need to be made. Quote
rav4rosie Posted November 18, 2002 Author Posted November 18, 2002 heh...i guess i did. he looked a bit shocked instead of happy Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.