1. Download Movable Type(MT) 2.64 from www.movabletype.org
2. mkdir mt-2.64 under /var/www/cgi-bin
3. unpack MT 2.64 files to /var/www/cgi-bin/mt-2.64
4. back up mt.cfg to mt.cfg.0, edit mt.cfg file under /var/www/cgi-bin/mt-2.64
#CGIPath http://WWW.YOUR-SITE.COM/PATH/TO/MT/
CGIPath http://raccoon.cymbalsman.com:6999/cgi-bin/mt-2.64/
#DataSource ./db
ObjectDriver DBI::mysql
Database ******
DBUser ******
DBSocket /var/lib/mysql/mysql.sock
DBPort ****
# StaticWebPath /path/to/static-files/
StaticWebPath /mt-2.64-static/
# NoHTMLEntities 1
NoHTMLEntities 1
# PublishCharset Shift_JIS
# PublishCharset GB2312
PublishCharset UTF-8
5. edit mt-db-pass.cgi file, to put password to access MySQL
******
6. run mt-load.cgi
7. mv mt-load.cgi mt-load.cgi.0
8. edit mt-view.cgi file, add a line for UTF-8
$app->{cgi_headers}{-charset} = 'UTF-8';
$app->run;
9. edit extlib/CGI.pm file
#$self->charset('ISO-8859-1');
$self->charset('UTF-8');
#$self->charset('GB2312');
10. cd /var/www/html, mkdir mt-2.64-static, copy images, docs, index.html, style.css from /var/www/cgi-bin/mt-2.64
11. mkdir oureden under /var/www/html, chown -R apache:apache oureden.
12. edit /etc/httpd/conf/httpd.conf file
#AddDefaultCharset ISO-8859-1
AddDefaultCharset UTF-8
13. restart httpd
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
14. Done!
Tuesday, July 11, 2006
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment