Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Aug 2020 15:37:12 +0200
From:      Spil Oss <spil.oss@gmail.com>
To:        Jonathan Gilpin <jonathan@fluent.ltd.uk>
Cc:        "apache@freebsd.org" <apache@freebsd.org>
Subject:   Re: FreeBSD Port: www/apache24
Message-ID:  <CAEJyAvOLHN1EoCYO-pwX_SonDU2p9cmzPExG-Ot93nQ6OA5u=g@mail.gmail.com>
In-Reply-To: <9EFA087D-1DB3-4041-A5B4-9F37D90290E1@fluent.ltd.uk>
References:  <00BA340A-F575-4B2F-ADB3-FBE5A1AA3F11@fluent.ltd.uk> <9EFA087D-1DB3-4041-A5B4-9F37D90290E1@fluent.ltd.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
And I'd advise to use mod_fastcgi with PHP. This allows you to run PHP
in a different user-context too.

I don't see the numerical user- and group-id's documented in Apache's
docs either.

On Fri, Oct 18, 2019 at 2:40 PM Jonathan Gilpin <jonathan@fluent.ltd.uk> wr=
ote:
>
> Sorry I forgot to include this:
>
>  # suexec -V
>  -D AP_DOC_ROOT=3D"/home"
>  -D AP_GID_MIN=3D1000
>  -D AP_HTTPD_USER=3D"www"
>  -D AP_LOG_EXEC=3D"/var/log/httpd-suexec.log"
>  -D AP_SAFE_PATH=3D"/usr/local/bin:/usr/bin:/bin"
>  -D AP_UID_MIN=3D1000
>  -D AP_USERDIR_SUFFIX=3D"public_html"
>
>
>  # httpd -V
> Server version: Apache/2.4.41 (FreeBSD)
> Server built:   unknown
> Server's Module Magic Number: 20120211:88
> Server loaded:  APR 1.7.0, APR-UTIL 1.6.1
> Compiled using: APR 1.7.0, APR-UTIL 1.6.1
> Architecture:   64-bit
> Server MPM:     prefork
>   threaded:     no
>     forked:     yes (variable process count)
> Server compiled with....
>  -D APR_HAS_SENDFILE
>  -D APR_HAS_MMAP
>  -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
>  -D APR_USE_FLOCK_SERIALIZE
>  -D APR_USE_PTHREAD_SERIALIZE
>  -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
>  -D APR_HAS_OTHER_CHILD
>  -D AP_HAVE_RELIABLE_PIPED_LOGS
>  -D DYNAMIC_MODULE_LIMIT=3D256
>  -D HTTPD_ROOT=3D"/usr/local"
>  -D SUEXEC_BIN=3D"/usr/local/sbin/suexec"
>  -D DEFAULT_PIDLOG=3D"/var/run/httpd.pid"
>  -D DEFAULT_SCOREBOARD=3D"/var/run/apache_runtime_status"
>  -D DEFAULT_ERRORLOG=3D"/var/log/httpd-error.log"
>  -D AP_TYPES_CONFIG_FILE=3D"etc/apache24/mime.types"
>  -D SERVER_CONFIG_FILE=3D"etc/apache24/httpd.conf"
>
>
>
>
> > On 18 Oct 2019, at 13:38, Jonathan Gilpin <jonathan@fluent.ltd.uk> wrot=
e:
> >
> > Dear Sir,
> >
> > I have am using the FreeBSD Apache 2.4 with Suexec Port to run PHP.
> >
> > I have discovered that files uploaded in PHP using basic code are endin=
g up owned by the group =E2=80=98wheel=E2=80=99 rather than the group speci=
fied in
> >
> > SuexecUserGroup "#3008" "#3010"
> >
> > E.g. I end up with:
> >
> > -rw-r--r--   1 marsecreview  wheel         209166 Oct 18 13:12 Screensh=
ot 2019-10-17 at 18.02.49.png
> >
> > # id marsecreview
> > uid=3D3008(marsecreview) gid=3D3010(marsecreview) groups=3D3010(marsecr=
eview)
> >
> > This is a standard installation so Apache runs as www on FreeBSD:
> >
> > id www
> > uid=3D80(www) gid=3D80(www) groups=3D80(www)
> >
> > So I really do not understand where the =E2=80=98wheel=E2=80=99 group i=
s coming into this..
> >
> > entry from /etc/group is:
> >
> > wheel:*:0:root,jonathan
> >
> >
> > Is this a bug?
> >
> > Kind Regards,
> >
> > Jonathan Gilpin
> >
> >
> >
> >
>
> _______________________________________________
> freebsd-apache@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-apache
> To unsubscribe, send any mail to "freebsd-apache-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAEJyAvOLHN1EoCYO-pwX_SonDU2p9cmzPExG-Ot93nQ6OA5u=g>