Installing Movable Type 3.3 on Suse 10.1 GNU/Linux system
26 July 2006Movable Type 3.3 is released. Well, we all know about this news. How about installing it on your Operating System and start posting blogs. We’re going to do that. We’ll install Movable Type 3.3 on Suse GNU/Linux 10.1.
So let’s get started.
Download Movable Type 3.3 for Personal use from this page.
The file will be named MT-3.31-en_US.tar.gz
Check whether Perl is installed and make a note of its version.
#perl -v
It should be greater than 5.8.1
Start MySQL Server
#/etc/init.d/mysql start
Set password for root user to access MySQL
#mysqladmin -u root password “your-password-here”
Connect to MySQL as root
# mysql -u root -p
Enter the password you configured earlier when prompted.
Copy the previously downloaded “MT-3.31-en_US.tar.gz “ file to /srv/www/cgi-bin/ directory.
#mv MT-3.31-en_US.tar.gz /srv/www/cgi-bin/
Extract this file in this directory.
#tar xvzf MT-3.31-en_US.tar.gz
Rename the directory MT-3.31 to mt
#mv MT-3.31 mt
Move the mt-static and the files under it to the directory /srv/www/htdocs
#mv mt/mt-static/ /srv/www/htdocs/
Make sure that all the *.cgi files in the mt directory have the permissions 755
#cd mt
#chmod 755 *.cgi
Now browse to the following URL using your web browser. This will run a script which verifies whether the required additional software is installed on your system.
http://10.61.111.18/cgi-bin/mt/mt-check.cgi
Replace the above IP-Address with your own.
Depending on the packages installed on your system, you’ll be prompted to go ahead and install Movable Type. If there is any software which is required but missing you have to install it and run the mt-check.cgi script again by browsing to this URL.
Rename mt-config.cgi-original to mt-config.cgi within the mt directory.
#mv mt-config.cgi-original mt-config.cgi
Edit mt-config.cgi and change CGIPath as follows:
CGIPath http://10.61.111.93/cgi-bin/mt/
Replace the above IP-Address with your own
Edit mt-config.cgi and change the database configuration under MYSQL as follows:
##### MYSQL #####
ObjectDriver DBI::mysql
Database movabletype
DBUser mt
DBPassword mtpass
DBHost localhost
Here movabletype is the database name, mt is the database user, mtpass is the password. Also comment out the configuration for other databases. The entries should be as follows:
##### POSTGRESQL #####
#ObjectDriver DBI::postgres
#Database DATABASE_NAME
#DBUser DATABASE_USERNAME
#DBPassword DATABASE_PASSWORD
#DBHost localhost##### SQLITE #####
#ObjectDriver DBI::sqlite
#Database /path/to/sqlite/database/file##### BERKELEYDB #####
#DataSource /path/to/database/directory
As you may have rightly guessed, Movable Type doesn’t create the database, users for us. We have to create them.
Creating a database named “movabletype”
#mysqladmin create movabletype -u root -p
Creating a user ‘mt’ with password ‘mtpass’. First connect to mysql as root.
#mysql -u root -p
Now create user with necessary privileges.
mysql> GRANT ALL PRIVILEGES ON movabletype.* TO ‘mt’@'localhost’ IDENTIFIED BY ‘mtpass’ WITH GRANT OPTION;
Change the StaticWebPath in mt-config.cgi as follows:
http://10.61.111.93/mt-static
Replace Ip-Address with your own.
Make sure that MySQL is started. If it isn’t then start it as follows:
#/etc/init.d/mysql start
Now browse to the following URL from a web browser:
http://10.61.111.93/cgi-bin/mt/mt.cgi
Replace IP-Address with your own.
You’ll be presented with a welcome screen. Here you need to enter username and password which you’ll use later to login to Movable Type. After entering the details press “Finish Install”.
Movable Type will take a few seconds and initialize all the databases. Now press the button “Login to Movable Type”. Enter the username and password previously configured and enter the login button.
On the page that appears, at the top left there will be a link “Configure this weblog”. Click this link.
On the page you need to enter few details like
Weblog Name : My First Blog
Site URL : http://10.61.111.93/
Site Root : /srv/www/htdocs
Timezone : your timezone here
and press the button Save Changes.
The Site URL is the URL you need to use to view your blogs and to give it to your friends.
On the page that appears enter the description for your blog and then click the button “Rebuild my site”
On the new page that opens click the button Rebuild.
Now press Close button.
Now click the link “View Site”
Your blog will appear.
Now, having installed Movable Type, it’s time to post your thoughts.
Posting an entry in Movable Type
Open the URL http://10.61.111.93/cgi-bin/mt/mt.cgi from your browser. Replace the IP-Address with your own.
Login with your username and password.
Click the link “Create a new entry on this weblog”.
On the page enter title as “My first post”. In the Entry Body, type “Blogging is exciting”, change the status to “Published” and press “Save”
Now browse to the URL http://10.61.111.93/.
You’ll see that your post has been published.
Great! You’ve completed installing Movable Type 3.3. and also posted a new entry.
Happy Blogging.
No comments yet