- go http://www.movabletype.org, and download the lastest stable version of Movable Type. I’m using MT-2.51-full-lib.tar.
- go http://www.mysql.com, and download the lastest stable version of MySQL database. I’m using mysql-max-3.23.55-pc-linux-i686.tar.
- Install MySQL server on my linux box first.
shell> groupadd mysql
shell> useradd -g mysql mysql
shell> cd /usr/local
shell> gunzip shell> ln -s full-path-to-mysql-VERSI
shell> cd mysql
shell> scripts/mysql_install_db
shell> chown -R root .
shell> chown -R mysql data
shell> chgrp -R mysql .
shell> bin/safe_mysqld –user=mysql &
or
shell> bin/mysqld_safe –user=mysql &
if you are running MySQL 4.x
or
to allow remove connection from another pc, I have to start MySQL with this command “bin/safe_mysqld –user=mysql –skip-grant-tables”. And I “cp /usr/local/mysql/support-files/mysql.server /etc/rc.d/init.d/”. So, MySQL server will start automatically at boot time. - Modify /etc/httpd/conf/httpd.conf to let Apache eval cgi
script:
<Directory>
Options FollowSymLinks
Options +ExecCGI (Note: NEW ADDED)
AllowOverride None
</Directory>
AddHandler cgi-script .cgi (Note: NEW ADDED) - Install MySQL program on the same box as running Movable Type.
- Install — for connecting MySQL from Perl.
go http://www.mysql.com/downloads/api-dbi.html/, download :
DBI-1.18.tar.gz
Data-ShowTable-3.3.tar.gz
Msql-Mysql-modules-1.2216.tar.gz
For each of these three .gz fils, unzip first, and as root, run :
shell> perl Makefile.PL
shell> make
shell> make test
shell> make install - On the MySQL pc, run this command to test whether you can connect to MySQL server:
shell> mysql -h HOST -u USER
After login, run this for testing:
mysql> SELECT VERSION(), CURRENT_DATE; - go http://www.movabletype.org/docs/mtinstall.html, to install Movable Type. Test with “http://www.your-site.com/mt/mt-check.cgi”, and with “http://www.your-site.com/mt/mt-load.cgi” to initialize the system. (Have to remove mt-load.cgi from the “Movable Type” directory afterwards.)
- go to “http://www.your-site.com/mt/mt.cgi” to login. The
first time, log in with the author name Melody and the password
Nelson.
April 9, 2004
Setup MovableType in Linux
Comments Off on Setup MovableType in Linux
No Comments
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.