totally wrecked
Saturday February 25, 2006; part of: Housekeeping

Sorry. I don't know what this is, but all of the individual archives are broken. This may go on for some time -- the last time I had to ask MT for support it took a week to get an answer. But I can't get it working at all.

UPDATE: I did get a reply from MT support wthin eight hours, and on a Sunday. This is an improvement worth noting. By that time I had fixed the site -- I hope -- and have placed the instructions in a comment to this.

Posted by andrewb at February 25, 2006 09:38 PM
Comments

OK. It is finally fixed, no thanks to the endlessly outmoded MT documentation.

For the eye of Google, I record the following tricks to get movable type publishing dynamically on Pair using PHP, cgiwrap, and so on.

I have a setup where the blog text and templates reside in one directory, and the mt code resided in another. I ended up needing two .htaccess files.

One of them is needed for dynamic publishing, and is written by MT into the directory where the blog text lives ( elegans/helmintholog ). this redirects queries to the mtview.php file, which in turns contains the instructions for dynamic publishing. The mtview.php file is in turn built by the "dynamic site bootstrapper" template. It's very simple

<?php
   include('<$MTCGIServerPath$>/php/mt.php');
   $mt = new MT(<$MTBlogID$>, '<$MTCGIServerPath$>/mt.cfg');
   $mt->view();
?>

But it doesn't get built where the .htaccess file looks for it

No. That would be too simple. Instead. MT builds this file in the helmintholog directory, where it also builds an .htaccess file redirecting requests to mt/mtview.php

It only took me about 24 hours to work this out. Silly me. I moved mtview.php to where the redirect was pointing.

Then, in the elegans directory, which is where the wormbook.com domain points, I put another .htaccess file that does the cgiwrap magic:

ErrorDocument 404 http://www.darwinwars.com/404.html ErrorDocument 500 http://www.thewormbook.com/helmintholog/500.html


Action application/x-pair-sphp4 /cgi-sys/php-cgiwrap/username/php4.cgi


AddType application/x-pair-sphp4 .php


RewriteEngine On


RewriteRule ^mt/(.+).cgi$ cgi-sys/cgiwrap/putusernamehere/$1.cgi


And that's all.

I note that preview is completely broken. I no longer care.

Posted by: acb on February 26, 2006 05:15 PM


Post a comment
Textile formatting works here. Double hyphens are automatically converted to en dashes, quotes are automatically smartened. You can put dashes and asterisks around text to make italics bold and other silly effects easily.
  • Text wrapped in Asterisks which * will be bold. The asterisks must touch each end of the bold text. There must a space before the first and after the last.
  • Text wrapped in underscores - _ - will be italicised. The underscores must touch each end of the italics. There must a space before the first and after the last.
  • Paragraphs starting bq. will be block quoted. There must be no space before the "b" and one space after the full stop.
  • A hyperlink is made by wrapping the link text in double quotes, followed immediately by a colon, then the URL. If there is a question mark in the URL, wrap the whole lot in square brackets.
  • I use two classes to mark up text that deserves it. sane text looks like this. loony text looks like that. The syntax for those is %(sane)[space] sane text %; loony is left as an exercise to the reader.
Name:



Email Address:



URL:



Comments:



Remember info?