[Moin-user] install problem(mod_python, debian)

Cedric BRINER work at infomaniak.ch
Fri Sep 30 05:47:12 EDT 2005


hi,

I'm trying to install moinmoin into a sarge.
# aptitude install libapache2-mod-python moinmoin-common python-moinmoin

# COLUMNS=150 dpkg -l python2.3-moinmoin libapache2-mod-python moinmoin-common
   Desired=Unknown/Install/Remove/Purge/Hold
   | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
   |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
   ||/ Name                            Version                         Description
   +++-===============================-===============================-==============================================================================
   ii  python2.3-moinmoin              1.3.4-3                         Python clone of WikiWiki - library
   ii  libapache2-mod-python           3.1.3-3                         An Apache module that embeds Python within the server
   ii  moinmoin-common                 1.3.4-3                         Python clone of WikiWiki - common data


and I've followed the info in:
http://moinmoin.wikiwikiweb.de/HelpOnInstalling/ApacheWithModPython
and the 
/usr/share/doc/moinmoin-common/README.Debian
---%<---
    1) Create and populate /var/www/mywiki
       # mkdir /var/www/mywiki
       # cp -r /usr/share/moin/data /usr/share/moin/underlay /usr/share/moin/server/moin.cgi /var/www/mywiki
   
    2) Pass on the wiki to Apache:
       # chown -R www-data: /var/www/mywiki
   
    3) Configure Apache 1.3:
       Add the following lines to /etc/apache/httpd.conf:
   
           Alias /wiki/ "/usr/share/moin/htdocs/"
           ScriptAlias /MyWiki "/var/www/mywiki/moin.cgi"
   
       and reload apache
   
    4) Configure MoinMoin:
       # edit /etc/moin/farmconfig.py
           (add mywiki to "wikis" and customize general stuff)
       # cp /etc/moin/moinmaster.py /etc/moin/mywiki.py
       # edit /etc/moin/mywiki.py
           (Customize to your liking...)
   
    5) Enjoy your new wiki at http://your.site/MyWiki/
---%<---

# cat /etc/apache2/conf.d/obswiki
   Alias /wiki/ "/usr/share/moin/htdocs/"
   
   #
   # this is for CGI (quite slow)
   #ScriptAlias /obswiki "/export/diskA1/WWW/obswiki/moin.cgi"
   
   #
   # this is for mod_python
   <Location /obswiki>
    SetHandler python-program
    PythonPath "['/export/diskA1/WWW/obswiki/']+sys.path"
    PythonHandler MoinMoin.request::RequestModPy.run
    PythonDebug On
   </Location>


I've successfully make it work as CGI script by configuring the farmconfig.py, and instructing it that the wikiname will be ``obswiki''. : )
But the mod_python lamentably failed : (
the browser gives me back:
   MoinMoin Configuration Error
   ..
   ..
   Mod_python error: "PythonHandler MoinMoin.request::RequestModPy.run"
   
   Traceback (most recent call last):
   
     File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 301, in HandlerDispatch
       assert (type(result) == type(int())), \
   
   AssertionError: Handler 'MoinMoin.request::RequestModPy.run' returned invalid return code.

and the apaches log are:
   [Fri Sep 30 14:31:46 2005] [notice] mod_python: (Re)importing module 'MoinMoin.request'
   [Fri Sep 30 14:31:46 2005] [error] [client 1xx.xx.xx.xx] PythonHandler MoinMoin.request::RequestModPy.run: Traceback (most recent call last):
   [Fri Sep 30 14:31:46 2005] [error] [client 1xx.xx.xx.xx] PythonHandler MoinMoin.request::RequestModPy.run:   File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 301, in HandlerDispatch\n    assert (type(result) == type(int())), \\
   [Fri Sep 30 14:31:46 2005] [error] [client 1xx.xx.xx.xx] PythonHandler MoinMoin.request::RequestModPy.run: AssertionError: Handler 'MoinMoin.request::RequestModPy.run' returned invalid return code.

since it, I've try to remove/change the config in /etc/moin/.. but the result are strictly the same.

so maybe the error comes before.

any idea ?

thanks

Ced.

-- 

Cedric BRINER
Geneva - Switzerland




More information about the Moin-user mailing list