suexec/mailman problem (modedit)

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Hi,

I have just been alerted by a user than MailMan isn\'t working for some reason.

I tried
/usr/local/cpanel/3rdparty/mailman/bin/check_perms and some of the other files in that dir but all report no errors.

I get an Internal Server Error when I access
http://www.satch-list.com/mailman/listinfo/satriani_satch-list.com

Any ideas?

File permissions seems fine.
[quote:30050b94c3]
drwxrwsr-x 2 mailman mailman 4096 Dec 29 21:06 ./
drwxrwsr-x 8 mailman mailman 4096 Jan 14 2001 ../
-rw-rw-r-- 1 mailman mailman 1706 Oct 22 21:05 admindbpreamble.html
-rw-rw---- 1 mailman mailman 12709 Dec 29 21:06 config.db
-rw-rw---- 1 mailman mailman 12709 Dec 29 21:05 config.db.last
-rw-rw-r-- 1 mailman mailman 189 Oct 22 21:05 handle_opts.html
-rw-rw-r-- 1 mailman mailman 1026 Oct 22 21:05 headfoot.html
-rw-rw-r-- 1 mailman mailman 3136 Oct 22 21:05 listinfo.html
-rw-rw-r-- 1 mailman mailman 5575 Dec 29 21:04 next-digest
-rw-rw-r-- 1 mailman mailman 118 Dec 29 21:04 next-digest-topics
-rw-rw-r-- 1 mailman mailman 4106 Oct 22 21:05 options.html
-rw-rw-r-- 1 mailman mailman 2 Dec 29 17:00 request.db
-rw-rw-r-- 1 mailman mailman 1169 Oct 22 21:05 roster.html
-rw-rw-r-- 1 mailman mailman 198 Oct 22 21:05 subscribe.html
[/quote:30050b94c3]

James
 
B

bdraco

Guest
Check the server\'s error_log

tail -f /usr/local/apache/logs/error_log

[quote:0a2991dbc9]Hi,

I have just been alerted by a user than MailMan isn\'t working for some reason.

I tried
/usr/local/cpanel/3rdparty/mailman/bin/check_perms and some of the other files in that dir but all report no errors.

I get an Internal Server Error when I access
http://www.satch-list.com/mailman/listinfo/satriani_satch-list.com

Any ideas?

File permissions seems fine.
[quote:0a2991dbc9]
drwxrwsr-x 2 mailman mailman 4096 Dec 29 21:06 ./
drwxrwsr-x 8 mailman mailman 4096 Jan 14 2001 ../
-rw-rw-r-- 1 mailman mailman 1706 Oct 22 21:05 admindbpreamble.html
-rw-rw---- 1 mailman mailman 12709 Dec 29 21:06 config.db
-rw-rw---- 1 mailman mailman 12709 Dec 29 21:05 config.db.last
-rw-rw-r-- 1 mailman mailman 189 Oct 22 21:05 handle_opts.html
-rw-rw-r-- 1 mailman mailman 1026 Oct 22 21:05 headfoot.html
-rw-rw-r-- 1 mailman mailman 3136 Oct 22 21:05 listinfo.html
-rw-rw-r-- 1 mailman mailman 5575 Dec 29 21:04 next-digest
-rw-rw-r-- 1 mailman mailman 118 Dec 29 21:04 next-digest-topics
-rw-rw-r-- 1 mailman mailman 4106 Oct 22 21:05 options.html
-rw-rw-r-- 1 mailman mailman 2 Dec 29 17:00 request.db
-rw-rw-r-- 1 mailman mailman 1169 Oct 22 21:05 roster.html
-rw-rw-r-- 1 mailman mailman 198 Oct 22 21:05 subscribe.html
[/quote:0a2991dbc9]

James

[/quote:0a2991dbc9]
 

kwimberl

Well-Known Member
Aug 13, 2001
123
0
316
We have the same problem on one of our boxes. Here is the error from the log:

