1. 설치 가능 여부 테스트 ¶
$cat > ~/public_html/test.cgi #!/bin/sh echo Content-Type: text/plain echo echo (-_-)(_ _) <CTRL-D> $chmod a+rx ~/public_html/test.cgi $lynx -dump http://localhost/~zihado/test.cgi (-_-)(_ _) $
CGI가 되는지 테스트.
5. 실행하기(순서대로) ¶
긁어다가 터미널창에 뿌려주세요.
cd moin-1.0 python setup.py --quiet install --home=$HOME --record=install.log mkdir ~/wiki cd ~/wiki cp ~/share/moin/cgi-bin/moin_config.py . cp -r ~/share/moin/data . chmod -R o+rwX data cd ~/public_html cp -r ~/share/moin/htdocs wiki cp ~/share/moin/cgi-bin/*.cgi . chmod a+rx *.cgi
6.2. moin.cgi ¶
위치 : ~/public_html import sys sys.path.extend(['/home/zihado/wiki', '/home/zihado/lib/python'])