Problem using Apache

After setting up Apache with mod_python, I obtain the following ConfigurationError on the browser.

data_dir "..\lib\site-packages\setuptools-0.6c3-py2.5.egg\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.

This is a very odd message. Why moin is looking for such a directory. In addition I have a setuptools-0.6c5-py2.5.egg file in my site-packages directory (not setuptools-0.6c3-py2.5.egg) and this is a file, it doesn't contain any directory data (it is a file). Any idea?

Steps to reproduce

  Listen 8070
  ServerName    localhost
  NameVirtualHost *:8070
  <VirtualHost *:8070>
  DocumentRoot  ".../mywiki"
  #
  <Location "/">
    SetHandler python-program
    PythonHandler MoinMoin.request::RequestModPy.run
    PythonPath "sys.path + [r'.../mywiki']"
  </Location>

Screenshot

screenshot.png

Component selection

Details

MoinMoin Version

1.5.7

OS and Version

Windows XP

Python Version

2.5

Server Setup

Apache 2.2

Server Details

Apache running on local machine

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

no idea how to fix the problem

Maybe try reading the docs and configuring your wiki will help. The path for the data_dir is set in wikiconfig.py (assuming you have a single wiki). Please use an absolute path, not a relative one. :)

Discussion

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/ApacheSetuptoolsProblem (last edited 2007-10-29 19:08:41 by localhost)