KOMI's profileThat's how I do that.BlogNetwork Tools Help

That's how I do that.

まあ、おいらのお手並みはこんな感じです。

KOMI

Occupation
Location
Interests
自称窓屋でゴザル
MCSE|MCSA|MCDBA|MCSD|MCAD|PMP|花粉症
This person's network is empty (or maybe they're keeping it private).
April 22

ああ、困ったね。そうだね。

ひとまずxpwikiまで立ち上がって安心してしまい、内容がないよう。

追加する気力がないっす。

突如、気づいた。

AntiVirusなんも入ってない。


え~と。


いけませんな。


avast!様を頼りにしていたのだが、なんと、サーバーには入らない。
入れようとしたら怒られた。

いくらWindows Server 2008がセキュアOSであろうと、IIS7がご自慢の
堅牢性を誇ろうとも、無敵という事はありえない。

万が一、侵入を許してしまった時の「保険」として入れておきたいのだが
これでは

無保険自家用車状態

ではないか。

Google先生に聞いてみたが、どうもWindows Server 2008向けの無料
AntiVirus製品は見当たらない。

うへー

April 13

さらに続くよいつまでだ

昨日の続きだぁよ。

Warning [PHP]: include(C:/inetpub/wwwroot/templates_c\%%BA^BAB^BAB8A789%%legacy_site_closed.html.php) [function.include]: failed to open stream: No such file or directory in file C:\inetpub\wwwroot\class\smarty\Smarty.class.php line 1255
Warning [PHP]: include() [function.include]: Failed opening 'C:/inetpub/wwwroot/templates_c\%%BA^BAB^BAB8A789%%legacy_site_closed.html.php' for inclusion (include_path='.;C:\php5\pear') in file C:\inetpub\wwwroot\class\smarty\Smarty.class.php line 1255

こんなん出てます。

このへんを読むと、mainfile.phpの事象と同じかな。

cache
template_c
upload

の読み取り専用のグレーチェックを外し、Usersグループにフルコン。

image
進んだ。


image
はぁ・・・そうですか。


こっからはうち固有の問題だな。
例のグローバルアドレスでアクセスすると、ローカルにリダイレクトされている
動きのせいと思われる。

仕方ないので、mainfile.phpのXOOPS_URLを

http://192.168.X.X

に書き換えて回避。


image
ほらね。

なんだろうね、この動き。


image
ふう。
悪意がたっぷりある人なら、とっくに活用してるでしょうね。


image
ああ、つかれた。
なんてヘタレな手順だ・・・

ではでは。

April 12

線路は続くよどこまでも

日曜日のお買いものを済ませて、頭が切り替わったところでもう一回。
一旦、wwwroot配下のリソースを削除し、もう一度XOOPS資産をコピー。

PHP.iniも再度チェックし、mb_string関連の設定でコメントが何故か入っていた
mbstring方面をコメントアウト。

[mbstring]
; language for internal character representation.
mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
mbstring.internal_encoding = EUC-JP

; http input encoding.
mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_encoding = Off

こんな感じっすかね。

あと、XOOPS公式サイトで、過去ログ。

IISにおけるパーミッションの設定に関して

を読んで

mainfile.phpのアクセス権で、Usersグループにフルコントロール権限を
くれてやるってのはどうよ。

とひらめく。

image
こういう事です。



image
進んだわい。


image
あってるのでGo。


image
右側は教えてやんない。
それいけ~


image
おっちゃん・・・真っ白になっちまった・・・


インストーラーのキャラが

XOOPS_Installer_Chara

こんな感じに見えてきてます。
まじで。

試しにDB Connectのスクリプト書いて試してみたら

Fatal error: Call to undefined function mysql_connect()

とかぬかしやがった。

やれやれ、PHPのインストール時にMySQL入れてねぇじゃねえか。
自爆さん。

PHPのインストーラー再実行して、MySQL追加したらあっさり。

image
動きましたわ。


image
image
なんじゃいな。
普通だな。


image
管理者設定しろ画面。
した。


image
できたワイ。


image
おおお、やっと終わった。


でも、index.phpでアクセスしたら、またアクセス権臭いエラーが出た。

というわけでもう寝るわ。

ではでは。

Retrying to install XOOPS in IIS7!

つーわけでリトライっす。
http://localhost/index.phpから。

image
次へ。


image
まあいいや。
次へ。


image
次へ。


image
ここは何か適当に設定する。


image
設定情報が右側に表示されるさ。
次へ。


image 
・・・
ぉぃ。

サーバーローカルではなぜか詳細が全くひょうじされないので、やむを得ず

%windir%\system32\inetsrv\appcmd.exe set config - ection:system.webServer/httpErrors -errorMode:Detailed

で、リモートでDetail表示。

PHP Warning:  copy(../mainfile.php) [<a href='function.copy'>function.copy</a>]: failed to open stream: Permission denied in C:\inetpub\wwwroot\install\class\mainfilemanager.php on line 52

こんなん出ましたけど。
んだぁよ、アクセス権かいな。

貴重な休日、面倒なので
wwwroot以下すべてに IIS_USER のフルコントロール権限を追加。

こんどはmb_string()でエラー。
面倒だなぁ。

PHP.iniで

extension=php_mbstring.dll

が有効になっていないとだめなんだとさ。
・・・いやいや、有効ですよ。

いい加減、厭になってきましたゾ。

ではでは。

How to install XOOPS on IIS7?

XOOPSの展開。

解凍したパッケージの”INSTALL_ja.html”を参照。

・web rootにhtmlフォルダをコピー
・アクセス権の設定
・DBアクセスアカウントの確認

あたりがキモでせうか。


image
一式コピー。


index.phpはまだ規定のドキュメントにしていないので、URLで

http://hostname/index.php

を入力。


image
かわいい画面が現れる。
次へ。


image
いろいろ注意書き。
次へ。


image
アクセス権は問題ないようで。
次へ。


image
DBの選択肢がmysqlのみか・・・
ひとまず一通り設定して進める。

この後、installerのソースやら、セットアップ用のsql文を眺めていじくった

結果・・・

挫折

いやぁ、SSISでも無いと移行検討すらできないわい。

というわけでMySQLの最新版(5.1.33)をダウンロード。


image
セットアップ開始。


image
最近Defaulterなので、そのままInstallします。


image
Next


image
Next


image
Finish
んで、引き続きConfiguration。


image 
Next


image
Default


image
そんなゴタイソウな負荷がかかるとも思えないので、こぢんまりと。


image
こいつもそそままさ。


image
いいですよ、Installation Pathで。


image
ここだけは、20じゃ少ないし500じゃ多すぎる感じがしたので、Manualで100。


image
Firewallには追加しませぬ。
TCP/IP接続を無効にしようとも考えたけど、ローカル接続で名前付きパイプ
だけが可能ってのも後日、何か憂いがありそうなのでやめた。


image
Bestを尽くしてもらいます。


image
Pathは追加しないでおこうか。


image
パスワード入れろ画面。


image
Execute!

image 
...and Finish.


以上、MySQL終わり。

ではでは。