Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Jul 2022 21:00:30 -0600
From:      Michael Loftis <mloftis@wgops.com>
To:        Software Info <softwareinfojam@gmail.com>
Cc:        Nick Kostirya via freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Mailman and obhttpd
Message-ID:  <CAHDg04uJHNLc9DL6%2BVyettLz6XfKVY2AdberdGC%2BhbCOcj%2B_BA@mail.gmail.com>
In-Reply-To: <CAFPCYA2ef5MwNYg1BvqXvQnOgH4GeT6DUieGp4dKRGXY4j0E4Q@mail.gmail.com>
References:  <CAFPCYA2ef5MwNYg1BvqXvQnOgH4GeT6DUieGp4dKRGXY4j0E4Q@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--000000000000a2326805e3426840
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Not an expert on the openbsd https but from what I recall Your root should
look more like root { =E2=80=9C/usr/local/mailman/cgi-bin=E2=80=9C, strip 1=
 } =E2=80=94 your
current configuration is telling it to exec the directory, which obviously
won=E2=80=99t work. =E2=80=A6 the latter tells it to take the URI and strip=
 one component
off to complete the filesystem part to the CGI=E2=80=A6

On Thu, Jul 7, 2022 at 14:12 Software Info <softwareinfojam@gmail.com>
wrote:

> Hi All,
>
> I am trying to get OpenBSD=E2=80=99s httpd working with Mailman but I am
> having some issues. I am using obhttpd-7.0.20211221 on FreeBSD 13.1
> and I used the suggestions found at
> https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/ When
> I try to access the site http://mailman.mydomain.com/Mailman/admin I
> get a 500 internal server error. I tried running both httpd and
> slowcgi without daemonizing them and I keep seeing this error on the
> screen: slowcgi: execve /usr/local/mailman/cgi-bin: Permission denied.
> Not sure why I am getting that since both httpd and slowcgi run as www
> and the cgi-bin directory is owned by www and has 755 permissions on
> it. At a loss. Any help would be appreciated.
>
>
> Here are my config files below.
>
> [obhttpd.conf]
> chroot "/"
> logdir "/var/log"
> server "mailman.mydomain.com" {
> listen on * port 80
> root "/usr/local/mailman/"
> log access "obhttpd-access.log"
> log error "obhttpd-error.log"
> location "/Mailman/*" {
> fastcgi socket "/var/www/run/slowcgi.sock"
> root "/usr/local/mailman/cgi-bin"
> }
>
> location "/icons/*" {
> root "/usr/local/mailman/icons/"
> }
>
> location "/pipermail/*" {
> root "/usr/local/mailman/archives/public/"
> }
> }
>
> [rc.conf]
> obhttpd_enable=3D"YES"
> slowcgi_enable=3D"YES"
> slowcgi_flags=3D"-p /"
>
> --

"Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds."
-- Samuel Butler

--000000000000a2326805e3426840
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div><div dir=3D"auto">Not an expert on the openbsd https but from what I r=
ecall Your root should look more like root { =E2=80=9C/<span style=3D"color=
:rgb(0,0,0)">usr/local/mailman/cgi-bin=E2=80=9C, strip 1 } =E2=80=94 your c=
urrent configuration is telling it to exec the directory, which obviously w=
on=E2=80=99t work. =E2=80=A6 the latter tells it to take the URI and strip =
one component off to complete the filesystem part to the CGI=E2=80=A6</span=
></div></div><div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr" clas=
s=3D"gmail_attr">On Thu, Jul 7, 2022 at 14:12 Software Info &lt;<a href=3D"=
mailto:softwareinfojam@gmail.com" target=3D"_blank">softwareinfojam@gmail.c=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-l=
eft:1ex;border-left-color:rgb(204,204,204)">Hi All,<br>
<br>
I am trying to get OpenBSD=E2=80=99s httpd working with Mailman but I am<br=
>
having some issues. I am using obhttpd-7.0.20211221 on FreeBSD 13.1<br>
and I used the suggestions found at<br>
<a href=3D"https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/=
" rel=3D"noreferrer" target=3D"_blank">https://www.quernus.co.uk/2015/09/28=
/running-mailman-on-openbsd/</a> When<br>
I try to access the site <a href=3D"http://mailman.mydomain.com/Mailman/adm=
in" rel=3D"noreferrer" target=3D"_blank">http://mailman.mydomain.com/Mailma=
n/admin</a> I<br>
get a 500 internal server error. I tried running both httpd and<br>
slowcgi without daemonizing them and I keep seeing this error on the<br>
screen: slowcgi: execve /usr/local/mailman/cgi-bin: Permission denied.<br>
Not sure why I am getting that since both httpd and slowcgi run as www<br>
and the cgi-bin directory is owned by www and has 755 permissions on<br>
it. At a loss. Any help would be appreciated.<br>
<br>
<br>
Here are my config files below.<br>
<br>
[obhttpd.conf]<br>
chroot &quot;/&quot;<br>
logdir &quot;/var/log&quot;<br>
server &quot;<a href=3D"http://mailman.mydomain.com" rel=3D"noreferrer" tar=
get=3D"_blank">mailman.mydomain.com</a>&quot; {<br>
listen on * port 80<br>
root &quot;/usr/local/mailman/&quot;<br>
log access &quot;obhttpd-access.log&quot;<br>
log error &quot;obhttpd-error.log&quot;<br>
location &quot;/Mailman/*&quot; {<br>
fastcgi socket &quot;/var/www/run/slowcgi.sock&quot;<br>
root &quot;/usr/local/mailman/cgi-bin&quot;<br>
}<br>
<br>
location &quot;/icons/*&quot; {<br>
root &quot;/usr/local/mailman/icons/&quot;<br>
}<br>
<br>
location &quot;/pipermail/*&quot; {<br>
root &quot;/usr/local/mailman/archives/public/&quot;<br>
}<br>
}<br>
<br>
[rc.conf]<br>
obhttpd_enable=3D&quot;YES&quot;<br>
slowcgi_enable=3D&quot;YES&quot;<br>
slowcgi_flags=3D&quot;-p /&quot;<br>
<br>
</blockquote></div></div>
</div>-- <br><div dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"g=
mail_signature"><br>&quot;Genius might be described as a supreme capacity f=
or getting its possessors<br>into trouble of all kinds.&quot;<br>-- Samuel =
Butler<br></div>

--000000000000a2326805e3426840--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHDg04uJHNLc9DL6%2BVyettLz6XfKVY2AdberdGC%2BhbCOcj%2B_BA>