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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Not an expert on the openbsd https but from what I recall Your root should
look more like root { “/usr/local/mailman/cgi-bin“, strip 1 } — your
current configuration is telling it to exec the directory, which obviously
won’t work. … the latter tells it to take the URI and strip one component
off to complete the filesystem part to the CGI…
On Thu, Jul 7, 2022 at 14:12 Software Info <softwareinfojam@gmail.com>
wrote:
> Hi All,
>
> I am trying to get OpenBSD’s 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="YES"
> slowcgi_enable="YES"
> slowcgi_flags="-p /"
>
> --
"Genius might be described as a supreme capacity for getting its possessors
into trouble of all kinds."
-- Samuel Butler
[-- Attachment #2 --]
<div><div dir="auto">Not an expert on the openbsd https but from what I recall Your root should look more like root { “/<span style="color:rgb(0,0,0)">usr/local/mailman/cgi-bin“, strip 1 } — your current configuration is telling it to exec the directory, which obviously won’t work. … the latter tells it to take the URI and strip one component off to complete the filesystem part to the CGI…</span></div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 7, 2022 at 14:12 Software Info <<a href="mailto:softwareinfojam@gmail.com" target="_blank">softwareinfojam@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">Hi All,<br>
<br>
I am trying to get OpenBSD’s 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="https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/" rel="noreferrer" target="_blank">https://www.quernus.co.uk/2015/09/28/running-mailman-on-openbsd/</a> When<br>
I try to access the site <a href="http://mailman.mydomain.com/Mailman/admin" rel="noreferrer" target="_blank">http://mailman.mydomain.com/Mailman/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 "/"<br>
logdir "/var/log"<br>
server "<a href="http://mailman.mydomain.com" rel="noreferrer" target="_blank">mailman.mydomain.com</a>" {<br>
listen on * port 80<br>
root "/usr/local/mailman/"<br>
log access "obhttpd-access.log"<br>
log error "obhttpd-error.log"<br>
location "/Mailman/*" {<br>
fastcgi socket "/var/www/run/slowcgi.sock"<br>
root "/usr/local/mailman/cgi-bin"<br>
}<br>
<br>
location "/icons/*" {<br>
root "/usr/local/mailman/icons/"<br>
}<br>
<br>
location "/pipermail/*" {<br>
root "/usr/local/mailman/archives/public/"<br>
}<br>
}<br>
<br>
[rc.conf]<br>
obhttpd_enable="YES"<br>
slowcgi_enable="YES"<br>
slowcgi_flags="-p /"<br>
<br>
</blockquote></div></div>
</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br>"Genius might be described as a supreme capacity for getting its possessors<br>into trouble of all kinds."<br>-- Samuel Butler<br></div>
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHDg04uJHNLc9DL6%2BVyettLz6XfKVY2AdberdGC%2BhbCOcj%2B_BA>
