Ever wanted to share your thoughts with the world? Movable Type is a popular blogging application, free for personal use.
This HOWTO describes how to get it installed on your server. It is based on the community Documentation for version 4.0.
First, you will need to install some necessary (and some optional) Perl modules. CPAN is the source
of those modules. Start by checking you have CPAN installed: apt-get install perl-CPAN
.
If this is the first time you have made CPAN modules, run perl -MCPAN -e shell
. When it asks you if you
are you ready for manual install say no. Then it will select the defaults values.
Now install your new modules:
{
perl -MCPAN -e shell << EOJ
install Image::Size File::Spec DB_File DBD::mysql CGI::Cookie LWP::UserAgent SOAP::Lite
File::Temp
exit
EOJ
}
Make sure that your Apache /var/www/html Directory allows script execution (i.e. the ExecCGI option). E.g:
{
replace "Options Indexes FollowSymLinks" "Options Indexes FollowSymLinks ExecCGI" -- /etc/httpd/conf/httpd.conf
replace "#AddHandler cgi-script .cgi" "AddHandler cgi-script .cgi" -- /etc/httpd/conf/httpd.conf
/etc/init.d/httpd restart
}
Run lynx and complete the form to download Movable Type:
cd ~
lynx http://www.movabletype.org/download.shtml
Prepare some per-install settings:
version=2.64 #set your version here per the filename you downloaded
domainname=`hostname` #or set your domain name here
password=adatabasepasswordforthemovabletypedatabasehere
Extract and install Movable Type:
{
cd /var/www/html
tar xzvf ~/MT-$version-full-lib.tar.gz
mv MT-$version-full-lib movabletype
chmod o+w movabletype
cd movabletype
replace "CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/" "CGIPath http://$domainname/movabletype/" -- mt.cfg
echo "
NoTempFiles 1
ObjectDriver DBI::mysql
Database movabletype
DBUser movabletype" >> mt.cfg
chkconfig --level 35 mysqld on
/etc/init.d/mysql* start
mysql << EOJ
create database movabletype;
GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP ON movabletype.*
TO movabletype@localhost IDENTIFIED BY "$password"
EOJ
echo "$password" > mt-db-pass.cgi
chmod 755 mt*.cgi
echo "Go to a browser an load this URL:
http://$domainname/movabletype/mt-load.cgi"
}
After you load this URL and everything goes OK, then remove the file with the password in it (per the instructions):
rm mt-load.cgi
echo "Now log in as user Melody password Nelson at:
http://$domainname/movabletype/mt.cgi"
Change the username and password of the Melody user.
Append Movable Type to your 'Site URL' e.g. change it from http://yourdomainname/ to http://yourdomainname/movabletype.