[Sat Dec 29 21:08:53 2001] [error] [client 65.35.195.160] Premature end of script headers: /usr/local/cpanel/3rdparty/mailman/cgi-bin/admin

This from:

http://spiritministries.org/mailman/admin/ccecommunity_spiritministries.org

Interesting enough, this works:

http://westwing.smartnoc.net/mailman/admin/ccecommunity_spiritministries.org

(That is the main box ip)


[Edited on 12/29/01 by kwimberl]
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Hi,

I get this in that error_log

[quote:5ba0e14232][Sun Dec 30 06:02:57 2001] [error] [client 212.126.138.32] Premature end of script headers: /usr/local/cpanel/3rdparty/mailman/cgi-bin/private[/quote:5ba0e14232]

James
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
Is python hosed on the machine in question? Such as, can you even get to a python shell from your regular bash (or similar shell)... or is even that hosed?

Also, maybe this thread can be of assistance...
http://support.cpanel.net/new/viewthread.php?tid=1032


Standing by......
:cool:
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
It has always worked - nothing has changed on the server - ie no kernal updates or anything. Only software change was updated CPanel software.

So it appears to have just died

Any other suggestions?

James
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
Sometimes things mutate, as you know..
Did you try the permissions script as suggested in the above-mentioned thread? Probably be the next thing I would look at before backing up the mailman config and then reinstalling, and finally injecting the lists from the backup.
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Soz - yes i tried what u suggested in the other thread and no luck - came back with \"No errors\".

It isn\'t just one Mailing list that doesn\'t work - its all of the ones on the server.
You CAN Still send and receive emails and subscribe via command-line, its just the viewing members/archives/admin area that doesn\'t work.

James
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Hi,

Problem still not fixed. Please help - I am getting loads of emails from people saying they cannot access their MailMan page to administer posts etc

--James
 

feanor

Well-Known Member
Aug 13, 2001
835
0
316
As Nick mentioned in a post that could be related.... is your python install healthy? That is can you type \"python\" from the shell, and get into python successfully?

At this point if people are screaming I would reinstall mailman after backing up all the lists, etc.

Backup everything (EVERYTHING), within
/usr/local/cpanel/3rdparty/mailman ....

then... wipe out /usr/local/cpanel/3rdparty/mailman ...

Then install layer 2 again, (/scripts/upcp)
.... Then, see if you can\'t create a test list on one of the domains that are already configured on the box. If the same problems are occuring, then you have problems with python and/or problems with libraries required for mailman and/or python to install or function correctly.

If that DID work (the test list)... then copy everything back to the ...3rdparty/mailman/ directory, run the permissions script to make sure everything is golden (or compare to a similar machine that is working fine)....

That\'s what I would do at that point.
Just be careful and make sure you backup EVERYTHING in that ...3rdparty/mailman/ directory before you remove shite.

Good luck.


;)
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Yep - python is OK
[quote:e26dc5e088][email protected] [~]# python
Python 1.5.2 (#1, Mar 3 2001, 01:35:43) [GCC 2.96 20000731 (Red Hat Linux 7.1 2 on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam[/quote:e26dc5e088]

Gonna try the other thing bit u advised.

Thanks :)

James
 
B

bdraco

Guest
Its a problem with suexec. I\'ve modified cpanel to point the user to the main ip of the box when suexec is installed.
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Hi,

I updated cpanel - still same problem. Today I am gonna do what Feanor said now :)

--James
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
[quote:a34d3f0826]
As Nick mentioned in a post that could be related.... is your python install healthy? That is can you type \"python\" from the shell, and get into python successfully?

At this point if people are screaming I would reinstall mailman after backing up all the lists, etc.

Backup everything (EVERYTHING), within
/usr/local/cpanel/3rdparty/mailman ....

then... wipe out /usr/local/cpanel/3rdparty/mailman ...

