You are not logged in.

#1 2010-03-08 14:30:43

mfpuente
Member
From: La Rioja - Argentina
Registered: 2009-06-04
Posts: 11

Problems installing MoinMoin

Hello all,

I need some help to install/configure MoinMoin in Archlinux.

First i installed the following package:
  + moinmoin
  + mod_wcgi
  + mod_python

I add to /etc/httpd/conf/httpd.conf this:

LoadModule wsgi_module modules/mod_wsgi.so
LoadModule python_module modules/mod_python.so

WSGIScriptAlias /mywiki/ "/usr/share/moin/server/moin.cgi"
<Directory /usr/share/moin/server/>
  Order deny,allow
  Allow from all
</Directory>
<Location /mywiki>
  SetHandler python-program
  PythonPath "['/srv/http/wiki'] + sys.path"
  PythonHandler MoinMoin.request::RequestModPy.run
  PythonOption Location /mywiki
</Location>

According to the wiki, [wiki]Mod_wsgi[/wiki] is working.

Also i copied /usr/share/moin/config/wikiconfig.py to /srv/http/wiki and edited wikiconfig.py modifing this

data_dir = '/srv/http/wiki/data'
data_underlay_dir = '/usr/share/moin/underlay'

The data folder has write access to others (chmod o+w).

Also the error log of apache is:

[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] mod_python (pid=6119, interpreter='localhost.localdomain', phase='PythonHandler', handler='MoinMoin.request::RequestModPy.run'): Application error
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] ServerName: 'localhost.localdomain'
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] DocumentRoot: '/srv/http'
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] URI: '/mywiki/'
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] Location: '/mywiki'
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] Directory: None
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] Filename: '/usr/share/moin/server/moin.cgi'
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] PathInfo: ''
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] Traceback (most recent call last):
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1]   File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch\n    default=default_handler, arg=req, silent=hlist.silent)
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1]   File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line 1202, in _process_target\n    module = import_module(module_name, path=path)
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1]   File "/usr/lib/python2.6/site-packages/mod_python/importer.py", line 304, in import_module\n    return __import__(module_name, {}, {}, ['*'])
[Mon Mar 08 11:27:52 2010] [error] [client 127.0.0.1] ImportError: No module named request
[Mon Mar 08 11:27:52 2010] [error] /usr/lib/python2.6/site-packages/mod_python/importer.py:32: DeprecationWarning: the md5 module is deprecated; use hashlib instead
[Mon Mar 08 11:27:52 2010] [error]   import md5

I don't know what is happeing, in the browser i get a 'error 500'

My apache knowledge is poor. sad

Also the instruction in the post install text of moinmoin package isn't working either

Any help is welcome, thanks

Offline

#2 2010-03-08 18:35:31

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Problems installing MoinMoin

I don't if you know but i will try with the moinmoin package instead of doing a manually installation.
Install:

 $ sudo pacman -S moinmoin

I hope this help you.

Offline

#3 2010-03-08 18:59:26

mfpuente
Member
From: La Rioja - Argentina
Registered: 2009-06-04
Posts: 11

Re: Problems installing MoinMoin

n0dix wrote:

I don't if you know but i will try with the moinmoin package instead of doing a manually installation.
Install:

 $ sudo pacman -S moinmoin

I hope this help you.

Yes, all the packages are installed with pacman, the problem that i have is to configure apache

Offline

#4 2010-03-08 19:20:42

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: Problems installing MoinMoin

I see to guides: http://moinmo.in/HowTo/ApacheWithModWSGI and http://code.google.com/p/modwsgi/wiki/Q … ationGuide, and they don't use
the double quotes in the line:

 SGIScriptAlias /mywiki/ "/usr/share/moin/server/moin.cgi"

.

Last edited by n0dix (2010-03-08 19:21:05)

Offline

#5 2010-03-08 20:29:57

mfpuente
Member
From: La Rioja - Argentina
Registered: 2009-06-04
Posts: 11

Re: Problems installing MoinMoin

n0dix wrote:

I see to guides: http://moinmo.in/HowTo/ApacheWithModWSGI and http://code.google.com/p/modwsgi/wiki/Q … ationGuide, and they don't use
the double quotes in the line:

 SGIScriptAlias /mywiki/ "/usr/share/moin/server/moin.cgi"

.

Thanks, but that doesn't work either. I also tried

WSGIScriptAlias /mywiki/ /usr/share/moin/server/moin.wsgi

But it doesn't work.

Offline

#6 2013-10-08 22:11:45

vins31
Member
Registered: 2012-04-17
Posts: 2

Re: Problems installing MoinMoin

Excuse me for raviving an old topic.
mfpuente I got the same problem an finally chose to use wsgi
After a long struggle it finally works.
Ask me if you need any details.

Offline

#7 2013-10-08 22:46:45

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Problems installing MoinMoin

Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27

If you have relevant information, add it to the wiki.


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB