初心者だけどPerlが大好き

コードが世界を変える!

MovableTypeのインストールは、ここを参考にしました・・・

たまプラーザ ネットカフェのパソコン ( Win XP Home ) に
XAMPP Movable Type Open Source ( MTOS 4.1 ) を 30 分で構築
http--magical-sound.com

http://magical-sound.ddo.jp/contents/win_xp_tips/mtos4.php#xampp_02


私の覚書としてはMt4をhtdocsに入れたら
cgiのパスを全部書き換えます
#!D:/xampp/perl/bin/perl -w

重要なのは
mt-config.cgiを下記のようにします

################################################################
##################### REQUIRED SETTINGS ########################
################################################################

# The CGIPath is the URL to your Movable Type directory
CGIPath http://localhost/mt4/ ・・・・・ここが重要です

# The StaticWebPath is the URL to your mt-static directory
# Note: Check the installation documentation to find out
# whether this is required for your environment. If it is not,
# simply remove it or comment out the line by prepending a "#".
StaticWebPath http://localhost/mt4/mt-static

#================ DATABASE SETTINGS ==================
# REMOVE all sections below that refer to databases
# other than the one you will be using.

##### MYSQL #####
ObjectDriver DBI::mysql
Database    自分の作ったデータベース名・・・・・ここが重要です
DBUser root
DBPassword   自分がMySQLにつけたパスワード・・・・・ここが重要です
DBHost localhost


で xamppの中には 現在 
htdocs の中に index.htmlと  mt4 と 私のブログ  が並んで入っています。
私のブログは trinity-blog
URLは http://localhost/trinity-blog
パスは D:/xampp/htdocs/trinity-blog


では xamppの中の htdocsにある index.htmlにリンクを張ってみます。
http://localhost/index.html
には  It works! という 簡単な言葉だけがbodyに入力されています。

リンクは こうやって貼ってね<打ったら
a href="http://localhost/trinity-blog" 
でURL打ち込んで  >閉じる。
トリニティのブログですっ
と打って で閉じる

さて どうでしょう。
http://localhost/index.html を開くと

It works!
トリニティのブログですっ 


が表示されていますし
リンクもばっちり 効いています。

これで トップページにブログのリンクが貼れました。