/
ColdFusion 4.5.1 Professional,SP1のインストール(3)
ColdFusionは通常のhttpdに連携するようにインストール手順が定められていますので,httpsdに連携させるためにはいくつかの前準備が必要になります.ポイントとしては,httpsdとhttpsd.confのシンボリックリンクを作成することとhttpsdctlに対応するapachectlを作成することです.
# su - password: # cd /usr/local/src/apache_1.3.12/bin # ln -s httpsd httpd # cd /usr/local/src/apache_1.3.12/conf # ln -s httpsd.conf httpd.conf |
/usr/local/apache/bin/apachectlには,以下の通り記述します.
#!/bin/sh # case $1 in start) /usr/local/apache/bin/httpsdctl start ;; stop) /usr/local/apache/bin/httpsdctl stop ;; restart) /usr/local/apache/bin/httpsdctl restart ;; graceful) /usr/local/apache/bin/httpsdctl graceful ;; *) echo "usage: $0 (start|stop|restart|graceful)" esac |
必要に応じて始動時の自動起動設定を行います.RedHatベースのLinuxでは,/etc/rc.d/以下のファイルによって制御が行われているため,起動スクリプトを/etc/rc.d/init.d/httpdとして編集し,「chmod +x httpd」として実行属性を与えてください.さらに,/etc/rc.d/のrc0.d〜rc6.dにはスクリプトへのシンボリックリンクを置く必要があります.
S97httpd(スタート),K97httpd(ストップ)をランレベルに合わせて配置します.一般的にはrc3.d,rc4.d,rc5.dにはS97httpd,それ以外にはK97httpdです.
/etc/rc.d/init.d/httpdには次のように記述してください.
#!/bin/sh # /etc/rc.d/init.d/httpd # Start the Apache httpd Server # # set at install aphome=/usr/local/apache apbin=$aphome/bin export aphome # # Start/stop processes for Apache httpd Server # case "$1" in 'start') if [ -x $apbin/apachectl ] then $apbin/apachectl start fi ;; 'stop') if [ -x $apbin/apachectl ] then $apbin/apachectl stop fi ;; 'restart') if [ -x $apbin/apachectl ] then $apbin/apachectl restart fi ;; *) echo "Usage: /etc/rc.d/init.d/httpd { start | stop }" ;; esac |