logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Mailman CGI error
Author
pradeepprakhar



Joined: 21 Feb 2015
Posts: 2
Location: Bangalore India

PostPosted: Sat 21 Feb '15 9:10    Post subject: Mailman CGI error Reply with quote

Mailman CGI error!!!
The Mailman CGI wrapper encountered a fatal error. This entry is being stored in your syslog:
Group mismatch error. Mailman expected the CGI
wrapper script to be executed as group "apache", but
the system's web server executed the CGI script as
group "mailman". Try tweaking the web server to run the
script as group "apache", or re-run configure,
providing the command line option `--with-cgi-gid=mailman'.



I checked the gid of apache and mailman is the member of apache.


[root@host]# su apache
bash-4.1$ id
uid=48(apache) gid=48(apache) groups=48(apache)
bash-4.1$ python
Python 2.6.9 (unknown, Sep 13 2014, 00:25:11)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import grp, os, sys
>>> os.getgid()
48
>>> grp.getgrgid(os.getgid())
grp.struct_group(gr_name='apache', gr_passwd='x', gr_gid=48, gr_mem=['mailman'])
>>>


There are the files in /usr/local/mailman/cgi-bin/

ls -ll /usr/local/mailman/cgi-bin/
total 312
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 admin
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 admindb
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 confirm
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 create
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 edithtml
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 htdig
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 listinfo
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 mmsearch
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 options
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 private
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 rmlist
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 roster
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 subscribe


Thanks
Pradeep
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7301
Location: Germany, Next to Hamburg

PostPosted: Sat 21 Feb '15 9:57    Post subject: Reply with quote

You may change the the owner in /usr/local/mailman/cgi-bin/

Code:

cd /usr/local/mailman/cgi-bin/
chown -R rooot:apache *
Back to top
pradeepprakhar



Joined: 21 Feb 2015
Posts: 2
Location: Bangalore India

PostPosted: Mon 23 Feb '15 11:45    Post subject: Reply with quote

Hi James,

When I changed the permission of mmsearch in /usr/local/mailman/cgi-bin/ , I got below error as a Bug.

from
-rwxr-sr-x 1 root mailman 23096 Jan 8 02:30 mmsearch
To
-rwxr-xr-x 1 root apache 23096 Jan 8 02:30 mmsearch

And tried to access http://maymailman.net/mailman/mmsearch/testlist ( just when I do an archive search)

“Bug in Mailman version 2.1.12

We're sorry, we hit a bug!

Please inform the webmaster for this site of this problem. Printing of traceback and other system information has been explicitly inhibited, but the webmaster can find this information in the Mailman error logs.

Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7301
Location: Germany, Next to Hamburg

PostPosted: Tue 24 Feb '15 11:14    Post subject: Reply with quote

pradeepprakhar wrote:
but the webmaster can find this information in the Mailman error logs.


What is in the error log now?
Back to top


Reply to topic   Topic: Mailman CGI error View previous topic :: View next topic
Post new topic   Forum Index -> Other Software