linux関連/システム管理/apache_install
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(linux関連/システム管理);
#!/etc/bin
#centos50 on apache
date | mail -s "yum_apache_php_INS_start" mailad@mailad.m...
yum -y update
wget http://www.meisei-u.ac.jp/mirror/apache/httpd/httpd-...
wget http://jp.php.net/get/php-5.2.5.tar.gz/from/jp2.php....
wget ftp://ftp.gnome.org/mirror/gnome.org/sources/libxml2...
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/apa...
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.ma...
/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
終了行:
#navi(linux関連/システム管理);
#!/etc/bin
#centos50 on apache
date | mail -s "yum_apache_php_INS_start" mailad@mailad.m...
yum -y update
wget http://www.meisei-u.ac.jp/mirror/apache/httpd/httpd-...
wget http://jp.php.net/get/php-5.2.5.tar.gz/from/jp2.php....
wget ftp://ftp.gnome.org/mirror/gnome.org/sources/libxml2...
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/apa...
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.ma...
/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
ページ名: