FrontPage Server Extensionの詳細については,Microsoftのページ
http://officeupdate.microsoft.com/japan/frontpage/wpp/serk/default.htm
を参照ください.
インストールは,以下の手順で進めます.
FrontPage2000 Server Extension Resource Kitを入手する必要があります.もちろん,
Frontpage2000のCD-ROMに添付されています.Microsoftの公式ページからダウンロード
する場合には,以下のURLから可能です.
http://msdn.microsoft.com/workshop/languages/fp/2000/unixfpse.asp
ダウンロードするファイルは,リソースキット本体と,インストール用のシェルスクリプトです.
リソースキット本体ファイルは,インストールするプラットフォーム(OS)毎にアーカイブされて
供給されます.ファイル名は各々,以下です.
Linux(Redhat用)リソースキット本体 ・・・ fp40.linux.tar.Z
インストール用のシェルスクリプト ・・・・・ fp_install.sh
なお,ダウンロードしたシェルスクリプトfp_install.shは,実行件がありませんので,パー
ミッションの変更が必要です.
シェルスクリプトを起動し,メッセージに従ってインストールします.
Frontpage2000 Server Extension Kitでは,インストール後にwebの作成・追加,名称
変更等の変更を行う為に,管理画面(HTMLファイル・例)が用意されています.
これらは,Frontpage2000 Server Extensionのインストールディレクトリ下のadminディレ
クトリに格納されています.そこで,インストールしたサーバマシンから(或いはリモート
のX-Serverから)これらファイルを呼び出して利用するのですが,考えてみれば一度
インストールの終わってしまえば,全ての作業は自分の目の前のクライアントマシンで
行いたいというのが人情です.
そこで,クライアント上の通常のブラウザからFrontpageWEBの設定を変更できるよう
に,これらのファイルを一般のApacheドキュメントへ移動することと「しました.セキュリ
ティー上の問題から,外部に接続されているサーバには,向きませんので,ご注意願
います.
あくまでも外部接続無しのHome Serverに限定した方法です.
インストールはRroot権限で行います.
まず,インストールに必要な2つのファイル
Linux(Redhat用)リソースキット本体 ・・・ fp40.linux.tar.Z
インストール用のシェルスクリプト ・・・・・ fp_install.sh
を適当なディレクトリにコピーします.
次に,インストール用シェルスクリプトfp_install.shのパーミッションに実行権を付加
します.
[root@svr0 src]# chmod +x fp_install.sh |
---|
シェルスクリプトを起動して,インストールします.
[root@svr0 src]# ./fp_install.sh
Step 1. Setting Up Installation Environment
Setting umask 002 Logged in as root.
fp_install.sh
Revision: 1.1 Date: 1998/12/02 21:58:21
This script will step the user through upgrading existing and installing new servers and webs. As with any software installation, a backup should be done before continuing. It is recommended that the FrontPage installation directory, server configuration file directory, and all web content be backed up before continuing with this installation.
Are you satisfied with your backup of the system (y/n) [N]? y
Directory /usr/local exists. Root has necessary access to /usr/local.
Where would you like to install the FrontPage Extensions. If you select a location other than /usr/local/frontpage/ then a symbolic link will be created from /usr/local/frontpage/ to the location that is chosen.
FrontPage Extensions directory [/usr/local/frontpage/]: リターンキーのみを押すと,インストール先としてデフォルトの/usr/local/frontpage/が洗濯されます. WARNING: Directory /usr/local/frontpage already exists. Installation will overwrite existing files.
Continue the installation (y/n) [N]? y 既に/usr/local/frontpage/ディレクトリが存在していた為,表示されたメッセージです.'y'を押して続行します..
Step 2. Untarring the Extensions and Checking Protections
Version 4.0 FrontPage Server Extensions not found. Looking for tar file... ここで,Server Extension本体ファイルが見つからない場合には,メッセージが出力されます.そのような場合には,ファイルのありか(ディレクトリ)を支持してあげてください.
Platform is linux. Uncompressing/Untarring file /usr/local/src/fp40.linux.tar.Z into /usr/local... echo Step 3. Upgrading/Installing the extensions
Checking for existing web servers to upgrade...
Existing web servers were found. You can upgrade them later by re-running fp_install.sh and answering yes to the following question.
Would you like to upgrade them now (y/n) [Y]? y
筆者の場合には,旧バージョンのServer Extensionが入っていた為,
The file /usr/local/frontpage/version4.0/upgrade_results.txt will contain Success/Fail status for the upgrades. When the upgrade is complete you should examine this file to make sure that all of the upgrades completed successfully.
Hit enter to continue ここで,何かキーを押します. All existing servers will now be upgraded: | | Note: If you have not installed the root web then you need to do it now.
Do you want to install a root web (y/n) [Y]? y
root webは必ず必要ですので,'y'で答えます. Installing the root web...
Server config filename: /usr/local/apache/conf/httpd/^H.conf^H^H Server config filename: /usr/local/apache/conf/httpd.conf FrontPage Administrator's user name: papa Unix user name of the owner of this new web:[nobody]
Unix group of this new web:[nobody]
1. ncsa 2. apache 3. apache-fp 4. netscape-fasttrack 5. netscape-enterprise 6. stronghold What type of Server is this: 2 webサーバの種類を選択します.'3. apache-fp' とは,apacheサーバにmicrosoftが発行するパッチを当てたサーバに対してインストールを行う場合に選択します.筆者はパッチを当てませんでしたので,'2'を選択しています. Installing root web into port 80...
installing server / on port 80
Will chown web to nobody as part of install. Will chgrp web to nobody as part of install.
Starting install, port: 80, web: "root web"
Password for user "papa": Confirm password: web管理者のパスワードを入れます. Creating web http://
Chowning Content in service root web Chmoding Extensions in service root web Install completed.
1. LATIN1 (ISO 8859-1) 2. LATIN2 (ISO 8859-2) 3. EUCJP (Japanese EUC) 4. EUCKR (Korean EUC) Which local character encoding does your system support: [3] 3 EUCを選択するのが一般的だと思います. 1. English 2. French 3. German 4. Italian 5. Japanese 6. Spanish What should the default language be: [5] 5 日本人なので,'5'を選択します. Setting /usr/local/frontpage/version4.0/frontpage.cnf to:
defaultLanguage:en localCharEncoding:latin1
Moving /usr/local/frontpage/version4.0/frontpage.cnf to /usr/local/frontpage/ver sion4.0/frontpage.cnf.orig
Creating and modifying new /usr/local/frontpage/version4.0/frontpage.cnf...
Install new sub/per-user webs now (y/n) [Y]? n ユーザ毎のsub webは,後からでも設定できますので,ここでは作成しません.('n'で答えます) For details on how to upgrade servers manually, please see the Server Extension Resource Kit (SERK), located in /usr/local/frontpage/version4.0/serk
Installing Virtual Webs..
Do you want to install Virtual Webs (y/n) [Y]? n Virtual WEBもとりあえずは作成しませんので,'n'で答えます.
Installation completed! Exiting... |
---|
これでインストールは完了です.
まず,管理画面をApacheのドキュメントファイルに移します.筆者の環境では,Apache
ドキュメントのディレクトリは以下のようになっていますので,ドキュメントディレクトリが
異なる方は,該当箇所を読み替えていただければと思います.
HTML文書 ・・・・・・・・・・ /home/apache/htdocs/
cgiプログラム ・・・・・・・ /usr/apache/cgi-bin/
管理画面は,Frontpage2000 Server Extensionインストールディレクトリの下の
admin/にありますので,これらのファイルを上記HTML文書ディレクトリにコピーします.
ここでは,文書ディレクトリの下にfpadmin/ディレクトリを作成の上,コピーをしています.
また,これらの管理文書から呼び出されるcgi,"fpadmcgi.exe"はSERKインストール
ディレクトリの下のadmin/scripts/ディレクトリにあります.このファイルは,Apacheの
cgi-binディレクトリにコピーすることとします.
[root@svr0
]# cd /usr/local/frontpage/currentversion |
---|
次に,cgi"fpadmincgi.exe"を呼び出している管理HTML文書を特定します.これには,
grepコマンドを用います.
結果は以下のLOGのように表示されると思いますが,.
check.htm delsbweb.htm
direxe.htm dirnoexe.htm
disable.htm enable.htm
ipaddr.htm newsbweb.htm
newsrvr.htm perms.htm
recalc.htm rensbweb.htm
uninstal.htm
の13つのファイルが"fpadmincgi.exe"を呼び出しています.これらの呼び出しのパス
を変更します.viコマンド等のテキストエディタでこれらのファイルを開き,
"scripts/fpadmincgi.exe" → "/cgi-bin/fpadmincgi.exe"
と修正します.grepコマンドでわかるように,核ファイルにつき1箇所のみの修正です.
(下記LOGには,"check.htm"の修正についてのみ表示してあります.)
[root@svr0 ]#
cd /home/apache/htdocs/fpadmin
|
上記箇所の"scripts/"の部分を"/cgi-bin/"に変更する.
| |
---|
続いて,クライアントブラウザからのcgiでApacheの設定を変更する必要がありますので,
Apacheのコンフィギュレーションファイル(及び格納ディレクトリ)のパーミッションを
一時的に変更する必要があります.操作は単純ですが,覚えておくのが大変です.
そこで,管理画面を使う前のコマンドfpmaintenanceと,終了後にパーミッションを元に
戻すfpmainterestoreコマンドを作成することとします.作成するディレクトリは,パスの
通っている/usr/local/binあたりが便利かと思います.viエディタでファイルを作成後,
パーミッションに実行件を付加します.
[root@svr0 bin]# cd /usr/local/bin [root@svr0 bin]# vi fpmaintenance
↓↓↓↓ fpmaintenanceの中身は以下です.↓↓↓↓
[root@svr0 bin]# chmod 700 fpmaintenance |
---|
続いて, 作業終了時に起動するfpmainterestoreコマンドを同様に作成します.
[root@svr0 bin]# vi fpmainterestore
↓↓↓↓ fpmainterestoreの中身は以下です.↓↓↓↓ ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
[root@svr0 bin]# chmod 700 fpmainterestore
[root@svr0 apache]# /usr/local/apache/bin/apachectl restart |
---|
以上で設定は終了です.ツールを使用するには,以下の手順で行います.
(1)telnetでserver機に入り,"su -"コマンドでroot権限を得ます.
(telnetでは,一般的にrootでの直接loginを許さない為です.)
(2)fpmaintenanceコマンドを実行します.
(3)クライアントブラウザで,管理画面を表示します.サーバの名前が"svr0"である場合
には,URLは"http://svr0/fpadm/fpadmin.htm"になります.ここで,必要な操作を速や
かに実施します.
(4)操作が終了したら,telnet画面からfpmainterestoreコマンドを実行します.
以上です.