ホストOSはWindows XP。

まず、ダウンロードしてインストール。


wget http://www.apache.org/dist/httpd/httpd-2.2.11.tar.gz
tar zxvf ./httpd-2.2.11.tar.gz
../configure
make
make install

次に /usr/local/apache2/conf/httpd.conf の User と Group の部分を書き換える。ここで hogehoge はログインユーザー名。


User hogehoge
Group Users

よくわからないけどCYGWIN変数を設定。


CYGWIN="server"
export CYGWIN

cygserver-configコマンドを実行。


cygserver-config

何か訊ねてくるので「yes」と応える。

Apache 2.2を起動する。


net start cygserver
/usr/local/apache2/bin/apachectl start

よくわからないけど、cygserverというのを使わないと、Apache2.2が起動できなかった。Windowsサービス化してるのかな。

Ref. Welcome! - The Apache HTTP Server Project

tags: Apache Cygwin zurazure

Posted by NI-Lab. (@nilab)