Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Install MovableType on OS X Server OS X Server
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:
    • Change 'CGIPath' from 'http://WWW.YOUR-SITE.COM/PATH/TO/MT/' to 'http://your_hostname/mt/'. your_hostname could be localhost.
    • Place a # sign before the "Datasource" line so it looks like this: # DataSource ./db.
    • Insert the following lines for mysql:
       ObjectDriver DBI::mysql
      Database 'database_name'
      DBUser 'user'
  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...]
    •    
  • Currently 1.14 / 5
  You rated: 1 / 5 (7 votes cast)
 
[58,466 views]  

Install MovableType on OS X Server | 17 comments | Create New Account
Click here to return to the 'Install MovableType on OS X Server' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
HTML
Authored by: Diggory on Feb 10, '03 10:00:09AM

The post seems to have been posted in Plain text - but contains HTML.

Can we change this?




[ Reply to This | # ]
Doh...
Authored by: robg on Feb 10, '03 11:21:55AM

It's better now, sorry about that!

-rob.



[ Reply to This | # ]
Install Instructions
Authored by: Alex281 on Feb 10, '03 11:16:04AM
Maybe I'm missing something, but isn't this all in the install instructions? I just installed MT last week (on OS X client) with MySQL and the only thing here which required me to google search was where to get the DBI bundle. On a more positive note, Movable Type is absolutely amazing! I wish the documentation for customizing it was a little better, but I'm having a lot of fun playing with it on my site Alex281.com

[ Reply to This | # ]
Install Instructions
Authored by: shurakai on Feb 11, '03 01:30:27PM

yes, all of it is in the install instructions, but they're hard to follow at best. I've installed MT on both Client and Server and struggled with many of the points, particularly DBI::mysql, which some may assume (as I did) already exists with the mysql installation. Getting it to run under mySQL can be troublesome, and the resources for handling the installation are few and far between.



[ Reply to This | # ]
Install Instructions
Authored by: sardu_mac on Feb 25, '03 08:06:18AM

I've installed MT on several OSX and OSXServer boxes with zero problems, I don't see the need for this hint either... other than to get more people blogging, which would be cool in itself :)



[ Reply to This | # ]
But what gives?
Authored by: vxbush on Feb 10, '03 02:40:13PM

I have tried to install MT and have run up against a brick wall. Everything works fine if I run mt-check in a shell; everything is in place. But when I attempt to run the script via the browser, I keep getting a "configuration" error, so the CGI script won't run. My sysadmins at work have tried to to get it working, but everything looks fine to them. So all I can figure is I've got to configure something "just so" under OS X. Ideas?



[ Reply to This | # ]
But what gives?
Authored by: shurakai on Feb 11, '03 01:32:16PM

what is the error exactly?



[ Reply to This | # ]
But what gives?
Authored by: illovich on Feb 12, '03 02:53:53PM

a few things that could be causing you problems:

1) on OS X Server, cgi execution must be explicitly enabled for the webserver in the Server Settings under Configure Web Service->Sites->(edit current site)->Options-> Check Enable CGI Execution

2) It's simple, but I've seen it nab many people on the MT support: Your MT directory, the blog directory and your db directory (if using Berkley DB and not SQL of course) must be chmod'ed to 777 (or 755 if using suexec or that other cgi security thingy).

3) If you are running mt-load.cgi succefully but then can't post, double check your blog settings. I once accidentally set the archives web path and absoulte path to different directories on an MT install and it seemed fine until you could post.



[ Reply to This | # ]
Maybe a clue....
Authored by: vxbush on Feb 12, '03 05:41:42PM

Here's the actual message posted:

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

Please contact the server administrator, <name omitted> 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.

I check the error log, and I get:

[Wed Feb 12 16:34:02 2003] [error] [client xx.xx.xx.xx] Premature end of script headers: /Users/<name>/Sites/MT/mt-check.cgi
[Wed Feb 12 16:34:03 2003] [error] [client xx.xx.xx.xx] File does not exist: /Library/WebServer/Documents/favicon.ico
[Wed Feb 12 16:36:38 2003] [error] [client xx.xx.xx.xx] Premature end of script headers: /Users/<name>/Sites/mt/mt-check.cgi

Ah, maybe.......if that favicon.ico doesn\'t exist, that could be making it fail. Let me check that. If I don\'t post again, then that\'s the problem.



[ Reply to This | # ]
Maybe a clue....
Authored by: vxbush on Feb 13, '03 11:28:00AM

Nope; favicon.ico did nothing. I keep getting the error message

[Wed Feb 12 16:34:02 2003] [error] [client xx.xx.xx.xx] Premature end of script headers: /Users/<name>/Sites/MT/mt-check.cgi

I have 2.51 installed. Is this version not tested with OS X?



[ Reply to This | # ]
Maybe a clue....
Authored by: pcp_ip on Feb 13, '03 01:27:38PM
I'm having the same problem- premature end of script header errors. I can run mt-check.cgi fine through the shell but not through apache. I do not have favicon errors.

I'd love to get movable type running. any help would be great. thanks

[ Reply to This | # ]

DBI::mysql or DBD::mysql ?
Authored by: theolog on Feb 24, '03 01:42:49PM

hmmm . . . when step 7 says "select DBI::mysql" I'm wondering if it means DBD::mysql -- that's the most similar option I see under the "Custom Install" -- or is the b/c I'm trying to install this on OS X Client ;-)?



[ Reply to This | # ]
Install MovableType on OS X Server
Authored by: theolog on Feb 24, '03 03:18:35PM

Okay -- just for all you fellow slow learners out there, in step 4 when it says to add these lines:

Database 'database_name'
DBUser 'user'

you should NOT include the quotes ( ' ) and should have, at this point (as best as I can tell), already created a database :-).

Hope this helps -- sometimes I'm a little slow on the draw!



[ Reply to This | # ]
couple of other tips
Authored by: mikerose on Apr 12, '03 05:33:50PM

Installing MySQL: I used Complete MySQL from Server Logistics and it seems to work great. If you are running Mac OS X Server DO NOT INSTALL MYSQL -- it is already installed! Only 10.2 client systems need the MySQL installer.

Once MySQL is installed and running, you will have to create a DB: (Complete MySQL suggests adding the appropriate $PATH to your .tschrc file first)

>mysql
>create database mtdb;

(I used 'mtdb' but anything will do as long as it matches the DB name in the mt.cfg file)

The mt.cfg can also use 'root' as the MySQL login, it doesn't mean root access to your machine.

You should create the 'archive' folder inside your /Library/WebServer/MovableType directory so it doesn't complain later.

happy blogging!



[ Reply to This | # ]
WARNINGS FOR NEWBIES LIKE ME
Authored by: sexmoneydrugs on Apr 30, '03 08:37:40PM

If ya have no clue what the heck you're doing (like me), here's
a few hints:

On this part:

ObjectDriver DBI::mysql
Database 'database_name'
DBUser 'user'

Do NOT include the '' marks around the supplied info, for
instance:

Database movabletype
DBUser root

If ya don't have MySQL installed, you can do it very easily by
just following this link:

http://www.entropy.ch/software/macosx/mysql/

This guy covers it really well. All ya hafta do really is go to the
mysql page and download the package for 10.2

And, finally, on the

mt-db-pass.cgi

file,

I'd seriously suggest entering the password you established when
you set up mysql and leaving the DBUser variable (mentioned
earlier) as root.

Also, make certain you didn't install anything from the
AaronFaby unix install sets - they're all "bleeding edge" and are
extremely confusing. I'm sure he's a nice guy, but his
installations are so 'nouveau', you'llj probably never get your
webserver to work. Most of his installs begin with the word
"Complete" in them. Again, I'd seriously suggest you avoid
these - they've cost me untold hours.
But luckily, he has been cool enough to provide complete de-
install instructions in all his packets. Just examine the install
pdf's that come with the installs.
The only reason I mention this is that most of my problems
were in dealing with Apache4 and other stuff that I had installed
from his site. On VersionTracker, it sounds SOOO good - we
always want the latest stuff, right? But this apparently doesn't
hold true for UNIX webserver type apps. Yikes...

Hope this helps.




[ Reply to This | # ]
MacZealots: Installing Movable Type on Mac OS X Panther v10.3.x
Authored by: ryanjbonnell on Jan 08, '04 01:10:04AM

MacZealots.com has written a fairly lengthy and in-depth article detailing exactly what you will need to do to get Movable Type up and running on Mac OS X Panther v10.3.x

The full tutorial is available at: http://maczealots.com/tutorials/movabletype/

This may provide help for some of you that might be having problems, would like more detailed instructions or further discussion.



[ Reply to This | # ]
MacZealots: Installing Movable Type on Mac OS X Panther v10.3.x
Authored by: ryanjbonnell on Jan 08, '04 01:14:04AM

MacZealots.com has written a fairly lengthy and in-depth article detailing exactly what you will need to do to get Movable Type up and running on Mac OS X Panther v10.3.x

The full tutorial is available at: http://maczealots.com/tutorials/movabletype/

This may provide help for some of you that might be having problems, would like more detailed instructions or further discussion.



[ Reply to This | # ]