How to use mailman with LiteSpeed

#1
Hello.

I have installed mailman with apt.
Then, I wanted to use the mailman administration screen with LiteSpeed, so I set the CGI context.
However, I get the following error and can't get it to work.
What can be done to resolve this?
CPanel, etc. are not used.
The environment is Ubuntu18.04 and LiteSpeed 5.4.7.

----- Error content -----
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 "www-data", but
the system's web server executed the CGI script as
group "riku". Try tweaking the web server to run the
script as group "www-data", or re-run configure,
providing the command line option `--with-cgi-gid=riku'.
--------------------

----- Content of the configuration file -----
<contextList>
<context>
<type>cgi</type>
<uri>/mailman/</uri>
<location>/usr/lib/cgi-bin/mailman/</location>
<allowSetUID>1</allowSetUID>
<allowOverride>0</allowOverride>
<addDefaultCharset>off</addDefaultCharset>
</context>
<context>
<type>NULL</type>
<uri>/images/mailman/</uri>
<location>/usr/share/images/mailman/</location>
<allowBrowse>1</allowBrowse>
<addDefaultCharset>off</addDefaultCharset>
</context>
<context>
<type>NULL</type>
<uri>/pipermail/</uri>
<location>/var/lib/mailman/archives/public/</location>
<allowBrowse>1</allowBrowse>
<accessControl>
</accessControl>
<rewrite>
</rewrite>
<addDefaultCharset>off</addDefaultCharset>
<cachePolicy>
</cachePolicy>
</context>
</contextList>
--------------------

Sincerely yours
 
#3
you can try following to see if ok:
Virtual Host->Basic->Security
suEXEC User : www-data
suEXEC Group : www-data
Hello.

I specified the user and group as "www-data" as you advised.
However, this time, the following error is displayed.
Do you have a solution?

----- Error content -----
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 "www-data", but
the system's web server executed the CGI script as
group "nogroup". Try tweaking the web server to run the
script as group "www-data", or re-run configure,
providing the command line option `--with-cgi-gid=nogroup'.
--------------------

Sincerely yours.
 
#4
Hello.

Apparently it doesn't work, so I restored the server from the backup, installed Mailman 2.1.33, and tried to redo the settings.
However, when I added the CGI context and loaded the page, the following error was recorded in the error log and the 403 pages were displayed.

2020-06-03 00:10:27.895227 [INFO] [7415] [xxx.xxx.xxx.xxx:14059:HTTP2-15#example.xyz] Context [/mailman/] set UID/GID mode is not allowed, access denied.

Incidentally, if I change the SuExec user and group to "www-data", I get the same error.
I apologize for posting so many times, but is there any solution?

Sincerely yours.
 
#7
Hello.

I've sent you my LiteSpeed web console user information, just in case.
I hope you will confirm this.

Sincerely yours.
 

NiteWave

Administrator
#9
the issue resolved

the OS is Ubuntu 18.04.4 LTS

following 3 changes to make it work:
  1. under Virtual Host » abc.xyz » Context, create
    CGI Context Definition
    URI /cgi-bin/mailman/
    Path /usr/lib/cgi-bin/mailman/

  2. add user www-data

  3. set Virtual Host document root's owner:group as www-data:www-data
now abc.xyz/cgi-bin/mailman/admin starts to work
 
Top