[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-misc
Subject:    Re: send help ( chroot php fpm refuse to exec/popen/procopen... on 7.0 )
From:       "Sven F." <sven.falempin () gmail ! com>
Date:       2021-10-27 0:25:54
Message-ID: CA++fYEii5SknoNtLw5zTa1RVZ1sn7S8ZZST_SzAK9N6yVGgC3A () mail ! gmail ! com
[Download RAW message or body]

On Tue, Oct 26, 2021 at 11:13 AM Stuart Henderson <stu.lists@spacehopper.org>
wrote:

> On 2021-10-26, Sven F. <sven.falempin@gmail.com> wrote:
> > exec ('/usr/sbin/ksh -c "echo a"', $output, $retval);
> > echo '<br/>';
> > echo "Returned with status $retval and output:\n";
> ..
> > Returned with status 127 and output:
> ..
> 
> You need /bin/sh in the chroot for this to work.
> 
> "The exit status of the shell is 127 if the command file specified on
> the command line could not be opened"
> 
> I've just added some more text to php's pkg-readme files about this
> 
> 
Thanks all,

Am i supposed to put femail here ?

; For Unix only.  You may supply arguments as well (default: "sendmail -t
-i").
; http://php.net/sendmail-path
sendmail_path = /bin/femail -t -i

# cat /usr/local/share/doc/pkg-readmes/femail-chroot
$OpenBSD: README-chroot,v 1.3 2018/09/04 12:46:15 espie Exp $

Yes, now i see it :-/

+-----------------------------------------------------------------------
> Running femail-chroot on OpenBSD
+-----------------------------------------------------------------------
[..]

If you're using femail with PHP inside a chroot jail, be aware that
PHP's built-in "mail" function uses popen(), which requires /bin/sh

Y'all great.

-- 
--
---------------------------------------------------------------------------------------------------------------------
 Knowing is not enough; we must apply. Willing is not enough; we must do


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic