On Fri, 24 Jul 2020 at 19:38, Bill Cole <
mailmanu-20190...@billmail.scconsult.com> wrote:

> On 23 Jul 2020, at 7:40, Odhiambo Washington wrote:
>
> > Hello List Admins,
> >
> > I am somehow at the end of my thinking capacity with this problem, yet
> > I
> > think it's something minor that a third eye can help me with:
> > I have installed mailman-2.1.34 on a brand new box running
> > FreeBSD-12.1.
> > The problem is that the web UI won't open. It instead prompts me
> > to download a file. The contents of the file can be seen from the
> > below
> > link:
> >
> > https://pastebin.com/8bh6g6rv
>
> That's the 'listinfo' ELF binary. That indicates a webserver
> misconfiguration: it's sending what it should be executing.
>

True. Gave me grief.


> How I have done the installation:
> > 1. I did the manual options
> > cd mailman-2.1.34
> > ./configure --with-cgi-gid=80 --with-mail-gid=26
> > make
> > make install
>
> Have you considered the options of installing the prebuilt package or
> from the ports tree? Either may work for you without any fuss.
>

I could do any. Sometimes the prebuilt is behind and I want to test the
bleeding edge :-)


> > 2. The files in /usr/local/mailman:
> [...]
> > drwxrwsrwx  22 root     mailman    512 Jul 29  2017 mailman
>
> Probably unrelated, but that's very disturbing.
>

The directory permissions are now drwxrwsr-x



>
> [...]
>
> > VirtualHost configuration:
> >
> > <VirtualHost *:80>
>
> Ok, this is for http://whatever...
>
> >   ServerName lists.mydom.ain
> >   ServerAdmin odhia...@gmail.com
> >   ErrorLog /var/log/mailman-error.log
> >
> >   RewriteEngine On
> > # RedirectPermanent /mailman/ https://lists.kictanet.or.ke/mailman/
> >   RewriteRule ^/(mailman|pipermail|icons|htdig)/.+$ - [S=1]
> >   RewriteRule ^/(mailman|pipermail|icons|htdig)(/.*)
> > https://%{HTTP_HOST}/$1$2$3$4
> > [L,R]
>
> That kicks you over to a port 443 virtual host.
>
> >   RedirectPermanent /htdig /icons/htdig
> >   RedirectMatch ^/mailman[/]*$   /mailman/listinfo/
> >
> >   Alias /pipermail "/usr/local/mailman/archives/public"
> >   <Directory /usr/local/mailman/archives/public/>
> >         Options Indexes FollowSymlinks
> >         AllowOverride all
> >         Order Allow,Deny
> >         Allow from all
> >         Require all granted
> >    </Directory>
> >
> >  ScriptAlias /mailman/ /usr/local/mailman/cgi-bin/
>
> This applies to the port 80 vhost. Do you have the same in your port 443
> vhost?
>

Yes. The port 443 vhost is exactly identical except for the SSL options
added.


>
> >   <Directory /usr/local/mailman/cgi-bin/>
> >      Options FollowSymLinks ExecCGI
> >      AllowOverride None
> >      Order Allow,Deny
> >      Allow from all
> >      Require all granted
> >   </Directory>
> >  </VirtualHost>
> >
> >
> > What is it that I am being blind to that makes the web UI not open?
>
> My guess: no ScriptAlias directive in the port 443 vhost.
>

Turned out that cgid module in httpd had remained disabled all this time!


>
> > Thanking you in advance for being my third eye.
>
> I hope the above qualifies...
>

It sure does qualify. Every effort counts and is worthy of appreciation.

Thanks.

-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.", grep ^[^#] :-)
------------------------------------------------------
Mailman-Users mailing list -- mailman-users@python.org
To unsubscribe send an email to mailman-users-le...@python.org
https://mail.python.org/mailman3/lists/mailman-users.python.org/
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: https://www.mail-archive.com/mailman-users@python.org/
    https://mail.python.org/archives/list/mailman-users@python.org/

Reply via email to