<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/mimisouji/">
    <title>mimisouji @ wiki</title>
    <link>http://w.atwiki.jp/mimisouji/</link>
    <atom:link href="https://w.atwiki.jp/mimisouji/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>mimisouji @ wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2007-08-29T15:32:48+09:00</dc:date>
    <utime>1188369168</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/13.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/6.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/10.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/12.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/11.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/mimisouji/pages/15.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/13.html">
    <title>Web制作について</title>
    <link>https://w.atwiki.jp/mimisouji/pages/13.html</link>
    <description>
          </description>
    <dc:date>2007-08-29T15:32:48+09:00</dc:date>
    <utime>1188369168</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/mimisouji/pages/2.html</link>
    <description>
      　mimisouji@wiki


メニュー
-[[トップページ]]
-[[Web制作について]]
-[[更新履歴]]

----


-[[@wiki FAQ&gt;http://faq.atwiki.jp/]]
-[[@wiki 初心者講座&gt;http://www1.atwiki.jp/faq/]]
-[[@wiki マニュアル&gt;http://doc.atwiki.jp/]]
-[[@wiki 便利ツール &gt;http://atwiki.jp/tools/]]
-[[@wiki&gt;http://atwiki.jp]]

// リンクを張るには &quot;[&quot; 2つで文字列を括ります。
// &quot;&gt;&quot; の左側に文字、右側にURLを記述するとリンクになります    </description>
    <dc:date>2007-08-29T15:29:56+09:00</dc:date>
    <utime>1188368996</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/23.html">
    <title>MODx 0.9.6にWordPress ME 2.2.1を導入してみる備忘録(続編)</title>
    <link>https://w.atwiki.jp/mimisouji/pages/23.html</link>
    <description>
      [[Top&gt;トップページ]] &gt; [[Web制作について&gt;Web制作について]] &gt; [[CMS等について&gt;CMS等について]] &gt; [[MODxについて&gt;MODxについて]] &gt; [[MODxで遊ぶ(備忘録)]] &gt; [[MODx 0.9.6にWordPress ME 2.2.1を導入してみる備忘録]](続編)

* 此処までのWordPress用設定のまとめ
 WordPressRouter plugin:
  define (&#039;PAGE_WP_TOP&#039;, &#039;48&#039;);
  define (&#039;WORDPRESS_ALIAS&#039;, &#039;wordpress_blog&#039;);
  system event: OnWebPageInit

 WordPressIntegrator snippet:
  define (&#039;WPMODX_WP_PATH&#039;, &#039;/wordpress&#039;);
  define (&#039;WPMODX_TITLE&#039;, &#039;the title to show if the given one is blank&#039;);

 WordPress窓口 document:
  Document ID: 48
  Document 内容: [!WordPressIntegrator!] 

 MODx setting:
  alias path: off

　この状態で、MODx home pageをpreviewすると、上部のWayfinder menuに「WordPress」というメニューが追加されている。link先は、「サイト/48.html」

　これをclickすると、&quot;MODx parse Error&quot;が出る。/wordpress/wp-config.phpが見つからないとの事。そこで、
 WordPressIntegrator snippet:
  define (&#039;WPMODX_WP_PATH&#039;, &#039;C:\Program Files/xampp/htdocs/modx/wordpress&#039;);
  define (&#039;WPMODX_TITLE&#039;, &#039;the title to show if the given one is blank&#039;);
つまり、WPMODX_WP_PATHを、ドライブ名から絶対パスで記入してみた。

　そしてhomeから&quot;WordPress&quot; buttonをclickすると、またもや&quot;MODx Parse Error&quot;。しかし、エラーの箇所が変わった。今回は、
 Error:  mysql_num_fields(): supplied argument is not a valid MySQL result resource   
 Error type/ Nr.:  Warning - 2   
 File:  C:\Program Files\xampp\htdocs\modx\wordpress\wp-includes\wp-db.php   
 Line:  205   
 Line 205 source:  while ($i &lt; @mysql_num_fields($this-&gt;result)) {  
つまり、「wordpress/wp-includes/wp-db.phpの205行目にあるmysql_num_fields()関数に渡す引数がおかしいですよ。」と言っている。

　はてさて、どうしたものか。
　気分転換に&quot;MODx integrator&quot;で検索してみると、tkfmさんのサイトにあるブログで、
- WordPressME 2.2.1
- MODx 0.9.6.1
- WordPress Integrator 1.2.0
での[[tkfmさん自身の動作報告&gt;http://tkfm.net/log/eid213.html]]が見つかった。0.9.6.1だって？そんなversionあったかな。currentなのかな。
　ご本人のコメントにある様に、PHP versionは5でないといけない様だ。まずは我が家のPHPのversionを確認しよう。

　[[xampp 1.5.5 readme_en.txt]]によれば、xampp 1.5.5には、PHP 5.2.0と4.4.4が同梱されているようだが、phpinfoを確認する限り、我が家ではPHP 5.2.0が動作している様だ。

* アドバイスを頂いてparse errorを回避、blog記事が表示される。
　なんと、tkfmさん御自らアドバイスを頂く光栄に浴し、&quot;MODx parse Error&quot;を回避する事に成功した。施した対策は、wordpress/wp-includes/wp-db.phpの194行目にあるif文のpreg_match文字列の中の(insert|delete|update|replace)を(set|insert|delete|update|replace)、つまりset(大文字、小文字どちらでもparse error回避に有効だった)を加えるという点だ。
　これにより、WordPressのblog記事部分が表示された。
　但し、MODx管理画面のイベントログコーナーにて、
 Assigning the return value of new by reference is deprecated
というエラーが発生する様になった。表向きは動作に支障ない様だが、どうやったらこのエラーを除去できるか、今後の検討課題である。



Updated on &amp;update().    </description>
    <dc:date>2007-08-22T16:14:46+09:00</dc:date>
    <utime>1187766886</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/21.html">
    <title>MODx 0.9.6にWordPress ME 2.2.1を導入してみる備忘録</title>
    <link>https://w.atwiki.jp/mimisouji/pages/21.html</link>
    <description>
      [[Top&gt;トップページ]] &gt; [[Web制作について&gt;Web制作について]] &gt; [[CMS等について&gt;CMS等について]] &gt; [[MODxについて&gt;MODxについて]] &gt; [[MODxで遊ぶ(備忘録)]] &gt; MODx 0.9.6にWordPress ME 2.2.1を導入してみる備忘録

　MODxのblog機能を強化する為、WordPress ME 2.2.1をMODxに埋め込んでみる。
　WordPress Integratorというものが出ているらしい。2007/04/21にversion 1.2.0がreleaseしている。
　兎に角、WordPressを触るのは初めてなのだ。一体どんなblog applicationなのだろう。

* 原材料
- MODx 0.9.6
- WordPress ME 2.2.1
- WordPress Integrator 1.2 &lt;&lt; [[ここ&gt;http://nanabit.net/modx/wordpress-integrator.html]]から
　この組み合わせでの完全な(つまり素人にも分かる)導入解説がないので、不安一杯の進行である。

* WordPress MEを展開する。
　[[WordPress Japan&gt;http://wordpress.xwd.jp/]]よりWordPress ME 2.2.1をdownloadし、これを解凍、wordpressというdirectory毎、xampp/htdocs/modx/にcopyする。

* WordPress ME 2.2.1のdirectory構造
　配布時のdirectory構造は以下の通り(xampp/htdocs/modx/以下)。
 wordpress/ ・・・WordPress install directory
 wordpress/wp-admin
 wordpress/wp-content
 wordpress/wp-includes
　wordpress/にはindex.phpやwp-config-sample.php、wp-setting.php、readme.htmlがある。
　wordpress/wp-includes/にはwp-db.phpがある。

* 参考にした資料
- WordPress Japanの[[インストールガイド&gt;http://wordpress.xwd.jp/begin/install.php#4]]
- 7bitの[[WordPress integrator導入ガイド&gt;http://nanabit.net/modx/wordpress-integrator.html]] &lt;&lt; Integratorはここから頂いた。
- 7bitの[[MODx掲示板&gt;http://nanabit.net/b/?tid=1162654167]]

* wp-config.phpを準備する
　wordpress/wp-config-sample.phpを以下のように編集し、wp-config.phpとして保存する。
 databese name: modx // MODxと同じdatabase名にする
 MySQL username: **** // mySQLのアカウント
 MySQL password: **** // mySQLのアカウント
 database table prefix: wp_test1_ // なんとなくtest1と書き加えてみる

* wp-setting.phpを編集する
　wordpress/wp-setting.phpにある、&quot;=&amp;&quot;という記述(5箇所)を&quot;=&quot;に書き換える。

* wp-db.phpに追記する
　wordpress/wp-includes/wp-db.phpの77行目付近に、
 if ( !empty($this-&gt;charset) &amp;&amp; version・・・
というif文があるので、この直下の
 $this-&gt;query(&quot;SET NAMES &#039;$this-&gt;charset&#039;&quot;);
と
 $this-&gt;select($dbname);
との間に
 mysql_query(&quot;SET NAMES UTF8;&quot;, $this-&gt;dbh);
を挿入する。

* WordPress ME install programを起動する
　browserから「ホスト名:port/wordpress/」にaccessして、install programを起動。

** First Step
 ブログ名: mimisouji&#039;s blog
 メールアドレス: *****@*******
　blog nameはお好みで命名。mail addressは届くものを記入。
　検索エンジンへの登録可否はお好みで。
　&quot;Continue to Second Step&quot; buttonをclick。

** Second Step
 「インストール作業が終了しました。」
 「より多くの難関を期待していましたか？」
期待していました。わっはっは。
　自動生成・表示されたlogin nameとpasswordを控えておく。
　login addressは、wordpress/wp-login.phpだそうだ。

* mimisouji&#039;s blog 管理画面へ入る。
　wordpress/login.phpより、先程install Second Stepにて与えられたlogin accountでloginする。
　お、blog管理画面登場。ダッシュボードってなんじゃ。
　xampp/mysql/data/modx/には、wp_test1_という接頭辞の付いたファイルが沢山生成されているのを確認した。

* 管理画面にて設定をすすめる
　7bitの[[WordPress integrator導入ガイド&gt;http://nanabit.net/modx/wordpress-integrator.html]]によれば、
 MODxのフレンドリーURLに処理が渡るのは、URIに対応するパスが
 存在しない(!-f, !-d)場合に限られるため、実際のfile system上に
 WORDPRESS_ALIASで指定する&#039;blog&#039;等のfileやdirectoryが
 存在しないように注意してください。
とある。!-f, !-dと言うのが分からないが、file/directory名の何れにも実在しない名前を「サイト名:port/{WORDPRESS_ALIAS値}」として、WordPressのホームページアドレスとすればよいという意味だと解釈する。
　WORDPRESS_ALIASの値(即ちsnippet配置documentのalias値)を、&quot;wordpress_blog&quot;として
　各種設定 &gt; 一般設定 &gt; 「ホームページアドレス(get_settings(&#039;home&#039;)の値)」の欄に「サイト名:port/wordpress_blog」と記入する。「設定を更新」buttonをclick。
　各種設定 &gt; 一般設定にある「WordPressのアドレス」と、今変更した「ホームページのアドレス」として記入したURIは、databaseに記録されるとかなんとかNetから情報を得た。もしアクセスできなくなった場合の修正が(設定ファイル(ASCII text)の編集では済まないという意味で)難しいと言う事だ。

　各種設定 &gt; 表示設定 &gt; 「ブラウザの要求に応じて投稿内容を圧縮する(gzip)」にcheckされていない事を確認。

　ユーザー &gt; ユーザー設定 にて、管理人mimisoujiを登録しておく。一旦sign outし、mimisoujiでもlogin出来る事を確認。再びsign out。

　因みに、今この状態でwordpress/login.phpのlgin画面から、欄外にある「mimisouji&#039;s blogへ」をclickすると、MODxの&quot;404(page Not Found&quot;の画面が表示される。

* MODx plugin &quot;WordPressRouter&quot;を作成
　落としてきたIntegratorパッケージ(zip書庫)の中にある、wordpressrouter.1.2.0.phpの中身をそのままcopyして、MODx plugin &quot;WordPressRouter&quot;を作成する。
　但し、WordPress管理画面でホームページアドレスとして記入した様に、
 WORDPRESS_ALIAS値: wordpress_blog
としておく。&quot;PAGE_WP TOP&quot;の値は後で変更するかも知れないが、ひとまず置いておく。
　plugin作成画面にて、
 プラグインの説明: 「WordPressへご案内」
 カテゴリー: News, Blog and Catalogs
とでもしておく。system eventは、&quot;OnWebpageInit&quot;にcheckし、念の為、MODxのalias path設定をoffにしておく。alias path設定をonにしておくと、WordPress部分の先頭ページしか表示されないらしい。


* MODx snippet &quot;WordPRessIntegrator&quot;を作成する
　落としてきたIntegratorパッケージ(zip書庫)の中にある、wordpressintegrator.1.2.0.phpの中身をそのままcopyして、MODx snippet &quot;WordPressIntegrator&quot;を作成する。
　但し、
 define (&#039;WPMODX_WP_PATH&#039;, &#039;/wordpress&#039;);
としておく。｀WPMODX_TITLE値はよく分からないのでそのままにしておく。
 snippetの説明: 「WordPressへご案内」
 カテゴリー: News, Blog and Catalogs

* WordPressへの窓口となるdocumentを作成する
　MODxの管理画面から、documentを作成する。
 document alias: &quot;wordpress_blog&quot;
 本文: [[!WordPressIntegrator!]]
　また、このdocumentのID(menu indexでなくdocumento ID)を覚えておいて、&quot;WordPressRouter&quot; pluginの&quot;PAGE_WP TOP&quot;の値にこのIDを記入する。
　今回作成したdocumentのIDは48だったので、これを採用。

* 此処までのWordPress用設定のまとめ
 WordPressRouter plugin:
  define (&#039;PAGE_WP_TOP&#039;, &#039;48&#039;);
  define (&#039;WORDPRESS_ALIAS&#039;, &#039;wordpress_blog&#039;);
  system event: OnWebPageInit

 WordPressIntegrator snippet:
  define (&#039;WPMODX_WP_PATH&#039;, &#039;/wordpress&#039;);
  define (&#039;WPMODX_TITLE&#039;, &#039;the title to show if the given one is blank&#039;);

 WordPress窓口 document:
  Document ID: 48
  Document 内容: [!WordPressIntegrator!] 

 MODx setting:
  alias path: off

　まだこのままでは上手く動かない。
[[MODx 0.9.6にWordPress ME 2.2.1を導入してみる備忘録(続編)]]へつづく。

Updated on &amp;update().    </description>
    <dc:date>2007-08-22T16:12:20+09:00</dc:date>
    <utime>1187766740</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/20.html">
    <title>CMS等について</title>
    <link>https://w.atwiki.jp/mimisouji/pages/20.html</link>
    <description>
      [[Top&gt;トップページ]] &gt; [[Web制作について]] &gt; CMS等について

　CMS等についての情報をまとめています。

- [[MODxについて]]
- [[WordPressについて]]
- [[Movable Typeについて]]
- [[XOOPS&gt;http://xoopscube.jp/]]
- [[pukiwiki plus!&gt;http://pukiwiki.cafelounge.net/plus/?FrontPage]]
- [[MediaWikiについて]]

Updated on &amp;update().    </description>
    <dc:date>2007-08-17T12:23:58+09:00</dc:date>
    <utime>1187321038</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/6.html">
    <title>MODxで遊ぶ(備忘録)</title>
    <link>https://w.atwiki.jp/mimisouji/pages/6.html</link>
    <description>
          </description>
    <dc:date>2007-08-13T15:18:57+09:00</dc:date>
    <utime>1186985937</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/10.html">
    <title>MODx 0.9.6 upgrade備忘録</title>
    <link>https://w.atwiki.jp/mimisouji/pages/10.html</link>
    <description>
      [[Top&gt;トップページ]] &gt; [[Web制作について&gt;Web制作について]] &gt; [[CMS等について&gt;CMS等について]] &gt; [[MODxについて&gt;MODxについて]] &gt; [[MODxで遊ぶ(備忘録)&gt;MODxで遊ぶ(備忘録)]] &gt; MODx 0.9.6 upgrade備忘録

* MODxをupgradeしてみる(0.9.5 -&gt; 0.9.6)
　mimisouji 2007/08/09 10:04

** とにかく
　前回いじったのが去年の事で、その時[[xampp&gt;http://www.apachefriends.org/]]やMODxの
何処をどう変更したのかさっぱり覚えていない。今回はメモを取りながら進めていこうと思う。何れ役に立つ事もあろう。

** MODx install directory周辺のdirectory構造
　MODx 0.9.5はxamppと共に導入したので、今は、
 xampp/
 xampp/apache/
 xampp/apache/conf/ ここにapacheのhttpd.confがある。
 xampp/htdocs/ 
 ・・・xampp同梱apacheのdefaultのDocumentRoot(上記httpd.confで設定)
 xampp/htdocs/modx/ ここにmodxパッケージの内容を展開する。
 ・・・私は以前httpd.confにて、ここをDocumentRootに変更した。
 xampp/mysql/ mySQLのinstall directory
 xampp/mysql/data/ databaseが居るdirectory

** フォルダの差し替え　　
　0.9.5のまま放置していたので、これを0.9.6にupgradeしてみることにした。0.9.5では、昔上書きしたのがよくなかったのか、設定画面の日本語表示で一部文字化けが出ていたので、0.9.5のフォルダを丸ごと別の場所に移し、まっさらな0.9.6解凍フォルダを持ってくる事にした。
　尚、0.9.5の時に作ったページは1つだけだったので、フォルダ差し替え前にこのページだけ引き上げておく。

** 参考資料
　さて、次は何をやるんだっけ。0.9.6解凍フォルダ内にある[[README-ja.txt&gt;MODx 0.9.6 README-ja.txt]]を覗いてみよう。
　ここには色々と細かい手順が書いてある。設定ファイルを書き換えてrenameして等々。面倒だなあ。
　このreadmeの手順を忠実に追うか、前回の設定ファイルを持ってくるか、或いは、[[MODx本&gt;http://www.amazon.co.jp/gp/search?keywords=MODx%82%C5%82%C2%82%AD%82%E9&amp;index=blended&amp;tag=lunascape-22&amp;__mk_ja_JP=%83J%83%5E%83J%83i&amp;Go.x=6&amp;Go.y=8&amp;linkCode=qs]]に従うか。
　今は[[MODx本&gt;http://www.amazon.co.jp/gp/search?keywords=MODx%82%C5%82%C2%82%AD%82%E9&amp;index=blended&amp;tag=lunascape-22&amp;__mk_ja_JP=%83J%83%5E%83J%83i&amp;Go.x=6&amp;Go.y=8&amp;linkCode=qs]]を読み進めているので、これに従ってみよう。
　[[MODx本&gt;http://www.amazon.co.jp/gp/search?keywords=MODx%82%C5%82%C2%82%AD%82%E9&amp;index=blended&amp;tag=lunascape-22&amp;__mk_ja_JP=%83J%83%5E%83J%83i&amp;Go.x=6&amp;Go.y=8&amp;linkCode=qs]]によれば、MODx install directoryにある、ht.accessのうち、
 #php_flag register_globals Off
をuncomment(追加snippetや追加plugin導入時に就けるsecurity hole発生を防止するためらしい)したら、このファイルをrenameもせぬまま、ブラウザからのインストールを開始してもいいそうだ。本当なら楽だなあ。やってみるかな。

** ht.accessを編集
　MODx instal directoryにあるht.accessファイルを、配布時のオリジナル内容をht.access.origの名前でbackupした後、上に書いたとおり、
 #php_flag register_globals Off
をuncommentする。

** index.phpにアクセス
　ブラウザからMODx install directoryにあるindex.php(xampp/htdocs/modx/index.php)にアクセスしてみる。
　ん、&quot;Object not found&quot;と表示された。なんでやろう。index.phpファイルはxampp/htdocs/modx/に居るのに。
　apacheの設定ファイル(xampp/apache/conf/httpd.conf)の内容を確認してみると、DocumentRootは現在、xampp/htdocs/modxになっている(昔私がいじったんやったなあ)。

　xampp/apache/conf/httpd.confのDocumentRoot項目をdefaultのxampp/htdocsにしておくと、「サイト名」にbrowserからaccessした場合、xamppの設定画面が出てきてしまう。これを防ぐために、昔の私がDocumentoRootを変更したんやなあ。

　あ、この状態だと、「サイト名:port/modx/」にすると、xampp/htdocs/modx/以下じゃなくて、xampp/htdocs/modx/modx/以下を探そうとしてしまうんやなかろうか。そんなdirectoryは実在しないから404が返事されるんやな。
　よしそういうことなら、「サイト名:port/」とか「サイト名:port/index.php」にbrowserからアクセスしてみよう。確か、xampp/apache/conf/httpd.confには、
 &lt;IfModule dir_module&gt;
 DirectoryIndex index.php index.php4 index.php3 \
 index.cgi index.pl index.html index.htm \
 index.shtml index.phtml
 &lt;/IfModule&gt;
という記述があったから、今回はfile名を書かなくてもapacheがindex.phpを勝手に見つけて表示してくれるはず。

　おし、赤枠の&quot;install now&quot;が出てきた。

** install画面を進める
　&quot;install now&quot;をclickし、言語選択メニューのある&quot;Revolutionizing the CMS world&quot;画面へ。日本語は選択出来ないようなのでenglishのまま、&quot;Next&quot;ボタンをclick。
　&quot;Welcome to the MODx installation program&quot;の画面。&quot;Begin&quot;ボタンをclick。
　&quot;MODx License Agreement&quot;画面。同意のcheck boxにcheckして&quot;Next&quot;ボタンをclick。
　Installation Modeを選択する画面。私はdatabaseとかいうのがよく分からない。ひとまず&quot;New Installation&quot;を選択し、&quot;Next&quot; buttonをclick。
　&quot;Connection Information&quot;と&quot;Default Admin User&quot;の画面。うわ、database名とかTable prefix名とかが出てきた。
　たしかMySQLの設定やったな。勉強をさぼったつけが回ってきたな。

** databaseの準備状態を確認
　[[MODx本&gt;http://www.amazon.co.jp/gp/search?keywords=MODx%82%C5%82%C2%82%AD%82%E9&amp;index=blended&amp;tag=lunascape-22&amp;__mk_ja_JP=%83J%83%5E%83J%83i&amp;Go.x=6&amp;Go.y=8&amp;linkCode=qs]]を参考に、phpMyAdminを起動させようとするが、ここで手が止まる。
　xampp/apache/conf/httpd.confのDocumentRootをxampp/htdocsからxampp/htdocs/modxに変更してしまっているので、browserからxampp管理画面やphpMyAdminの画面を見る事が出来ない。mysqlによるdatabase管理をcommand lineで命令する方法も知らない。困った。

　xampp/mysql/data/には、modxと言う名前のdirectoryがあった。どうやら以前この名前でdatabaseを作成したらしい。また、xampp/mysql/data/modx/には、modx_という接頭辞の付いたfile名がずらりと並んでいた。この事が参考になりそうだ。

** &quot;Connection Information/Dafault Admin User&quot;画面の設定
　先ず、&quot;Connection information&quot;の項目で、
 Database name: modx
 Table prefix: modx_0_9_6_test1_
 Collation: utl8_general_ci
と設定する。databaseのlogin dataは、
 database host: localhost
 database login name: *****
 database password: **********
　このlogin nameとpasswordは、databaseに接続する際のaccount設定で、通常、mySQLのinstall時等に設定され、mysqlのmy.ini等に記載されている。んん、本当はよく知らない。昔設定したような気がするだけの事。
　account設定を入力したらdatabaseに接続できるかどうかを&quot;Test connection&quot;ボタンをclickして確認する。
　次に&quot;Default Admin User&quot;の項目。これは、これから作成するMODxサイトの管理accountだから、この場で適当に決める。忘れないようにしよう。
　&quot;Next&quot; buttonをclick。

** &quot;Optional Items&quot;画面
　一番上の&quot;Sample Web Site&quot;check boxにcheckするかどうかだが、これは、新規installの場合はcheckしておいて問題ないだろう。upgradeの場合は、サイト設定を上書きされる可能性があるので注意だ。
　今回のケースでは、ページを別に控えてあるのでcheckしておいて問題ないだろう。&quot;install&quot;butoonをclick。
　installは無事終了したようだ。xampp/mysql/data/modx/以下にはmodx_0_9_6_test1_という接頭辞の付いたfile名がずらっと追加された。
　&quot;Install results&quot;画面で全ての項目が正常にinstallされた事を確認し、&quot;Remove the install folder and files from my website&quot;にcheckを入れて&quot;Close&quot;buttonをclick。

** login画面登場　そして、サイト管理画面との再会
　MODxサイトの管理accountでlogin。なつかしいサイト管理画面との再会。
　&quot;Configuration check&quot;にて、&quot;Config fileがwritableになってますよ&quot;と警告が出ている。ご丁寧にどうも。
　[[MODx本&gt;http://www.amazon.co.jp/gp/search?keywords=MODx%82%C5%82%C2%82%AD%82%E9&amp;index=blended&amp;tag=lunascape-22&amp;__mk_ja_JP=%83J%83%5E%83J%83i&amp;Go.x=6&amp;Go.y=8&amp;linkCode=qs]]に従い、xampp/htdocs/modx/install/　以下が削除された事を確認。次いで、xampp/htdocs/modx/ht.accessを.htaccessにrenameする(install programがrenameしてくれる訳じゃないのね)。
　次に上記警告に従い、xampp/htdocs/modx/manager/includes/config.ini.phpファイルをread onlyにする。

　これでサイトへのアクセスはbrowserにて、「サイト名:port/」、管理画面へのアクセスは「サイト名:port/manager/」を指定するという形になった。

Updated on &amp;update().    </description>
    <dc:date>2007-08-12T16:44:22+09:00</dc:date>
    <utime>1186904662</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/12.html">
    <title>MODxについて</title>
    <link>https://w.atwiki.jp/mimisouji/pages/12.html</link>
    <description>
          </description>
    <dc:date>2007-08-12T15:49:50+09:00</dc:date>
    <utime>1186901390</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/11.html">
    <title>MODx 0.9.6 設定備忘録</title>
    <link>https://w.atwiki.jp/mimisouji/pages/11.html</link>
    <description>
      * 日本語環境にする
**　管理画面の日本語化
　管理画面にて、ツール→MODx設定→サイト。言語をJapanese-utf8に変更。

**　editor確認
　管理画面にて、ツール→MODx設定→インターフェイスとその他の機能。
- 使用エディタがTinyMCEに鳴っている事を確認。
- フロントエンドエディタの言語をJapanese-utf8に設定。

* 送信者メールアドレスの設定。
　管理画面にて、ツール→MODx設定→ユーザー。送信者メールアドレスを記入。

* friendly URLの設定
　friendly URLを有効にする。
　管理画面にて、ツール→MODx設定→フレンドリーURL。フレンドリーURL使用にYes。その場で詳細な設定メニューが展開される。
- 「フレンドリーエイリアス」にYes。
- 「エイリアスパスを使用」にYes。
- 「重複エイリアスを許可」にYes。
- 「自動エイリアス生成」はNo。

* セキュリティをいじる
　xampp/htdocs/modx/.htaccessを編集する。これまでは
 #php_flag register_globals Off
をuncommentしただけだが、これに更に以下の行を加える。
 Options None
 &lt;FilesMatch &quot;^\.ht&quot;&gt;
  Order allow,deny
  Deny from all
 &lt;/FilesMatch&gt;
このうち、&quot;Options None&quot;にすると、自分のサイトが403で見られなくなった。
ひとまずこの行をcomment outしておく。
　つまり、現時点(2007/08/09)の.htaccessと配布時のht.accessとの差分は、
 php_flag register_globals Off
 #Options None
 &lt;FilesMatch &quot;^\.ht&quot;&gt;
  Order allow,deny
  Deny from all
 &lt;/FilesMatch&gt;    </description>
    <dc:date>2007-08-10T11:43:03+09:00</dc:date>
    <utime>1186713783</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/mimisouji/pages/15.html">
    <title>xampp 1.5.5 readme_en.txt</title>
    <link>https://w.atwiki.jp/mimisouji/pages/15.html</link>
    <description>
      * ApacheFriends XAMPP (basic package) version 1.5.5

  + Apache 2.2.3
  + MySQL 5.0.27
  + PHP 5.2.0 + PHP 4.4.4 + PEAR
  + PHP-Switch win32 1.0 (please use the &quot;php-switch.bat&quot;) 
  + XAMPP Control Version 2.3 from www.nat32.com	
  + XAMPP Security 1.0	
  + SQLite 2.8.15
  + OpenSSL 0.9.8d
  + phpMyAdmin 2.9.1.1
  + ADOdb 4.93
  + Mercury Mail Transport System v4.01b
  + FileZilla FTP Server 0.9.20
  + Webalizer 2.01-10
  + Zend Optimizer 3.0.2
  + eAccelerator 0.9.5 for PHP 5.2.0 (please comment out in the php.ini)
 
** System Requirements:
 
  + 64 MB RAM (RECOMMENDED)
  + 200 MB free fixed disk 
  + Windows 98, ME
  + Windows NT, 2000, XP (RECOMMENDED)

---------------------------------------------------------------

** QUICK INSTALLATION:

[NOTE: Unpack the package to your USB stick or a partition of your choice.
There it must be on the highest level like E:\ or W:\. It will 
build E:\xampp or W:\xampp or something like this. Please do not use the &quot;setup_xampp.bat&quot; for an USB stick installation!]   

Step 1: Unpack the package into a directory of your choice. Please start the 
&quot;setup_xampp.bat&quot; and beginning the installation. Note: XAMPP makes no entries in the windows registry and no settings for the system variables.

Step 2: If installation ends successfully, start the Apache 2 with 
&quot;apache_start&quot;.bat&quot;, MySQL with &quot;mysql_start&quot;.bat&quot;. Stop the MySQL Server with &quot;mysql_stop.bat&quot;. For shutdown the Apache HTTPD, only close the Apache Command (CMD).

Step 3: Start your browser and type http://127.0.0.1 or http://localhost in the location bar. You should see our pre-made
start page with certain examples and test screens.

Step 4: PHP (with mod_php, as *.php, *.php3, *.php4, *.phtml), Perl by default with *.cgi, SSI with *.shtml are all located in =&gt; C:\xampp\htdocs\.
Examples:
- C:\xampp\htdocs\test.php =&gt; http://localhost/test.php
- C:\xampp\myhome\test.php =&gt; http://localhost/myhome/test.php

Step 5: XAMPP UNINSTALL? Simply remove the &quot;xampp&quot; Directory.
But before please shutdown the apache and mysql.

---------------------------------------------------------------

** PASSWORDS:

1) MySQL:

   User: root
   Password:
   (means no password!)

2) FileZilla FTP:

   User: newuser
   Password: wampp 

   User: anonymous
   Password: some@mail.net

3) Mercury: 

   Postmaster: postmaster (postmaster@localhost)
   Administrator: Admin (admin@localhost)

   TestUser: newuser  
   Password: wampp

4) WEBDAV:

   User: wampp
   Password: xampp

---------------------------------------------------------------

** ONLY FOR NT SYSTEMS! (NT4 | Windows 2000 | Windows XP):

- \xampp\apache\apache_installservice.bat 
  ===&gt; Install Apache 2 as service

- \xampp\apache\apache_uninstallservice.bat 
  ===&gt; Uninstall Apache 2 as service

- \xampp\mysql\mysql_installservice.bat 
  ===&gt; Install MySQL as service

- \xampp\mysql\mysql_uninstallservice.bat 
  ===&gt; Uninstall MySQL as service

==&gt; After all un- / installations of services, better restart system!

----------------------------------------------------------------

** A matter of security (A MUST READ!)

As mentioned before, XAMPP is not meant for production use but only for developers in a development environment. The way XAMPP is configured is to be open as possible and allowing the developer anything he/she wants. For development environments this is great but in a production environment it could be fatal. Here a list of missing security 
in XAMPP:

- The MySQL administrator (root) has no password.
- The MySQL daemon is accessible via network.
- phpMyAdmin is accessible via network.
- Examples are accessible via network.

To fix most of the security weaknesses simply call the following URL:

	http://localhost/security/

The root password for MySQL and phpMyAdmin, and also a XAMPP directory protection can being established here.

---------------------------------------------------------------

** Apache Notes:

(1) In contrast of apache 1.x, you can not stop the apache 2.x with the command &quot;apache -k shutdown&quot;. These functions only for an installations as service by NT systems. So, simply close
the Apache START command for shutdown.
  
(2) To use the experimental version of mod_auth_mysql remove the # in the httpd.conf. Detailed information about this topic can be found on the left menu of XAMPP, once you started it.

(3) To use Mod_Dav load the Modules mod_dav.so + mod_dav_fs.so in the &quot;httpd.conf&quot; by removing the # on 
the beginning of their lines. Then try http://127.0.0.1:81 (NOT for Microsoft Frontpage, but for Adobe Dreamweaver!)

---------------------------------------------------------------

** MYSQL NOTES:

(1) The MySQL server can be started by double-clicking (executing) mysql_start.bat. This file can be found in the same folder you installed XAMPP in, most likely this will be C:\xampp\.
The exact path to this file is X:\xampp\mysql_start.bat, where &quot;X&quot; indicates the letter of the drive you unpacked XAMPP into. This batch file starts the MySQL server in console mode. The first intialization might take a few minutes.
Do not close the DOS window or you&#039;ll crash the server!
To stop the server, please use mysql_shutdown.bat, which is located in the same directory.

(2) To use the MySQL Daemon with &quot;innodb&quot; for better performance, please edit the &quot;my&quot; (or &quot;my.cnf&quot;) file in the C:\xampp\mysql\bin directory or for services the c:\my.cnf for windows NT/2000/XP. In there, activate the &quot;innodb_data_file_path=ibdata1:30M&quot; statement. Attention, &quot;innodb&quot; is not recommended for 95/98/ME.
To use MySQL as Service for NT / 2000 / XP, simply copy the &quot;my&quot; / &quot;my.cnf&quot; file to &quot;C:\my&quot;, or &quot;C:\my.cnf&quot;. Please note that this file has to be placed in C:\ (root), other locations are not permitted. Then execute the &quot;mysql_installservice.bat&quot; in the mysql folder.

(3) MySQL starts with standard values for the user id and the password. The preset user id is &quot;root&quot;, the password is &quot;&quot; (= no password). To access MySQL via PHP with the preset values, you&#039;ll have to use the following syntax:

	mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;);

If you want to set a password for MySQL access, please use of MySQL Admin.
To set the passwort &quot;secret&quot; for the user &quot;root&quot;, type the following:

	C:\xampp\mysql\bin\mysqladmin.exe -u root -p secret
    
After changing the password you&#039;ll have to reconfigure phpMyAdmin to use the new password, otherwise it won&#039;t be able to access the databases. To do that, open the file config.inc.php in \xampp\phpmyadmin\ and edit the following lines:

	$cfg[&#039;Servers&#039;][$i][&#039;user&#039;]            = &#039;root&#039;;   // MySQL User
	$cfg[&#039;Servers&#039;][$i][&#039;auth_type&#039;]       = &#039;http&#039;;   // HTTP authentification

So first the &#039;root&#039; password is queried by the MySQL server, before phpMyAdmin may access.
  	    	
---------------------------------------------------------------    

** Have a lot of fun! | Viel Spaﾟ! | Bonne Chance!    </description>
    <dc:date>2007-08-09T19:14:15+09:00</dc:date>
    <utime>1186654455</utime>
  </item>
  </rdf:RDF>
