LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 776|回复: 1

MoinMoin维基引擎

[复制链接]
发表于 2006-6-26 20:40:13 | 显示全部楼层 |阅读模式
这里有人用wiki记笔记的吗?我以前用mediawiki,现在改到moinmoin了,不过总觉的不大顺手。哪位也用wiki的交流一下tips。
 楼主| 发表于 2006-6-26 20:41:17 | 显示全部楼层
对了 发在debian版要跟debian有关吧。我的安装脚本
Install moinmoin on Debian

    * Install the following package

      apache2
      python
      python-moinmoin
      libapache2-mod-fastcgi

    *

      run the script, edit /etc/moin/mywiki.py

      #!/bin/bash
      # path of MoinMoin shared files
      SHARE=/usr/share/moin
      # path to target instance location
      INSTANCE=$1
      WEBROOT=/var/www
      INSTANCEROOT=/var/lib
      # should be nice
      USER=www-data
      GROUP=www-data
      if [ ! $1 ]
      then
        echo "name? such as enjoywiki"
        exit
      fi
      mkdir -p $WEBROOT/$INSTANCE
      cp $SHARE/server/moin.fcg $WEBROOT/$INSTANCE
      mkdir -p $INSTANCEROOT/$INSTANCE
      cp -R $SHARE/data $SHARE/underlay $INSTANCEROOT/$INSTANCE
      cp $SHARE/config/wikiconfig.py $INSTANCEROOT/$INSTANCE
      chown -R www-data: $INSTANCEROOT/$INSTANCE $WEBROOT/$INSTANCE
      chmod -R ug+rwX $INSTANCEROOT/$INSTANCE
      chmod -R o-rwx $INSTANCEROOT/$INSTANCE
      cat > /etc/apache2/conf.d/$INSTANCE << ==EOF==
      <IfModule mod_fastcgi.c>
         AddHandler fastcgi-script .fcgi .fcg
         FastCgiServer $WEBROOT/$INSTANCE/moin.fcg -idle-timeout 60 -processes 1
         Alias /wiki "$SHARE/htdocs/"
         ScriptAlias /$INSTANCE "$WEBROOT/$INSTANCE/moin.fcg"
      </IfModule>
      ==EOF==
      echo Follow /usr/share/doc/moinmoin-common/README.Debian.gz step 4
      echo
      echo example:
      echo Edit site name
      echo Edit /etc/moin/mywiki.py to include these lines:
      echo data_dir = \'$INSTANCEROOT/$INSTANCE/data\'
      echo data_underlay_dir = \'$INSTANCEROOT/$INSTANCE/underlay\'

    *

      Download moinmoin theme at ThemeMaket, below is my script to install mentalwealth

      DATA_DIR= `grep data_dir /etc/moin/mywiki.py |grep data_dir|awk -F"=" '{print $$2}'|tr -d \'`
      THEME_DIR= ${DATA_DIR}/plugin/theme
      THEMENAME= mentalwealth
      install:
              mkdir -p /usr/share/moin/htdocs/${THEMENAME}
              cp -r css img /usr/share/moin/htdocs/${THEMENAME}
              cp ${THEMENAME}.py ${THEME_DIR}
      uninstall:
              rm -rf /usr/share/moin/htdocs/${THEMENAME}
              rm ${THEME_DIR}/${THEMENAME}.py

    *

      set default theme at /etc/moin/mywiki.py

      theme_default = 'mentalwealth'

    *

      Copy backup to /var/lib/enjoywiki/data and restart apache2
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表