Ich versuche ein MoinMoin hier lokal aufzusetzen, aber es will einfach nicht klappen. Soweit ich den Fehler interpretieren kann, ist das Problem, dass er nicht auf /home/www-data/moin/data zugreifen kann. Dieses Verzeichnis gehört www-data:www-data und ist auf chmod 774.
Hier nochmal die vollständige Fehlermeldung:
Code: Alles auswählen
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/MoinMoin/request.py", line 1439, in __init__
RequestBase.__init__(self, properties)
File "/usr/local/lib/python2.5/site-packages/MoinMoin/request.py", line 156, in __init__
self._load_multi_cfg()
File "/usr/local/lib/python2.5/site-packages/MoinMoin/request.py", line 313, in _load_multi_cfg
self.cfg = multiconfig.getConfig(self.url)
File "/usr/local/lib/python2.5/site-packages/MoinMoin/multiconfig.py", line 162, in getConfig
config = _makeConfig(configName)
File "/usr/local/lib/python2.5/site-packages/MoinMoin/multiconfig.py", line 99, in _makeConfig
cfg = configClass(name)
File "/usr/local/lib/python2.5/site-packages/MoinMoin/multiconfig.py", line 499, in __init__
self._check_directories()
File "/usr/local/lib/python2.5/site-packages/MoinMoin/multiconfig.py", line 644, in _check_directories
raise error.ConfigurationError(msg)
ConfigurationError:
data_dir "/home/www-data/moin/data" does not exists, or has incorrect ownership or
permissions.
Make sure the directory and the subdirectory pages are owned by the web
server and are readable, writable and executable by the web server user
and group.
It is recommended to use absolute paths and not relative paths. Check
also the spelling of the directory name.
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/MoinMoin/multiconfig.py", line 160, in getConfig
config = _config_cache[configName]
KeyError: 'wikiconfig'
Additionally cgitb raised this exception:
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/MoinMoin/failure.py", line 143, in handle
display=request.cfg.traceback_show,
AttributeError: 'RequestCGI' object has no attribute 'cfg'
/home/www-data/moin/mywiki/cgi-bin/moin.cgi:
Code: Alles auswählen
# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
# or if you did not use setup.py.
sys.path.insert(0, '/usr/local/lib/python2.5/site-packages')
# Path of the directory where wikiconfig.py is located.
# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
sys.path.insert(0, '/home/www-data/moin/mywiki')
Code: Alles auswählen
# Where your mutable wiki pages are. You want to make regular
# backups of this directory.
data_dir = '/home/www-data/moin/data/'
# Where read-only system and help page are. You might want to share
# this directory between several wikis. When you update MoinMoin,
# you can safely replace the underlay directory with a new one. This
# directory is part of MoinMoin distribution, you don't have to
# backup it.
data_underlay_dir = '/home/www-data/moin/underlay/'
JLX (Julian)