FAQ
Hello everyone,

i noticed that other people have a similiar issue, but there was no
help yet.

I installed mailman and after doing the necessary changes to
httpd.conf i tried to check out if the cgi will work or not. and it does not.

http://myserver/mailman/admin

will give a

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root at 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.

The httpd-log says: Premature End of script headers: admin

apache runs the cgi-bin as user/group: nobody

where is the error? i followed the instructions..

seems that something's wrong with python?!!

thanks!

Ralph

Search Discussions

  • Richard Barrett at Aug 20, 2004 at 5:53 pm
    Anything logged in the Mailman error log ($prefix/logs/error)?

    What OS? What version of MM? How installed?
    On 20 Aug 2004, at 17:52, ralph at netzbeben.de wrote:


    Hello everyone,

    i noticed that other people have a similiar issue, but there was no
    help yet.

    I installed mailman and after doing the necessary changes to
    httpd.conf i tried to check out if the cgi will work or not. and it
    does not.

    http://myserver/mailman/admin

    will give a

    Internal Server Error
    The server encountered an internal error or misconfiguration and was
    unable to complete your request.
    Please contact the server administrator, root at 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.

    The httpd-log says: Premature End of script headers: admin

    apache runs the cgi-bin as user/group: nobody

    where is the error? i followed the instructions..

    seems that something's wrong with python?!!

    thanks!

    Ralph

    ------------------------------------------------------
    Mailman-Users mailing list
    Mailman-Users at python.org
    http://mail.python.org/mailman/listinfo/mailman-users
    Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
    Searchable Archives:
    http://www.mail-archive.com/mailman-users%40python.org/
  • Ralph at Aug 20, 2004 at 6:13 pm
    Hi Richard!

    There's no log in $prefix/logs/error.. does that mean apache doesn't
    even start the cgi?

    My versions:

    RedHat 9
    Apache 2.0.48
    Python 2.3.4
    Mailman 2.1.5

    I installed following the INSTALL-Instructions..
    (compiling etc. i arrived at httpd.conf and did the changes..)

    I just upgraded to Python 2.3.4 and recompiled mailman but the
    error still occurs.

    Anything logged in the Mailman error log ($prefix/logs/error)?
    What OS? What version of MM? How installed?
    Hello everyone,

    i noticed that other people have a similiar issue, but there was no
    help yet.

    I installed mailman and after doing the necessary changes to
    httpd.conf i tried to check out if the cgi will work or not. and it
    does not.

    http://myserver/mailman/admin

    will give a

    Internal Server Error
    The server encountered an internal error or misconfiguration and was
    unable to complete your request.
    Please contact the server administrator, root at 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.

    The httpd-log says: Premature End of script headers: admin

    apache runs the cgi-bin as user/group: nobody

    where is the error? i followed the instructions..

    seems that something's wrong with python?!!

    thanks!
  • Richard Barrett at Aug 21, 2004 at 7:19 am

    On 20 Aug 2004, at 19:13, ralph at netzbeben.de wrote:
    Hi Richard!

    There's no log in $prefix/logs/error.. does that mean apache doesn't
    even start the cgi?
    It is not clear what is going wrong as this point.

    What should be happening is that:

    1. Apache should run the $exec-prefix/cgi-bin/admin CGI wrapper. This
    in turn runs:

    2. The Python script $prefix/Mailman/Cgi/admin.py

    From what you have said the first step does not appear to succeed. If
    it had then any subsequent error would have been reported by the
    wrapper. No evidence of a Python problem as such.

    You could check your syslog to see if the the wrapper managed to write
    anything there. But, if the Mailman install process did not report any
    errors, I suspect your problem lies with the httpd.conf entries. Where
    is $exec-prefix/cgi-bin/admin in your setup and what httpd.conf entries
    did you add?
    My versions:

    RedHat 9
    Apache 2.0.48
    Python 2.3.4
    Mailman 2.1.5

    I installed following the INSTALL-Instructions..
    (compiling etc. i arrived at httpd.conf and did the changes..)

    I just upgraded to Python 2.3.4 and recompiled mailman but the
    error still occurs.

    Anything logged in the Mailman error log ($prefix/logs/error)?
    What OS? What version of MM? How installed?
    Hello everyone,

    i noticed that other people have a similiar issue, but there was no
    help yet.

    I installed mailman and after doing the necessary changes to
    httpd.conf i tried to check out if the cgi will work or not. and it
    does not.

    http://myserver/mailman/admin

    will give a

    Internal Server Error
    The server encountered an internal error or misconfiguration and was
    unable to complete your request.
    Please contact the server administrator, root at 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.

    The httpd-log says: Premature End of script headers: admin

    apache runs the cgi-bin as user/group: nobody

    where is the error? i followed the instructions..

    seems that something's wrong with python?!!

    thanks!
  • Ralph at Aug 22, 2004 at 9:53 pm
    Hi Richard and Tokio,

    i tried executing "admin" from the shell as nobody and it did work.
    (there was some html-ouput)

    So there must be a problem with the apache configuration.

    Here are my changes to httpd.conf:

    <VirtualHost x.x.x.x:80>
    ServerName xxx.xxx
    SuexecUserGroup nobody nobody
    DocumentRoot /usr/local/mailman/
    ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/
    Alias /pipermail/ /usr/local/mailman/archives/public/
    CustomLog /var/log/httpd/mailmanhttpd_access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
    ErrorLog /var/log/httpd/mailmanhttpd_error.log
    </VirtualHost>

    Are there any other settings which are important? i can't find
    anything in the installation instructions..

    Thanks again..
    Ralph
  • Ralph at Aug 22, 2004 at 10:59 pm
    i found this in the suexec-log (of apache):

    uid: (99/nobody) gid: (99/99) cmd: admin
    cannot run as forbidden uid (99/admin)

    ?! why is this uid forbidden? where to configure?
  • Tokio Kikuchi at Aug 22, 2004 at 11:04 pm

    i tried executing "admin" from the shell as nobody and it did work.
    (there was some html-ouput)

    So there must be a problem with the apache configuration.

    Here are my changes to httpd.conf:

    <VirtualHost x.x.x.x:80>
    ServerName xxx.xxx
    SuexecUserGroup nobody nobody
    You have suexec turned on. Mailman cgi is setgid but apache suexec
    refuses to execute s[ug]id program. Googling by 'mailman suexec' hits
    this page.
    http://www.pookey.co.uk/suexec-mailman.xml

    --
    Tokio Kikuchi tkikuchi@ is.kochi-u.ac.jp
    http://weather.is.kochi-u.ac.jp/
  • Tokio Kikuchi at Aug 21, 2004 at 11:16 am
    Hi,
    http://myserver/mailman/admin

    Internal Server Error
    The httpd-log says: Premature End of script headers: admin
    What do you get if you "cd <prefix>/cgi-bin ; ./admin" ?

    --
    Tokio Kikuchi, tkikuchi@ is.kochi-u.ac.jp
    http://weather.is.kochi-u.ac.jp/

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupmailman-users @
categoriespython
postedAug 20, '04 at 4:52p
activeAug 22, '04 at 11:04p
posts8
users3
websitelist.org

People

Translate

site design / logo © 2022 Grokbase