CodeCraft tips
[
ホーム
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
]
UNIX/Apache HTTP Server 2.0.x
をテンプレートにして作成
開始行:
* UNIX/Apache HTTP Server 2.0.x [#d0a980b3]
** Debian [#h88386aa]
apt-get install openssl
apt-get install libssl-dev
** 共通 [#c245bfdb]
OPTIM="-O2"
./configure --prefix=/usr/local/apache-2.0.x --enable-so...
make
make install
cd /usr/local
ln -s apache-2.0.x apache-2.0
LanguagePriorityのjaを先頭に移動する
AddDefaultCharsetにnoneを設定する
~
全てmodule
# allを指定すると本当に全部(Order等も)moduleになってし...
./configure --enable-so \
--enable-modules=all \
--enable-mods-shared=all
~
proxy付き
./configure --prefix=/usr/local/apache-2.0 \
--enable-so \
--enable-cache=shared \--enable-disk-cache=shared \
--enable-mem-cache=shared \
--enable-file-cache=shared \
--enable-proxy=shared \
--enable-proxy_connect=shared \
--enable-rewrite=shared
~
このエラーがでた場合、/etc/ld.so.confに/usr/local/libを追...
/usr/local/apache-2.0.x/bin/httpd: error while loading s...
** logrotate [#h2f42f03]
/var/log/apache-2.0/access_log /var/log/apache-2.0/error...
missingok
weekly
rotate 53
compress
delaycompress
compresscmd /usr/bin/bzip2
uncompresscmd /usr/bin/bunzip2
compressext .bz2
notifempty
create 640 root www-data
sharedscripts
postrotate
/bin/kill -HUP `cat /usr/local/apache-2.0/logs/h...
endscript
}
** 起動スクリプト [#dcc4fe73]
#!/bin/bash
#
# chkconfig: 345 98 02
# description: apache20
#
# Startup script for Apache Web Server
#
# ----- Save and Set Environment Variables -------------...
PROGDIR=/usr/local/apache-2.0/bin
# ----- Define Function --------------------------------...
start() {
echo -n $"Starting apache-2.0: "
${PROGDIR}/apachectl start
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo -e " \033[1m[\033[32m OK \033[37m]\033[0m"
else
echo -e " \033[1m[\033[31m NG \033[37m]\033[0m"
fi
}
stop() {
echo -n $"Stopping apache-2.0: "
${PROGDIR}/apachectl stop
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo -e " \033[1m[\033[32m OK \033[37m]\033[0m"
else
echo -e " \033[1m[\033[31m NG \033[37m]\033[0m"
fi
}
# ----- Execute The Requested Command ------------------...
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
終了行:
* UNIX/Apache HTTP Server 2.0.x [#d0a980b3]
** Debian [#h88386aa]
apt-get install openssl
apt-get install libssl-dev
** 共通 [#c245bfdb]
OPTIM="-O2"
./configure --prefix=/usr/local/apache-2.0.x --enable-so...
make
make install
cd /usr/local
ln -s apache-2.0.x apache-2.0
LanguagePriorityのjaを先頭に移動する
AddDefaultCharsetにnoneを設定する
~
全てmodule
# allを指定すると本当に全部(Order等も)moduleになってし...
./configure --enable-so \
--enable-modules=all \
--enable-mods-shared=all
~
proxy付き
./configure --prefix=/usr/local/apache-2.0 \
--enable-so \
--enable-cache=shared \--enable-disk-cache=shared \
--enable-mem-cache=shared \
--enable-file-cache=shared \
--enable-proxy=shared \
--enable-proxy_connect=shared \
--enable-rewrite=shared
~
このエラーがでた場合、/etc/ld.so.confに/usr/local/libを追...
/usr/local/apache-2.0.x/bin/httpd: error while loading s...
** logrotate [#h2f42f03]
/var/log/apache-2.0/access_log /var/log/apache-2.0/error...
missingok
weekly
rotate 53
compress
delaycompress
compresscmd /usr/bin/bzip2
uncompresscmd /usr/bin/bunzip2
compressext .bz2
notifempty
create 640 root www-data
sharedscripts
postrotate
/bin/kill -HUP `cat /usr/local/apache-2.0/logs/h...
endscript
}
** 起動スクリプト [#dcc4fe73]
#!/bin/bash
#
# chkconfig: 345 98 02
# description: apache20
#
# Startup script for Apache Web Server
#
# ----- Save and Set Environment Variables -------------...
PROGDIR=/usr/local/apache-2.0/bin
# ----- Define Function --------------------------------...
start() {
echo -n $"Starting apache-2.0: "
${PROGDIR}/apachectl start
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo -e " \033[1m[\033[32m OK \033[37m]\033[0m"
else
echo -e " \033[1m[\033[31m NG \033[37m]\033[0m"
fi
}
stop() {
echo -n $"Stopping apache-2.0: "
${PROGDIR}/apachectl stop
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
echo -e " \033[1m[\033[32m OK \033[37m]\033[0m"
else
echo -e " \033[1m[\033[31m NG \033[37m]\033[0m"
fi
}
# ----- Execute The Requested Command ------------------...
case "$1" in
start)
start
;;
stop)
stop
;;
restart|reload)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
ページ名:
TrackBack(0)
|
外部リンク元
検索
サイト内
Web
最新の20件
2010-03-09
Software/Eclipse/3.4.x
2009-08-04
Ubuntu
Ubuntu/7.04 feisty
Ubuntu/8.04 hardy/システム環境設定
Ubuntu/8.04 hardy
2009-07-06
Linux/misc
2009-05-16
Debian GNU Linux/5.0 lenny/amd64/iceweasel
2009-05-03
Debian GNU Linux/5.0 lenny/システム環境設定
2009-03-22
Debian GNU Linux
Software/Eclipse/3.1.x
Software/Eclipse/3.2.x
Software/Eclipse
Debian GNU Linux/5.0 lenny
2008-08-12
UNIX/sendmail
UNIX/Subversion
2008-08-05
UNIX/proftpd
2008-08-01
UNIX
2008-05-13
UNIX/samba
2008-05-12
Debian GNU Linux/5.0 lenny/ユーザー環境設定
2008-04-15
Windows