|
|
|
Cygwinにapache2XX? をインストールしたものの(setup.exe使用) 一向に起動できないので、会社を休んだのをいいことに色々調査する。
cygserver-config
を打つ。全てにyes.
Warning: The following function requires administrator privileges!
Do you want to install cygserver as service?
(Say "no" if it's already installed as service) (yes/no) y
(Say "no" if it's already installed as service) (yes/no) n
(Say "no" if it's already installed as service) (yes/no) yes
/usr/bin/cygserver-config: line 176: cygrunsrv: command not found
Installation of cygserver as service failed. Please check the
error messages you got. They might give a clue why it failed.
A good start is either you don't have administrator privileges
or a missing cygrunsrv binary. Please check for both.
と怒られる。cygrunsrvというやつが無いらしいので、setup.exeのAdminで 発見してインストールする。
だが、その後もipcsを打ってもBAD SYSTEMCALLと怒られるので、色々調べると… 環境変数CYGWINに、serverという値が無いと、cygserverは使えないとのこと。 追加する(コントロールパネル>システム…)。
cygserver & (cygserver起動) ipcs(起動確認)
Message Queues:
T ID KEY MODE OWNER GROUP
Shared Memory:
T ID KEY MODE OWNER GROUP
Semaphores:
T ID KEY MODE OWNER GROUP
成功。
apachectl2 start
無事にプロンプトが帰ってきて、apache2起動成功。その後、お馴染みの index.htmlを、http://localhost/ で見に行く。httpd.confをいろんなページを参考に 修正し、apachectl2 restart
cgiも見られるようにする。
この辺はまたいつか詳しく。次回はPerlをインストールしよう。
