#!/etc/bin

#centos50 on apache

date | mail -s "yum_apache_php_INS_start" mailad@mailad.mailad yum -y update wget http://www.meisei-u.ac.jp/mirror/apache/httpd/httpd-2.0.61.tar.gz wget http://jp.php.net/get/php-5.2.5.tar.gz/from/jp2.php.net/mirror wget ftp://ftp.gnome.org/mirror/gnome.org/sources/libxml2/2.6/libxml2-2.6.30.tar.gz tar zxvf httpd-2.0.61.tar.gz tar zxvf php-5.2.5.tar.gz tar zxvf libxml2-2.6.30.tar.gz cd httpd-2.0.61 ./configure --enable-module=so make make install cd ../libxml2-2.6.30 ./configure make make install cd /usr/local/include/ ln -s ./libxml2/libxml libxml cd /root/php-5.2.5 ./configure --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs --enable-sqlite-utf8 make make install cp php.ini-dist /usr/local/lib/php.ini cd yes y | rm *.gz date | mail -s "yum_apache_php_INS_done" mailad@mailad.mailad

/etc/init.d/ 配下に apache ファイルを作成 chmod 755 apache で権限変更が必要 chkconfig --add apache で登録 chkconfig --list apache で確認

#!/bin/sh
#
# chkconfig: 35 85 15
# apache 2.2.6

apachectl="/usr/local/apache2/bin/apachectl"

case "$1" in

start|stop|restart|fullstatus| \
status|graceful|graceful-stop| \
configtest|startssl)

$apachectl $@
;;

*)

;;

esac

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2016-11-01 (火) 16:12:08 (2746d)