2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Hikiをお引越し

Posted at

備忘録がてらやったことをまとめます。
環境依存の話だと思うので、参考になりますやら。

参考

やったこと

RaspbianにHikiを導入し、既存環境から、データをお引越し。

apt

念のためruby2.0を入れる

sudo apt-get install ruby2.0

hiki.cgi

hiki/confがないと言われるのでhiki.cgiのshebangを変更

# !/usr/bin/ruby2.0 -I ./lib/

Pathnameクラスが見つからないと言われるので下記の行を追加。

require 'pathname'

gem

こんな感じでないと言われたファイルを順番にインストール

Hiki Error

cannot load such file -- sequel (LoadError)

sudo gem2.0 install docdiff
sudo gem2.0 install sequel
sudo gem2.0 install hikidoc
sudo gem2.0 install rdtool

データの移行

  • hikiconf.rbをhiki/以下に移動
  • hikiのdataディレクトリをhikiconf.rb内の@data_pathエントリの位置に移動。

パーミッションの設定

  • @data_path内のファイル、ディレクトリにCGIからアクセス可能なパーミッションを設定。

管理者パスワード、テーマをリセット

パスワードを忘れた、および、以前設定していたテーマを持っていないので...


大体こんな感じでできました。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?