[Moin-user] "internal server" error - permissions?

Ben H benh at uk2.net
Tue Aug 20 15:52:02 EDT 2002


	I've messed up installing Moin Moin on Mandrake 8.1.

	I did what the Help page on the MoinMoin wiki said. As far as I can tell I 
have entered the right directories for things in the config files.

	My Apache seems to be working OK. However, when I go to 
http://localhost/mywiki (and similar), I get a 500 Internal Server error. 
Looking at the end of the log I see this:

[Tue Aug 20 22:55:09 2002] [error] [client 127.0.0.1] Premature end of script 
headers: /usr/share/moin/mywiki/moin.cgi
Traceback (most recent call last):
  File "/usr/share/moin/mywiki/moin.cgi", line 32, in ?
    cgimain.run()
  File "/usr/lib/python2.1/site-packages/MoinMoin/cgimain.py", line 103, in 
run
    sys.stderr = open(os.path.join(config.data_dir, 'err_log'), 'at')
IOError: [Errno 13] Permission denied: 'data/err_log'
[Tue Aug 20 22:55:11 2002] [error] [client 127.0.0.1] Premature end of script 
headers: /usr/share/moin/mywiki/moin.cgi

	So this seems to be a permissions thing, but I can't fix it.
	I have done chmod -R a+rX /usr/share/moin/mywiki/data/ so that the web 
server user can change files there. I have done the same for 
/usr/lib/python2.1/site-packages/MoinMoin

	I have tried starting the webserver as root by commenting out the User 
directive in httpd.conf.

	I'm sure there's something obvious I'm missing, but can anyone suggest what?

	This wiki is for use on the local machine only, if that's any help.

	Many thanks for any suggestions.


	I append the diagnosis output:


 lynx --dump http://localhost/mywiki?test
MoinMoin CGI Diagnosis
======================

Package "MoinMoin" sucessfully imported.

Release  1.0
Revision 1.159

Checking directories...
    data directory tests OK (set to '/usr/share/moin/mywiki/data')
    text directory tests OK (set to '/usr/share/moin/mywiki/data/text')
    user directory tests OK (set to '/usr/share/moin/mywiki/data/user')
    backup directory tests OK (set to '/usr/share/moin/mywiki/data/backup')

*** The edit log 'data/editlog' is not writable!
Found an external diff: "diff - GNU diffutils version 2.7"

Server Environment:
    DOCUMENT_ROOT = '/var/www/html'
    SERVER_ADDR = '127.0.0.1'
    SERVER_PORT = '80'
    GATEWAY_INTERFACE = 'CGI/1.1'
    HTTP_ACCEPT_LANGUAGE = 'en'
    REMOTE_ADDR = '127.0.0.1'
    SERVER_NAME = 'localhost.localdomain'
    HTTP_USER_AGENT = 'Lynx/2.8.5dev.2 libwww-FM/2.14 SSL-MM/1.4.1 
OpenSSL/0.9.
6a'
    HTTP_ACCEPT = 'text/html, text/plain, text/sgml, video/mpeg, image/jpeg, 
im
age/tiff, image/x-rgb, image/png, image/x-xbitmap, image/x-xbm, image/gif, 
appl
ication/postscript, */*;q=0.01'
    REQUEST_URI = '/mywiki?test'
    PATH = '/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin'
    QUERY_STRING = 'test'
    SCRIPT_FILENAME = '/usr/share/moin/mywiki/moin.cgi'
    SCRIPT_URL = '/mywiki'
    HTTP_HOST = 'localhost'
    REQUEST_METHOD = 'GET'
    SERVER_SIGNATURE = '<ADDRESS>Apache-AdvancedExtranetServer/1.3.22 Server 
at
 localhost.localdomain Port 80</ADDRESS>\n'
    SCRIPT_URI = 'http://localhost.localdomain/mywiki'
    SCRIPT_NAME = '/mywiki'
    SERVER_ADMIN = 'root at localhost'
    SERVER_SOFTWARE = 'Apache-AdvancedExtranetServer/1.3.22 (Mandrake 
Linux/10.
1mdk) PHP/4.0.6'
    SERVER_PROTOCOL = 'HTTP/1.0'
    REMOTE_PORT = '32992'





More information about the Moin-user mailing list