<script type="text/javascript"> </script> <script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"> </script>
peのドキュメントをちゃんと見ていくと、まずやるべきことが書いてありました。
mkzopeinstanceという実行ファイルを起動するが正しいアプリケーションの作成方法です。
この実行ファイルは以下のディレクトリにありました。
C:\Python26\Scripts\mkzopeinstance.exe
早速、ヘルプを見てみましょう。
> C:\Python26\Scripts\mkzopeinstance.exe --help
mkzopeinstance-script.py: Create a Zope instance home.
usage: mkzopeinstance-script.py [options]
Options:
-h/--help -- print this help text
-d/--dir -- the dir in which the instance home should be created
-u/--user NAME:PASSWORD -- set the user name and password of the initial user
-s/--skelsrc -- the dir from which skeleton files should be copied
-p/--python -- the Python interpreter to use
When run without arguments, this script will ask for the information necessary
to create a Zope instance home.
では、前回のサンプルのような名前で作ってみます。
> C:\Python26\Scripts\mkzopeinstance.exe
Please choose a directory in which you'd like to install
Zope "instance home" files such as database files, configuration
files, etc.
Directory:
このディレクトリ名として「C:\ZopeSample2」を入力します。
Please choose a username and password for the initial user.
These will be the credentials you use to initially manage
your new Zope instance.
Username:
ここに、「manager」を入力します。
Password:
Verify password:
パスワードはとりあえず、同じ「manager」とします。Verify passwordの方も同様に。
で、これでインスタンスの作成ができました。
これだけではまだだめで、やはり、以下のファイルの修正は必要となります。
・C:\ZopeSample2\bin\runzope.bat
・C:\ZopeSample2\etc\zope.conf
このファイルを以下の通り修正します。
<<INSTANCE_HOME>>→C:\ZopeSample2
<<ZOPE_SCRIPTS>>→C:\Python26\Scripts
上記2ファイルの修正が完了したら以下のコマンドでWebサーバーを起動します。
> C:\ZopeSample2\bin\runzope.bat
<コマンドプロンプト上の結果>
"C:\Python26\Scripts\runzope" -C "C:\ZopeSample2\etc\zope.conf"
この状態で、ブラウザを起動して、http://localhost:8080/にアクセスして、前回の画面が表示されればOKです。
また、http://localhost:8080/manageにアクセスすると、Basic認証の画面が表示されるので、
ここでは、インスタンス作成時に指定したmanagerユーザーとパスワードを入力すると、前回の管理画面が表示されます。
とりあえず、前回との違いでした。