前提・実現したいこと
FreeBSDでmoinmoinを動かしたいと思い、https://moinmo.in/HowTo/FreeBSD10xに記述されている事を一通り行いました。しかし、telnetでmoinmoinが動いているか確認するとエラーが出てWelcome pageを見ることが出来ない状態です。以下に詳しいエラー内容を記述します。
telnetでのエラーメッセージ
$telnet 127.0.0.1 80
GET /mywiki HTTP/1.0
を実行すると以下のようなエラーが出ます。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head><title>ConfigurationError</title></head> <body><h1>ConfigurationError</h1> <pre> ImportError: No module named wikiconfig Check that the file is in the same directory as the server script. If it is not, you must add the path of the directory where the file is located to the python path in the server script. See the comments at the top of the server script. Check that the configuration file name is either "wikiconfig.py" or the module name specified in the wikis list in farmconfig.py. Note that the module name does not include the ".py" suffix. </pre></body></html>
このエラーを解決したいです
試したこと
/usr/local/share/moin/server/moin.wsgiに以下の内容を記述
sys.path.insert(0, '/usr/share/') sys.path.insert(0, '/usr/share/moin/config')
/usr/local/share/moin/config/wikiconfig.pyに以下の内容を記述
instance_dir='/usr/local/share/moin/' interwikiname=u'toshi\'s Wiki' sitename=u'toshi\'s Wiki' url_prefix_static='/wiki'+url_prefix_static
補足情報(FW/ツールのバージョンなど)
FreeBSDのバージョンFreeBSD
FreeBSD 11.1-RELEASE
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。