# apt-get install
wiliki |
$
cd
public_html $ mkdir wiki mkdir wiki2 $ su # chown daemon wiki <ーーーーオーナーを daemonにしないと書き込めない # chown daemon wiki2 # cp /usr/lib/cgi-bin/wiliki.cgi /home/hoge/public_html/wiki/ <---cgiをコピー |
#!/usr/bin/gosh (use wiliki) (define (main args) (wiliki-main (make <wiliki> :db-path "/home/hoge/public_html/wiki/wikidata.dbm" <ーーーデータベース :log-file "/home/hoge/public_html/wiki/wikidata.log" :top-page "hogeのページ" :title "hogeの WiLiKi" :description "hoge WiLiKi Site" ;; :style-sheet "wiliki.css" :language 'jp :charsets '((jp . utf-8) (en . utf-8)) :image-urls '((#/^http:\/\/karappi.minidns.net/ allow)) :debug-level 0 :editable? #f <--------この行を入れれば編集できない ))) ;; Local variables: ;; mode: scheme ;; end: |
#!/usr/bin/gosh (use wiliki) (define (main args) (wiliki-main (make <wiliki> :db-path "/home/hoge/public_html/wiki/wikidata.dbm" :log-file "/home/hoge/public_html/wiki/wikidata.log" :top-page "hogeのページ" :title "hogeの WiLiKi" :description "hoge WiLiKi Site" ;; :style-sheet "wiliki.css" :language 'jp :charsets '((jp . utf-8) (en . utf-8)) :image-urls '((#/^http:\/\/karappi.minidns.net/ allow)) :debug-level 0 ))) ;; Local variables: ;; mode: scheme ;; end: |
<Directory /home/hoge/public_html/wiki2> SSLRequireSSL <---SSL Options ExecCGI Indexes FollowSymLinks MultiViews Includes AllowOverride None Order allow,deny Allow from all AuthType Basic AuthName Intra AuthUserFile /home/hoge/.htpasswd <---BASIC認証 Require valid-user ServerSignature Off AddHandler cgi-script .cgi AddType text/html .shtml .rhtm <---これはおまけ </Directory> |
$ htpasswd -c /home/hoge/.htpasswd hoge |
#
/etc/init.d/apache2 restart |