« Berkeley no longer the assumed default database | Main | templates_c problem and the easy upgrade »

Best practices: Upgrade your config file

This is an archived entry from the Movable Type 3.2 beta test.
Entries from the current beta release (v3.3) can be found here.

As this most recent bug has shown, many people (perhaps the vast majority?) who upgrade Movable Type simply use their old config file. This makes sense, since we've never explicitly told people that they should do anything but that. One time I helped a friend upgrade to MT 3.1 and found that they still had a config file from MT 1.x. It was only one page long and had no explanations of any directives! He had no idea how much control over the system he was lacking.

The config file (mt-config.cgi) has come a long way in the past three years and is upgraded and tweaked in nearly every release. New directives have been added, some removed and documentation inside the config file is specifically tailored to the latest version which you are now running.

While we will always continue (bugs notwithstanding) to support older configuration files, taking the time to transfer over what amounts to three or four config settings for most people will only benefit you in the long run.

And since we've deprecated the use of mt.cfg and mt-db-pass.cgi in favor of the new mt-config.cgi, there's never been a better time to get acquainted with the new Movable Type configuration file.

TrackBack

Listed below are links to weblogs that reference Best practices: Upgrade your config file:

» Media Manager Beta4 and MT3.2 Beta 2 from Media Manager
Just wanted to let everyone know that I have tested the latest release of Media Manager with the latest Beta release of MovableType (Beta 2). I am happy to announce that the AUTOLOAD bug reported in Beta 1 has been... [Read More]

» Updated Installation Instructions from Media Manager
Given that the AUTOLOAD bug has been fixed in MT3.2b2, and that Media Manager now relies upon MTAmazon32 and not MTAmazon-compat, I wanted to make sure I update the installation instructions to be as accurate as possible.... [Read More]

» MT Configuration File Changes from Constructing Reality
I totally agree with the new config file system though i think it would be nice if there were a way to implement edits of the config file from directly within the UI, naturally blocking out changes to the DataSource setup which would needles to say be ... [Read More]

Comments

By the way, as I was writing this, I was picturing a movie with a slow panorama of snapshots of the mt.cfg file. Of course, in the background, Kenny Rogers' "Through the Years" would be a must.

Hi

Hate to rain on the parade and this isn't a bug, hence writing here, but the new templates in the edit window are a pain to follow now they are laid out the way they are.

Perhaps a resizable edit window could be developed so the lines don't rap round so much.

Other than that, can't wait for the full elease. :)

Hi

Hate to rain on the parade and this isn't a bug, hence writing here, but the new templates in the edit window are a pain to follow now they are laid out the way they are.

Perhaps a resizable edit window could be developed so the lines don't wrap round so much.

Other than that, can't wait for the full release. :)

What I find much easier is having the templates link to a directory file on the server (where it says 'Link this template to a file' when you're in one of the Edit Template screens within MT), and then I download and edit them using textpad, then upload them again to the server as required.

Good point but the firm I work for don't allow FTP (damn... the secret is out... ) :)

I must admit I had totally forgotten about that since I have never used it before.

Anyway, I'm off to get the new structures into my head and start coding a new skin for my site...

Jay, could you explain a little what do you mean by using the new config file.. none of the installation instructions mentions how do we do that..

do delete the old mt.cfg and rename mt-config.cgi-originial and upload to server.. what else do we have to do?

Aditya

The new mt-config.cgi is designed to take the place of the old mt.cfg and mt-db-pass.cgi files by combining them into one file. You need to transfer the info from each of the old files to the new mt-config.cgi file:

From mt-db-pass.cgi - your DB password, and from mt.cfg your details pretty much the same as what you filled out when you first set up MT - your CGIpath your DB details (if you're using MySql, then these would be ObjectDriver DBI::mysql, Database [databaseName], DBUser [databaseUsername], DBPassword [databasePassword from mt-db-pass.cgi]) your StaticWebPath and any others you may have chosen to use - most of it is very similar to the old mt.cfg. Upload the new file and remove the two old ones (make backups though in case you have problems).

hmm tried that but i'm still stuck with the same problem listed here

Upload the new file and remove the two old ones (make backups though in case you have problems).

What demonsurfer said. It is essential that you rename or delete mt.cfg and mt-db-pass.cgi, because MT3.2 will look for those files first, not mt-config.cgi. Otherwise... you could be like me trying to figure out where the links to the comments went.

Post a comment



Six Apart
Makers of weblog software and services for individuals, organizations and businesses.
This website is powered by Movable Type.