インストール編


  1. ダウンロード(http://www.sun.com/)から、 sjsasp402-linux.tar をダウンロードし、適当なディレクトリ(/usr/local/src/casp)に置きます。
    ダウンロードするとき、Sunの会員にならないといけませんが、無料で使うので登録します。

  2. sjsasp402-linux.tar を展開します。
    [root@linuxap1 casp]$ tar xvf sjsasp402-linux.tar
    ./
    ./README
    ./install.sh
    ./package/
    (省略)
    [root@linuxap1 casp]$
    

  3. install.sh を実行します。
    [root@linuxap1 casp]# ./install.sh
    Please wait a moment while the installer locates required binaries...
    Sun Microsystems, Inc.  Binary Code License Agreement
    
    READ  THE TERMS OF THIS AGREEMENT  AND ANY PROVIDED SUPPLEMENTAL LICENSE TERMS
    (COLLECTIVELY  "AGREEMENT")   CAREFULLY  BEFORE  OPENING  THE   SOFTWARE MEDIA
    PACKAGE. BY OPENING THE SOFTWARE MEDIA PACKAGE, YOU AGREE TO THE TERMS OF THIS
    AGREEMENT.  IF  YOU ARE  ACCESSING  THE SOFTWARE ELECTRONICALLY, INDICATE YOUR
    ACCEPTANCE OF THESE TERMS BY SELECTING THE "ACCEPT"  BUTTON AT THE END OF THIS
    AGREEMENT. IF YOU DO NOT AGREE TO ALL  THESE TERMS, PROMPTLY RETURN THE UNUSED
    SOFTWARE TO YOUR   PLACE OF PURCHASE   FOR A REFUND OR,   IF THE  SOFTWARE  IS
    ACCESSED  ELECTRONICALLY,  SELECT THE  "DECLINE" BUTTON  AT   THE END  OF THIS
    AGREEMENT.
    
    (略)
    
    or trade name of Sun or its licensors is granted under this Agreement.
    
    --More--(20%) 
    
    読むのに時間がかかりそうなので、とりあえず良いことにして『q』しましょう。

  4. インストールしたいので、yes と応答します。
      Do you agree to the terms (yes/no)? [no] yes
    
    先にインストールしていると、『削除するかい』と聞いてきますので、『y』を2回答えましょう。

  5. インストールの場所を聞かれます。とりあえずデフォルトで、なにも入れずに Enter!
    すきな場所に入れたいときは、ここで指定して下さい。
     
     -----------------------------------------------------------------------------
    | Sun ONE ASP - Installation                                                  |
    |-----------------------------------------------------------------------------|
    | Setup will now install the files needed to run and configure Sun ONE ASP    |
    | to a directory that you specify.  To accept the default (shown in brackets  |
    | below), press Enter.  To specify a different directory, enter the pathname  |
    | and then press Enter.                                                       |
    |                                                                             |
    | Note: Configuration options specific to this installation are contained in  |
    |       directory that you specify.  Make a note of the directory's location, |
    |       so you can easily find Sun ONE ASP files at a later time.             |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    Enter the directory in which to install Sun ONE ASP [/opt/casp]
    
    パッケージの解凍が始まり、続いてインストールできるかチェックがはじまります。
     
    /usr/local/src/casp/./package/custom-install.inc.sh: line 344: [: 36%: integer expression expected
    
    Extracting files to /opt/casp ...
      + bean-jre package ...... done.
      + bean-support package . done.
      + bean package . done.
      + casp package . done.
      + caspdoc package .. done.
      + caspsamp package . done.
      + chilicom package . done.
      + compat-odbc-direct-50 package ....... done.
      + components package . done.
      + dbms package . done.
      + installer package .. done.
      + license package . done.
      + module package . done.
      + odbc-opensource package . done.
      + server package . done.
      + sqlnk-5_3 package .. done.
      + chili-support-libs package . done.
      + chili-tools-linux2_i686 package . done.
      + supporting binary / library packages . done.
    
    

  6. チェックがOKだと『Language Selection』を聞いてきますが。日本がないので『1』を選択します
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Language Selection                    |
    |-----------------------------------------------------------------------------|
    | Sun Java System Active Server Pages supports various locales.               |
    | Localization affects various locale-specific details including date-time    |
    | formats, currency symbols, permissable numeric formats, etc.  From the      |
    | list below, select the locale you want to use as your primary locale from   |
    | the list below.                                                             |
    | Note: Selecting a locale in no way locks you into using only that           |
    |       locale.  ASP supports a per-page and/or per-session locale            |
    |       setting for flexibility.  This product also allows the primary        |
    |       locale to be updated at any point after installation.                 |
    |                                                                             |
    |   1. English            - United States                                     |
    |   2. English            - United Kingdom                                    |
    |   3. Dutch              - Netherlands                                       |
    |   4. French             - France                                            |
    |   5. German             - Germany                                           |
    |   6. Spanish            - Spain (Traditional)                               |
    |                                                                             |
     - Enter ? for option navigation help ------------------------------- 71%-----
    
    Which locale would you like to use? [1] 1
    

  7. Webサーバはなんですか、探しましょうかと聞きかれます。急いでるので『4』を選択します
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Web Server Auto-Detection             |
    |-----------------------------------------------------------------------------|
    | Setup will now conduct a search of your system to generate a list of        |
    | installed Web servers.  On the next screen, you have the option to enable   |
    | ASP support for one of these detected Web servers.  If you want to skip     |
    | this step, you can specify the pathname to a specific Web server by         |
    | choosing option 4 below.                                                    |
    |                                                                             |
    |   1. Exhaustive search (slow)                                               |
    |   2. Search in: /usr, /opt, /etc, /var (moderate)                           |
    |   3. Search the common Web server locations (fast)                          |
    |   4. Don't search (specify Web server on next screen)                       |
    |                                                                             |
     --------------------------------------------------------------------100%-----
    
    Which type of search would you like to perform? [2] 4
    

  8. 1.Specify the Web Server を選びます。 『1』を選択します。
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Web Server Configuration              |
    |-----------------------------------------------------------------------------|
    | No Web servers have been detected.  As options, you can manually specify    |
    | Web server information to aid in detection, direct Setup to try to detect   |
    | more Web servers, or delay Web server configuration until another time.     |
    |                                                                             |
    |   1. Specify the Web server.                                                |
    |   2. Attempt to auto-detect more Web servers.                               |
    |   3. Do not configure a Web server.                                         |
    |                                                                             |
     --------------------------------------------------------------------100%-----
    
    Which configuration option would you like to perform? 1
    
    

  9. apache を選択します。
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - User-specifed Web Server              |
    | Configuration                                                               |
    |-----------------------------------------------------------------------------|
    | Listed below are the types of Web servers to which this version of Sun      |
    | Java System Active Server Pages will install:                               |
    |                                                                             |
    |   1. Apache Web Server                                                      |
    |   2. Sun ONE Web Server                                                     |
    |   3. Cancel user-specified Web server configuration.                        |
    |                                                                             |
     --------------------------------------------------------------------100%-----
    
    Which Web server type do you want to configure? 1
    
    

  10. apache のhttpd.conf設定ファイル場所をフルパスで入力します。
    つぎに、apache のバイナリの場所を要求されますが、違う場合だけ入力します。
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Apache Configuration                  |
    |-----------------------------------------------------------------------------|
    | Because of the way the Apache Web Server works, few of the configuration    |
    | questions listed below can be answered outright.  However, wherever         |
    | possible, default values have been provided for some of the questions.      |
    |                                                                             |
    | Note: To exit out of Web Server configuration, type 'none' for the          |
    |       listed option.                                                        |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    Enter the path and file name of the Apache Web Server configuration file
    : [none] /etc/httpd/conf/httpd.conf
    
    Input the path and file name of the Apache binary
    : [/usr/sbin/httpd]
    

  11. 先に選択した Webサーバが追加されました。『1』を選びます。
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Web Server Configuration              |
    |-----------------------------------------------------------------------------|
    | The following list contains all currently detected Web servers.  If the     |
    | Web server for which you want to enable ASP support appears below, enter    |
    | the number that corresponds to the Web server.  If the Web server is not    |
    | listed, you can manually specify Web server information to aid in           |
    | detection, direct Setup to try to detect more Web servers, or delay Web     |
    | server configuration until another time.                                    |
    |                                                                             |
    |   1. Apache Web server                                                      |
    |       Settings file: /etc/httpd/conf/httpd.conf                             |
    |                Port: 80                                                     |
    |   2. Specify the Web server.                                                |
    |   3. Attempt to auto-detect more Web servers.                               |
    |   4. Do not configure a Web server.                                         |
    |                                                                             |
     --------------------------------------------------------------------100%-----
    
    Which configuration option would you like to perform? 1
    
    

  12. Webサーバの詳細が表示されます。『y』を入力します。
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Web Server Verification               |
    |-----------------------------------------------------------------------------|
    | Setup has automatically detected the following information about the Web    |
    | server you selected on the previous screen.  If the information is          |
    | correct, type 'y' and press Enter.  If the information is incorrect type    |
    | 'n', press Enter, and then select 'Specify the Web server' from the menu.   |
    |                                                                             |
    | Web server information:                                                     |
    |   Main configuration file: /etc/httpd/conf/httpd.conf                       |
    |   Binary: /usr/sbin/httpd                                                   |
    |   Version: 2.0.54                                                           |
    |   Type: Apache                                                              |
    |   Port: 80                                                                  |
    |   Root: /etc/httpd                                                          |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    The Web server information is correct (y/n). [n] y
    

  13. 初めてなので、ここもデフォルトを選んで、『1』を選択します。
    既に設定を知っている方は,2,3を選んで下さい。
      
    -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Server Configuration                  |
    |-----------------------------------------------------------------------------|
    | Setup will now configure the Sun Java System Active Server Pages Server.    |
    | Unless you are an experienced Sun Java System Active Server Pages user,     |
    | it is strongly recommended that you use the default configuration           |
    | settings (option 1, below).  If you choose the custom configuration         |
    | option, you will be asked to specify a number of settings.  For detailed    |
    | information about configuring Sun Java System Active Server Pages, see      |
    | 'Chapter 3' in the product documentation.                                   |
    |                                                                             |
    |   1. Default configuration.                                                 |
    |   2. Customize configuration.                                               |
    |   3. Choose another Web server to install to.                               |
    |                                                                             |
     --------------------------------------------------------------------100%-----
    
    Select a configuration option. [1] 1
    
    

  14. 続いてなにやらメッセージが表示されます。
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Additional Server Options             |
    |-----------------------------------------------------------------------------|
    | The following is the configuration file and port number for the Web         |
    | server with which Sun Java System Active Server Pages Server will run:      |
    |                                                                             |
    |   Configuration file: /etc/httpd/conf/httpd.conf                            |
    |                 Port: 80                                                    |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    Configuring the Sun Java System Active Server Pages Server ... \
    Configuring the Apache Web Server ... -
    
    
    

  15. 『Administration Console』をどうするか聞いてきますが、当然『1』を選択します。
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Administration Console Installation   |
    |-----------------------------------------------------------------------------|
    | Setup will now install the Sun Java System Active Server Pages              |
    | Administation Console.  Unless you are an experienced Sun Java System       |
    | Active Server Pages user, it is strongly recommended that you choose the    |
    | default configuration (option 1, below).  If you choose the custom          |
    | configuration option, you will be asked to specify a number of settings.    |
    | For detailed information about configuring the Sun Java System Active       |
    | Server Pages Adminstration Console, see 'Chapter 3' in the product          |
    | documentation.                                                              |
    |                                                                             |
    | Note: If you choose the 'Default configuration' option, the username and    |
    |       password will be set to default values.  To protect the security      |
    |       of your server, you should change these settings immediately after    |
    |       installation.  For more infromation, see the product documentation.   |
    |                                                                             |
    |   1. Default configuration                                                  |
    |   2. Custom configuration                                                   |
    |                                                                             |
     - Enter ? for option navigation help -------------------------------100%-----
    
    Select a configuration option for the Administration Console. [1] 1
    
    

  16. さらに続いてメッセージが表示されます。
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Configuring the Administration        |
    | Console                                                                     |
    |-----------------------------------------------------------------------------|
    | Setup will now perform the default option selection for you.                |
    | Please wait.                                                                |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    Installing Administration Console ... /
    Finalizing Configuration Settings ... /
    
    
    

  17. ここで管理ツールのログイン情報が表示されます。
    ID:admin、パスワード:root
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Administration Console Information    |
    |-----------------------------------------------------------------------------|
    | Setup has finished installing the Administration Console. To configure      |
    | Sun Java System Active Server Pages, you can connect to the                 |
    | Administration Console from a URL or from the command line, as shown        |
    | below. For more information about configuring Sun Java System Active        |
    | Server Pages, see 'Chapter 3' in the product documentation.                 |
    | It is a good idea to print this page for future reference.                  |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    To connect from a browser, use this URL: http://linuxap1:5100
    To start, stop and add users, use this script: /opt/casp/admtool
    The console's username is: admin
    The console's password is: root
    
    To continue, press Enter.
    
    
    

  18. さらにさらにメッセージが表示されます。
     
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Product Verification                  |
    |-----------------------------------------------------------------------------|
    | Setup will now verify the contents of your installation.  This process      |
    | includes verifying both the existence of files within your installation,    |
    | as well as making sure those files have the appropriate security            |
    | attributes and ownership information.  This verification process may take   |
    | several minutes.                                                            |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    Verifying your installation, please wait ... /
    
    
    

  19. インストールログの場所と終了のメッセージです。
     -----------------------------------------------------------------------------
    | Sun Java System Active Server Pages - Setup Complete                        |
    |-----------------------------------------------------------------------------|
    | Sun Java System Active Server Pages has been successfully installed!        |
    | Important next steps:                                                       |
    |                                                                             |
    | -- The README file included with this product provides the URL for the      |
    | Release Notes.                                                              |
    |                                                                             |
    | -- Be sure to read the Release Notes before you start using Sun Java        |
    | System Active Server Pages.                                                 |
    | -- The Release Notes contain application notes, installation                |
    | instructions, tips                                                          |
    |    that will help you get started, and provide pointers to additional       |
    | documentation                                                               |
    |    and resources.                                                           |
    |                                                                             |
    | -- Visit URL: http://wwws.sun.com/software/chilisoft/index.html             |
    |    to get additional information and support for this product.              |
    |                                                                             |
     -----------------------------------------------------------------------------
    
    Summary file: /opt/casp/logs/install_summary
    [root@linuxap1 casp]#
    
    

    戻る