You are not logged in.
Pages: 1
Topic closed
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.
Also the instruction in the post install text of moinmoin package isn't working either
Any help is welcome, thanks
Offline
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
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
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
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
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
Please don't necrobump: https://wiki.archlinux.org/index.php/Fo … Bumping.27
If you have relevant information, add it to the wiki.
Closing
Offline
Pages: 1
Topic closed