Re: php system using httpd and php-fpm

2016-11-05 Thread Peter Fraser
owner-m...@openbsd.org [mailto:owner-m...@openbsd.org] On Behalf Of Otto Moerbeek Sent: Friday, November 4, 2016 2:38 PM To: Peter Fraser Cc: 'misc@openbsd.org' Subject: Re: php system using httpd and php-fpm On Fri, Nov 04, 2016 at 05:29:54PM +, Peter Fraser wrote: > I actua

Re: php system using httpd and php-fpm

2016-11-04 Thread Kevin Chadwick
You can also use the femail-chroot package and build ksh with env CC="cc -static" to get a sh binary that can go in /var/www/bin and even add a more restrictive pledge to ksh if you like.

Re: php system using httpd and php-fpm

2016-11-04 Thread Noah
I'm running tinytiny RSS on OpenBSD httpd with PHP-FPM and MariaDB. In order to get mail working for it, I also needed these copied from their usual places into the /var/www chroot: /var/www/usr/sbin/sendmail /var/www/usr/lib/libutil.so.12.1 /var/www/usr/lib/libc.so.80.1 /var/www/usr/libexec/ld.so

Re: php system using httpd and php-fpm

2016-11-04 Thread Otto Moerbeek
On Fri, Nov 04, 2016 at 05:29:54PM +, Peter Fraser wrote: > I actually wanted to call php's mail function which I could not get to work, I > think I have tracked to problem down to exec not working > the details follow using a test web page datetest.php > > > > newweb:/var/www/htdocs/web #

php system using httpd and php-fpm

2016-11-04 Thread Peter Fraser
I actually wanted to call php's mail function which I could not get to work, I think I have tracked to problem down to exec not working the details follow using a test web page datetest.php newweb:/var/www/htdocs/web # cat datetest.php cat datetest.php Date Test Date Test'; exec('/b