LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-10-2004, 09:58 AM   #1
brasschaat
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
problem apache2 CGI python MoinMoin (wiki)


The situation:

The server is called "aries"


Situatie now:

invoking the url shows the cgi-file the ScriptAlias directive in apache2.conf points to:

This is the CGI file

"
#! ~ python2.3
# -*- coding: iso-8859-1 -*-
"""
MoinMoin - CGI Driver Script

@copyright: 2000-2004 by Jürgen Hermann <jh@web.de>
@license: GNU GPL, see COPYING for details.
"""

from MoinMoin.request import RequestCGI

import os
if os.environ.get('QUERY_STRING') == 'test':
print "Content-Type: text/plain\n\nMoinMoin CGI Diagnosis\n======================\n"

try:
from MoinMoin.wikitest import runTest
print 'Package "MoinMoin" successfully imported.\n'
request = RequestCGI()
runTest(request)
except:
import sys, traceback, string, pprint
type, value, tb = sys.exc_info()
if type == ImportError:
print 'Your PYTHONPATH is:\n%s' % pprint.pformat(sys.path)
print "\nTraceback (innermost last):\n%s" % string.join(
traceback.format_tb(tb) + traceback.format_exception_only(type, value))
else:
request = RequestCGI()
request.run()
"
=======================

This looks as if apache2 finds the CGI file, but cannot execute the CGI file

So I tried to execute the python commands in the CGI-file at the command line:


Output on {aries}

root# python2.3
Python 2.3.4 (#2, Jul 5 2004, 09:15:05)
[GCC 3.3.4 (Debian 1:3.3.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from MoinMoin.request import RequestCGI
~config.py:33: UserWarning:
import of moin_config failed due to "No module named moin_config";
default configuration used instead.
warnings.warn(msg)
>>> from MoinMoin.wikitest import runTest
>>> request = RequestCGI()
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "~request.py", line 503,
in __init__
RequestBase.__init__(self, properties)
File "~request.py", line 63,
in __init__
self.dicts = self.initdicts()
File "~request.py", line 223,
in initdicts
dicts.scandicts()
File "~wikidicts.py", line
253, in scandicts
pagelist = wikiutil.getPageList(config.text_dir)
File "~wikiutil.py", line
274, in getPageList
pages = os.listdir(text_dir)
OSError: [Errno 2] No such file or directory: 'wiki/data/text'
>>> runTest(request)
File "<stdin>", line 1
runTest(request)
^
SyntaxError: invalid syntax
>>>
"

It would be very helpfull, for a newbie as myself, if someone could give a hint to make moinmoin work on this server.

Tnx in advance
__
 
Old 08-11-2004, 08:26 AM   #2
brasschaat
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Original Poster
Rep: Reputation: 0
The problem continues....

I populated the /mods-enabled directory with links to cgi.load + cgid.load +cgi.conf, and get now a reply from the server:


What to do next???

Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.0.49 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.4 PHP/4.3.4 Server at aries Port 80
What to do next???

___Johan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache2 php5 (cgi-fcgi). hgb Linux - Software 2 11-16-2005 09:51 AM
CGI With Apache2 karthik85nitt Linux - Newbie 2 07-15-2005 04:11 AM
CGI-script problem on Apache2 jkt2000 Linux - Networking 3 01-28-2005 04:38 AM
python and apache2 mindcry Linux - Software 0 12-09-2004 01:36 PM
CGI apache2 question gothrog Linux - Software 1 09-16-2004 02:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration