File: [local] / OpenXM / src / asir-port / cgi / install-ja.txt (download)
Revision 1.5, Sat Feb 28 23:47:28 2015 UTC (9 years, 5 months ago) by takayama
Branch: MAIN
CVS Tags: HEAD Changes since 1.4: +14 -1
lines
A script to restart the webasir server.
|
$Id: cgi-asir-ja.txt,v 1.5 2005/02/27 07:09:15 taka Exp $
$OpenXM: OpenXM/src/asir-port/cgi/install-ja.txt,v 1.5 2015/02/28 23:47:28 takayama Exp $
cgi-asir.sh $B$N%$%s%9%H!<%kJ}K!(B.
0. cgi $B$r<B9T2DG=$J(B apache $B$rMQ0U$9$k(B.
1. cgi-asir.sh $B$r(B /var/www/cgi-bin $BEy$N(B apache $B$N(B cgi $B%G%#%l%/%H%j$X(B
$BCV$/(B.
2. cgi-asir.sh $B$N(B
source $(OpenXM_HOME)/rc/dot.bashrc
$B$r(B OpenXM $B$r%$%s%9%H!<%k$7$?(B directory $B$N@dBP%Q%9$rFI$_9~$`$h$&$KJQ99(B.
$BNc!'(B source /home/taka/OpenXM/rc/dot.bashrc
$BCm0U(B: OpenXM $B$r%$%s%9%H!<%k$7$?(B directory $B$O(B nobody $B$,FI$_9~$_(B, $B<B9T2D(B
$B$G$"$k$3$H(B. $B$?$H$($P(B 755.
Fedora Core $B$G$O%[!<%`$,(B 700 $B$H$J$C$F$$$k$N$GCm0U(B.
3. $B@5$7$/F0$$$F$$$k$+(B, $B$?$H$($P(B
http://polymake.math.kobe-u.ac.jp/cgi-bin/cgi-asir.sh
$B$_$?$$$J46$8$G%F%9%H(B.
Q. $B%F%9%H$7$F$bF0$-$^$;$s(B. $B%A%'%C%/$9$Y$-$3$H$r65$($F$/$@$5$$(B.
A. httpd $B%5!<%P$N(B log (/var/log/httpd/access_log $B$J$I(B) $B$r$^$:8+$F$/$@$5$$(B.
---------------------------------------------------
$B$H$j$"$($:F0$/>uBV$K$J$C$?$i(B
(A) $B8x3+$9$k%i%$%V%i%j4X?t$r7h$a$k(B.
(B) $B8x3+$9$k%i%$%V%i%j4X?t$rFI$_9~$`$h$&$K$9$k(B.
(C) $B7W;;;~4V$N>e8B$r7h$a$k(B.
(A), (B), (C) $B$NJQ99$OB(:B$K(B web server $B$KH?1G$5$l$k(B.
httpd $B$N%j%9%?!<%H$OI,MW$J$$(B.
----------- $B>\:Y(B ----------------------
(A) $B8x3+$9$k%i%$%V%i%j4X?t$r7h$a$k(B.
$BNc(B: $B8x3+$9$kFH<+%i%$%V%i%j4X?t$,$"$l$P(B,
/home/nakayama/myasir.rr $B$K=q$/(B.
$B8x3+4X?t$,(B afo1(), afo2() $B$N>l9g(B,
myasir.rr $B$N:G8e$K(B
Cgi_asir_allow=["afo1","afo2"]$
map(set_secure_flag,Cgi_asir_allow,1)$
$B$r=q$$$F$*$/(B.
$BJQ?tL>(B Cgi_asir_allow $B$OJQ99$7$J$$$3$H(B.
$BFH<+%i%$%V%i%j4X?t$,L5$$>l9g$G$b(B, $B8x3+$9$k4X?tL>$r(B
$B>e$NJ}K!$G=q$$$F$*$/(B.
$BCm0U(B: $B8x3+$9$k4X?t$O(B cgi-asir.sh $B$N4D6-JQ?t(B CGI_ASIR_ALLOW
$B$G;XDj$7$F$b$h$$(B.
$B$3$N>l9g$O(B cgi-asir.sh $B$,(B query string $BL5$7$G<B9T$5$l$?$H$-$K(B,
allowed command $B$H$7$FI=<($5$l$k(B.
myasir.rr $B$G8x3+$7$F$$$k$b$N$OI=<($5$l$J$$(B.
(B) $B8x3+$9$k%i%$%V%i%j4X?t$rFI$_9~$`$h$&$K$9$k(B.
$B8x3+$9$kFH<+%i%$%V%i%j4X?t$,=q$$$F$"$k%U%!%$%k$r(B
$(OpenXM_HOME)/rc/asirrc $B$rMQ$$$FFI$_9~$`(B.
$B$?$H$($P(B (A) $B$NNc$N>l9g$J$i(B,
... $BN,(B
load("names.rr")$
load("oxrfc103.rr")$
load("/home/nakayama/myasir.rr")$ <=== $B$3$N9T$r2C$($k(B.
User_asirrc=which(getenv("HOME")+"/.asirrc")$
... $BN,(B
$BCm0U(B: myasir.rr $B$O(B nobody $B$,FI$_9~$_2D$G$"$k$3$H(B.
Fedora Core $B$G$O%[!<%`$,(B 700 $B$H$J$C$F$$$k$N$GCm0U(B.
(C) $B7W;;;~4V$N>e8B$O(B cgi-asir.sh $B$N4D6-JQ?t(B
CGI_ASIR_TLIMIT $B$G;XDj$9$k(B.
$B%G%U%)!<%k%H$O(B 30 $BIC$G$"$k(B.
$BNc(B: 10 $BIC$K$7$?$$$H$-(B.
export CGI_ASIR_TLIMIT="10"
$BCm0U(B: cgi-asir.sh $B$N8=:_$N<BAu$G$O(B GET method $B$G$N<B9T$O$&$1$D$1$J$$(B.
POST $B$N$_(B. Todo: GET $B$N<BAu(B or POST $B$r;H$($H$N%(%i!<%a%C%;!<%8(B.
-----
Note for orange3m 2015.03.01
Check out to
/private/${HOME}/OpenXM, ...
Make a link from the cgi directory to here.
Generate a Makefile to copy OpenXM/src/asir-port/cgi/[cgi-script]
to the cgi directory.
(make update ; make done on orange3m)
Set OpenXM_HOME properly in the cgi-scripts.
Set /etc/crontab following OpenXM/src/asir-port/cgi/kill-webasir-server.sh