Setting up blog

 

Summary

Most bloggers start by signing up with a free service provider. Beyond that, you'll want to use your own blogware for greater control and flexibility. We look at one, the Perl-written "Movable Type".

Events

IBM Technology Conference & Expo 2012
May 23, 2012

Convention Centre B2 Room at 22nd Floor, Centara Grand @ Central World, 999/99 Rama I Road, Pathumwan, Bangkok 10330

Echelon 2012
June 11 and 12, 2012

University Cultural Centre, National University of Singapore

Startup Asia Jakarta 2012
June 7 and 8, 2012

12th Floor, Annex Building, Wisma Nusantara Complex, Jl. M.H. Thamrin No. 59 Jakarta 10350, Indonesia

MMA Forum Singapore
April 23-25, 2012

Grand Hyatt Singapore

Blogging—the act of maintaining an online diary to record personal opinions on life and other irrelevance—has taken the Internet world by storm. Most users begin blogging by signing up with a free service provider; however, as they become more familiar with the activity and as their blog gains in popularity, the need for greater control or features leads them to install personal blogging software on their own Web server.

One of the more popular pieces of blogware is Movable Type. Developed by Six Apart, MT is a Perl application available as a free non-commercial version or a paid version that offers technical and installation support. Whichever version you use, it's easy to install, simple to learn, and rich in features for both dedicated and irregular bloggers.

Getting started

To get started with Movable Type, you'll need a Web server that allows you to execute CGI scripts written in Perl—ideally, with Perl 5.004_04 or better, with the default BerkeleyDB database for the content itself (MT supports MySQL and PostgreSQL as well).

Next, create directories named mt-web and mt-static under your Web server root for the content and static files respectively, and an mt-db directory outside the Web server root for the database files (as in the diagram below). Then upload all the CGI scripts included in the distribution to your server's CGI-BIN area. Remember to "chmod 755" the CGI scripts so that the server can execute them.

Once you're done with all this, you should have a directory tree that looks something like this:

apache
|
|-- cgi-bin
|       |-- lib
|       |   |-- MT
|       |-- plugins
|       |-- schemas
|       |-- search_templates
|       |-- tmpl
|           |-- cms
|-- htdocs
|    |-- mt-web
|    |      |-- myfirstblog
|    |-- mt-static
|           |-- docs
|           |-- images
|-- mt-db

All that's left is to configure MT with the file locations above. Locate the mt.cfg file in the CGI-BIN folder, and update the CGIPath, DataSource and StaticWebPath parameters. The CGIPath parameter specifies the location of the CGI scripts, the DataSource parameter controls the location of the database files, and the StaticWebPath holds the location of the static files. Here's an example of what these might look like, given the directory tree above:

CGIPath http://www.myblogsite.com/cgi-bin/
DataSource /usr/local/apache/mt-db
StaticWebPath /mt-static/

At this point, you should run the included mt-check.cgi script in your browser to verify that all is working as it should. Then execute the mt-load.cgi script through your browser to initialize MT by loading templates, data, and author information into your blog. You can then delete the load script from the system, but as always, make sure you have made a backup copy just in case.

At this point, Movable Type is all loaded up and ready to begin accepting blogs and blog entries.Publishing your MT blog

By default, Movable Type (MT) comes with one blog pre-installed, which you'll need to modify to your own settings. All blog configuration takes place through MT's administration module, accessible at the URL http://YOUR_HOST_HERE/cgi-bin/mt.cgi (obviously replace YOUR_HOST_HERE with the actual name of the Web server where you've got MT installed. To log in to the administration module, type the username "Melody" and password "Nelson", but change this immediately to close a serious security risk.

The default Weblog created by MT is called—not surprisingly—"first Weblog." You will want to change this name right away, so select the Manage Weblog option on the main menu and then select the Weblog Config option to reach the main configuration page for your blog. On this page, you have the opportunity to alter all the important parameters that affect the working of your blog. Here's a brief list:

  • Weblog name: The name of the blog
  • Local Site Path: The root directory for the blog. Example: /usr/local/apache/mt-web/myfirstblog
  • Site URL: The Web URL to the blog. Example: http://www.myblogsite.com/mt-web/myfirstblog
  • Local Archive Path: MT can archive the files of your blog if you specify a location. Typically, you'd create a subdirectory under the blog root for this archive. Example: usr/local/apache/mt-web/myfirstblog/archives
  • Archive URL: The Web URL to access the archive area created above. Example: http://www.myblogsite.com/mt-web/myfirstblog
  • Timezone: The time zone of the country where you are a resident. This is used to ensure that timestamps are accurately displayed.