Then install layer 2 again, (/scripts/upcp)
.... Then, see if you can\'t create a test list on one of the domains that are already configured on the box. If the same problems are occuring, then you have problems with python and/or problems with libraries required for mailman and/or python to install or function correctly.

If that DID work (the test list)... then copy everything back to the ...3rdparty/mailman/ directory, run the permissions script to make sure everything is golden (or compare to a similar machine that is working fine)....

That\'s what I would do at that point.
Just be careful and make sure you backup EVERYTHING in that ...3rdparty/mailman/ directory before you remove shite.

Good luck.


;) [/quote:a34d3f0826]

Just tried this - no luck.
Backed up MailMan dir, reinstalled Layer 2, created a test list, tried to go to its admin area - Internal Error page again.

:/

Anything else I need to try?

--James
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
plot thickens...

When tailing error_log I got this error
[Tue Jan 1 10:18:09 2002] [error] [client 212.126.138.32] Premature end of script headers: /usr/local/cpanel/3rdparty/mailman/cgi-bin/private

So I tried running ./private from the server and got...
[quote:8bf0906c9e]Content-type: text/html

<head>
<title>Mailman CGI error!!!</title>
</head><body>
<h1>Mailman CGI error!!!</h1>
The expected gid of the Mailman CGI wrapper did not match the gid as set by the Web server.<p>The most likely cause is that Mailman was configured and installed incorrectly. Please read the INSTALL instructions again, paying close attention to the <tt>--with-cgi-gid</tt> configure option. This entry is being stored in your syslog:
<pre>
Failure to exec script. WANTED gid 99, GOT gid 500. (Reconfigure to take 500?)</pre>[/quote:8bf0906c9e]


Any ideas now?

--James
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
More and more problems

Jesus, as if MailMan problems weren\'t enough, I now have people telling me their perl scripts are giving them an Error 500!

I spoke to someone who is a sys admin, and he said it is SUEXEC problem. When was this introduced into Cpanel?

He also said that could be why MailMan isn\'t working too.

If so, how can I roll back to Cpanel BEFORE SUEXEC was implemented?

This is giving me a serious headache!

--James

[Edited on 1/1/02 by WildWayz]
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Same errors as my other post too.

/usr/local/apache/logs/error_log gives this

[Tue Jan 1 16:18:49 2002] [error] [client 212.126.138.32] Premature end of script headers: /home/dvdcrit/public_html/cgi-bin/hello.cgi
[Tue Jan 1 16:19:56 2002] [error] [client 212.126.138.32] Premature end of script headers: /home/dvdcrit/public_html/cgi-bin/hello.pl

/usr/local/apache/logs/suexec_log has this
[2002-01-01 16:18:31]: info: (target/actual) uid: (dvdcrit/dvdcrit) gid: (dvdcrit/dvdcrit) cmd: hello.pl
[2002-01-01 16:18:31]: error: directory is writable by others: (/home/dvdcrit/public_html/cgi-bin)
[2002-01-01 16:18:49]: info: (target/actual) uid: (dvdcrit/dvdcrit) gid: (dvdcrit/dvdcrit) cmd: hello.cgi
[2002-01-01 16:18:49]: error: directory is writable by others: (/home/dvdcrit/public_html/cgi-bin)

This is extremely frustrating.

--James

[Edited on 1/1/02 by WildWayz]
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
ok... think I see the problem

/usr/local/apache/conf/httpd.conf

under each server entry, it has
User dvdcrit
Group dvdcrit

I commented it out on 1 domain, restarted apache and MailMan and cgi scripts work.

Would it be safe to say if I done it for all domains it would be fine?
Or will WHM/Cpanel re-add it later?

--James
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
ok... think I see the problem

/usr/local/apache/conf/httpd.conf

under each server entry, it has
User dvdcrit
Group dvdcrit

I commented it out on 1 domain, restarted apache and MailMan and cgi scripts work.

Would it be safe to say if I done it for all domains it would be fine?
Or will WHM/Cpanel re-add it later?

--James