wiki:OSGeo4W_jp/pkg-apache

Version 4 (modified by hfujii, 14 years ago) ( diff )

--

WikiStart back

Apache OSGeo4W Package

Version

  • Apache 2.x
  • you can also browse the exact versions available for OSGeo4W here
  • the source is available at apache.org

Installation

Automatic Install/Start (Windows 7 and beyond)

  • the installer will create and start the Apache service during installation automatically
    • available since Apache package version 2.2.14-2

Manual Install/Start (XP and Vista)

  • Apache is not automatically installed as a service for WindowsXP & Vista
  • to install the Apache service:
    • click on the "OSGeo4w" shortcut on your desktop
    • the OSGeo4W command window will open
    • type the following command:
        apache-install.bat
      
    • you should see a message such as:
        Installing the Apache OSGeo4W Web Server service
        The Apache OSGeo4W Web Server service is successfully installed.
        Testing httpd.conf....
        Errors reported here must be corrected before the service can be started.
        The Apache OSGeo4W Web Server service is starting.
        The Apache OSGeo4W Web Server service was started successfully.
      
  • apache-uninstall.batapache-restart.bat コマンドは、アンインストールまたはサーバーの再起動にも利用することができます。

管理特権ノート

Vista またはそれ以上を使用している場合、Apache サービスのインストールの際に次のようなエラーが発生する可能性があります:

  >apache-install.bat
  Installing the Apache OSGeo4W Web Server service
  (OS 5)Access is denied.  : Failed to open the WinNT service manager
  The service name is invalid.

  More help is available by typing NET HELPMSG 2185.

Vista 以降の Windows は、管理者としてコマンドを実行するように変更されています 。これを避けるためには:

  • デスクトップの "OSGeo4W" ショートカットで右クリック
  • "Run as Administrator" をクリック

Run as Administrator

Apache がサービスとしてインストールされていることを確認する

  • スタート メニュー/コントロール パネル/管理ツール/サービスへ進みます
  • そこにリストされている "Apache OSGeo4W web server" を探します

Apache service listing

ポート

  • ポート 80 で実行するように現在ハードコードされている
  • 別のポートで Apache を使用したい:
    • テキスト編集で /osgeo4w/apache/conf/httpd.conf を開く
    • "Listen 80" を探す(around line 46)
    • "80" を他の値に変更する("8080" のように)
    • "Apache OSGeo4W web server" サービスを再起動

Note: ポートに問題がある場合は、TCPView から作動しているポートのリストを取得してください。

初めに

Apache がインストールされたら、インターネットブラウザを開き (Firefox または Internet Explorer) http://localhost へ進みます。

localhost page

管理人

戻る

Note: See TracWiki for help on using the wiki.