Publishing blog entries

All that's left now is to actually populate your blog with some entries. Within the administration module, select the New Entry option to get a form containing the following fields:

  • Title: Provide the title for your blog entry.
  • Primary Category: You can associate each entry with more than one category.
  • Entry Body: This text is displayed on the main page of the blog, a synopsis of your blog post.
  • Extended Entry: This is the entire text of the blog entry.
  • Excerpt: Give a brief introduction to your blog entry, useful when syndicating your blog. If this is absent, the text in the Entry Body field is used as an excerpt.
  • Post Status: A blog entry may be in either Draft or Publish state. Only published entries will be available for display to readers.
  • Allow Comments: Since one of the nicer things about a blog is the two-way communication between author and readers, you can set, on a per-entry basis, whether users can post comments on your entry. This has three options: Open, which allows users to view and enter comments; Closed, which allows users to view comments only; and None, which does not permit views or posts.
  • TextFormatting: I recommend leaving this to Convert Line Breaks so that your entries are formatted correctly.
  • URLs to Ping: You can let interested users know every time your blog is updated, through various free services; this field allows you to specify the URL to use for these services. There are several service providers dedicated to this task, the most famous being the one at http://www.weblogs.com/.

Once you're done with all the fields, save your blog entry to the database and then use the Rebuild Site option to publish it to the Web. The first time you publish, you should probably use the Rebuild All Files option; for subsequent attempts, you can use any one of the other self-explanatory options: Rebuild Indexes Only, Rebuild Individual Archives Only, or Rebuild Monthly Archives Only.

Your new blog entry should now be viewable through your browser. Time to uncork the champagne and celebrate!

For more information, check out the online installation manual and user manual.

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

ZDNet Asia Live

RT @MDMGeek: Big data acquisitions pave way to fast, effective innovation - ZDNet Asia http://t.co/ky8YgPAn #Bigdata #analytics via @ciropuglisi

Integration, focused investments to propel Windows Phone http://t.co/6JkDa9sB

RT @AsianFashionLaw: Malaysia offers some manufacturing benefits over China http://t.co/bMquIFiX

Acquisitions in the Big Data market increasingly important to enterprises… http://t.co/Br4BkXyZ

Experience trumps content in apps monetization http://t.co/iaCY5ebX

Malaysia offers some manufacturing benefits over China http://t.co/bMquIFiX

RT @MDMGeek: Big data acquisitions pave way to fast, effective innovation - ZDNet Asia http://t.co/ky8YgPAn #Bigdata #analytics via @ciropuglisi

Thats it.Im digging up an old bus plan i wrote around acquisition of #bigdata talent. http://t.co/gpkha5A1 Any investors want2 read/discuss?

Integration, focused investments to propel Windows Phone: By Kevin Kwang , ZDNet Asia on May 23, 2012 (2 mins ag... http://t.co/aaa0Cb73

Homegrown smartphone OSes gaining favor in China http://t.co/lOBVp1T6

Homegrown smartphone OSes gaining favor in China: 59 Jakarta 10350, Indonesia Locally-made mobile operating syst... http://t.co/gHypbdIY

Integration, focused investments to propel Windows Phone - ZDNet Asia http://t.co/7sZi6Dhb

RT @zdnetasia: Homegrown smartphone OSes gaining favor in China. http://t.co/lL8KbccW

Big data acquisitions pave way to fast, effective innovation - ZDNet Asia http://t.co/ky8YgPAn #Bigdata #analytics via @ciropuglisi

Big data acquisitions pave way to fast, effective innovation - ZDNet Asia: Big data acquisition... http://t.co/r6taCmG1 #ITNews #BigData

So much as we know , MTK6575 extremely integrated frequency1GHz ARM Cortex-A9 processor, the superiority of 3G / HSPA Modem, and help the...

1 day ago by y15822137359 on 5 SaaS adoption speed bumps to avoid

I reckon your view: "CRM is strategy, not software", if a company replicating the approach uses in ERP implementation into CRM, what they...

2 days ago by wykoong on Gartner: Mobile CRM gives better ROI than social

This video will teach you about the Excel fill handle but also provide you with a workook to download... http://www.youtube.com/watch?v=...

3 days ago by TradeBrother on A quick fill handle trick for Microsoft Excel

waiting...

5 days ago by eapete on What should count in a company's market value?

Boy, you've opened a can of worms now.

Wait for the rants & raves.

5 days ago by eapete on What should count in a company's market value?

I was puzzling before this whether to replicate the success formula we executed for a financial institute, and come out with a standard s...

5 days ago by wykoong on Drop the egos, copy ideas, then innovate