Install MovableType on OS X Server

Feb 10, '03 08:22:00AM

Contributed by: shurakai

With the Help of several people in the Forums (and other sources), I've come up with these directions to install MovableType (a blogging system) on OS X Server so that MovableType uses MySQL as its databasing system.

Read the rest of the article for the how-to...


Panther broken!

Instructions:

  1. Enable Root User with /Applications -> Utilities -> NetInfo Manager.app.

  2. Bring up Terminal.app and type su root.

  3. Unpack all the MT files under /Library -> WebServer -> MovableType by typing:
     % cd /Library/WebServer
    % zcat /path/to/MT-2.51-full-lib.tar.gz | tar xvf -
    % mv MT-2.51-full-lib MovableType
  4. With a text Editor, edit mt.cfg in the MovableType directory. Do the following:
  5. Configure Apache for the MovableType directory. Edit /etc/httpd/httpd.conf, and add the following (perhaps before the last "Include" line):
     Alias /mt/ "/Library/WebServer/MovableType/"
    
     <Directory "/Library/WebServer/MovableType/">
     AddHandler cgi-script .cgi
     Options ExecCGI
     Order Allow,Deny
     Allow from all
     </Directory>
    
     <Location /mt/db/>
     Order Deny,Allow
     Deny from all
     </Location>
  6. Download the DBI Bundle from here

  7. Open the package and make sure to select DBI::mysql package in the installation options

  8. Change mt-db-pass.cgi to hold your password for MySQL. Open mt-db-pass.cgi with your text editor and simply replace "database_password" with the password of your MySQL user (needs to match the info you added to the mt.cfg file).

  9. Start / restart the web server from System Preferences / Sharing under the "Personal Web Sharing" entry.

  10. Point your browser to http://localhost/mt/; you should see the docs

  11. Safari seems to have issues with "localhost" HREFs; use 127.0.0.1 if you get a URI such as http://mt/docs/mtinstall.html without the host name.

  12. Run the Perl module check at this URL: http://127.0.0.1/mt/mt-check.cgi

  13. Bootstrap the data store with this URL: http://127.0.0.1/mt/mt-load.cgi

  14. Remove mt-load.cgi from the system by typing:
     % rm /Library/WebServer/MovableType/mt-load.cgi
  15. Log in as user "Melody", password "Nelson" on the main mt page (http://127.0.0.1/mt/mt.cgi)

  16. Follow the steps in the install docs.
That's it! Now just Blog!

Sources:
MovableType
Forums thread

[Editor's note: I have not tested this myself...]

Comments (17)


Mac OS X Hints
http://hints.macworld.com/article.php?story=20030210052253511