From nobody Mon Dec 25 15:47:53 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SzMkG6dCvz54tct for ; Mon, 25 Dec 2023 15:48:06 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SzMkG4WVvz4GPG for ; Mon, 25 Dec 2023 15:48:06 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40d3bf30664so45196695e9.0 for ; Mon, 25 Dec 2023 07:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703519283; x=1704124083; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=VzDEoxQgAAqFxrDVO96F2YANUAwYbvq21ZPOyrOdqpA=; b=RsyluARR8loif5QiXhKVM7lgackfU2lxR8S0tGXRtCH5Uu5BI/7WhXN8LjMo0wPtvv OQkcYi2bAUhQrildVfl0oK/n72FHP+ZX6JdMz2mnuP4A7BvIkfd190MEaa99t/9KMwl0 xLplYefUmBcVQN/R/60R/bbKsjQn7q/ZoEUSdroHMe0uf9erjt3J7+5VsZQszGdcWx9B qMOxYXGga013pJIam0ImZx3j54JAqyg4W2q6BEgF3rk/0qZ9BW7yTjs54I5nMMtIfvEg UvWeAJ42YBf303mKeWUaSNKyUWyXuR55K6bLOJetoKph8W2/nCz0gWzW941LPDdle5OS rHvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703519283; x=1704124083; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=VzDEoxQgAAqFxrDVO96F2YANUAwYbvq21ZPOyrOdqpA=; b=HlOyqtZiAcuYy3cdZc3y5ATYfURqxcxBpY2NMtPZ00pznYEfrbJ+6mQhz0TWgyOP24 gkzcC8HvpPe8u5HS/fXU4Y2KVv6gnTTepKXfCHFCyAr3Q26ClmXCYMEVeqlrwaqnZ5pe lN/vymxiho90jWs0gMQDm/bzl4pn83FAkGjr8XKDId+IQ73bsqH31oujcaFG3tUchIJj f1udkNafn+ZBqeJhnNJmi2BFabeJ63Rimkev3/sgtDexboVgFQqwlXdAAE7g+fMp8ghM 45ivX7C3fy+hANUrOReuSmGsbmcGmzrEQEAS6+IHhgFmjfsk4XNJB26v2oRNF7WRrb7i hDrw== X-Gm-Message-State: AOJu0Yz7DkhnDgUGF2IyDLP9YbW05jbs0je1EAjGsBMsK1E5XOP6Vow3 yuyC8PncDUGlqQEKZoTLgsikvTmeYm+WcOH94ihoJF5dSw== X-Google-Smtp-Source: AGHT+IE0OFl1POmIyD1lEPZZLagEPWzKkfKz2SHboBZ2AbD7qghKK64wZFd/cE0HQcRZRahfbmEvKbYsBx+ciP77R8M= X-Received: by 2002:a05:600c:3b27:b0:40d:3786:dad1 with SMTP id m39-20020a05600c3b2700b0040d3786dad1mr3126018wms.19.1703519283318; Mon, 25 Dec 2023 07:48:03 -0800 (PST) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Paul Procacci Date: Mon, 25 Dec 2023 10:47:53 -0500 Message-ID: Subject: Re: Re: PHP Issue - for the sysadmins To: "lain." Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c014e0060d577d5e" X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Spamd-Bar: ---- X-Rspamd-Queue-Id: 4SzMkG4WVvz4GPG --000000000000c014e0060d577d5e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 25, 2023 at 10:34=E2=80=AFAM lain. wrote: > On 2023=E5=B9=B412=E6=9C=8825=E6=97=A5 15:24, the silly Odhiambo Washingt= on claimed to have said: > > On Mon, Dec 25, 2023 at 3:12=E2=80=AFPM Odhiambo Washington > > wrote: > > > You are right to an extent. I am using php-fpm for the site. > > > I thought that php-fpm should inherit all modules loaded by PHP. No? > > > How then do I tell php-fpm to do it? > > > > > > > Just to add. This is FreeBSD and there is only one php.ini file - > > /usr/local/etc/php.ini > > > > Of course I know you're using FreeBSD, considering you're asking this in > a FreeBSD mailing list, so totally not assuming you're using Windows 98 > or something. > > I installed PHP on my FreeBSD server (pkg install php83) just to check. > It does indeed seem to differ a little bit from Linux (I don't use PHP > anymore, I switched to Go some time ago after a solid 2 decades of > coding in PHP). > However, could you check both your CLI output and web output on what ini > path it's returning? > > -- > lain. > > Did you know that? > 90% of all emails sent on a daily basis are being sent in plain text, and > it's super easy to intercept emails as they flow over the internet? > Never send passwords, tokens, personal information, or other volunerable > information without proper PGP encryption! > > If you're writing your emails unencrypted, please consider sending PGP > encrypted emails for security reasons. > You can find my PGP public key at: https://fair.moe/lain.asc > > Every good email client is able to send encrypted emails. > If yours can't, then you should consider switching to a secure email > client, because yours just sucks. > > My recommendations are Claws Mail or NeoMutt. > For instructions on how to encrypt your emails: > https://unixsheikh.com/tutorials/gnupg-tutorial.html > > To further this ... lain is 100% on the right track. To show the path to the ini via the command line: php -i To show the path to the ini via web: I'm betting they're different as already has been stated. I too don't use php anymore, now I just stick with perl. ;) ~Paul --=20 __________________ :(){ :|:& };: --000000000000c014e0060d577d5e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Dec 25, 2023 at 10:= 34=E2=80=AFAM lain. <lain@fair.moe> wrote:
On 2023=E5=B9=B412=E6=9C=8825=E6=97=A5 15:= 24, the silly Odhiambo Washington claimed to have said:
> On Mon, Dec 25, 2023 at 3:12=E2=80=AFPM Odhiambo Washington <odhiambo@gmail.com>= ;
> wrote:
> > You are right to an extent. I am using php-fpm for the site.
> > I thought that php-fpm should inherit all modules loaded by PHP. = No?
> > How then do I tell php-fpm to do it?
> >
>
> Just to add. This is FreeBSD and there is only one php.ini file -
> /usr/local/etc/php.ini
>

Of course I know you're using FreeBSD, considering you're asking th= is in
a FreeBSD mailing list, so totally not assuming you're using Windows 98=
or something.

I installed PHP on my FreeBSD server (pkg install php83) just to check.
It does indeed seem to differ a little bit from Linux (I don't use PHP<= br> anymore, I switched to Go some time ago after a solid 2 decades of
coding in PHP).
However, could you check both your CLI output and web output on what ini path it's returning?

--
lain.

Did you know that?
90% of all emails sent on a daily basis are being sent in plain text, and i= t's super easy to intercept emails as they flow over the internet?
Never send passwords, tokens, personal information, or other volunerable in= formation without proper PGP encryption!

If you're writing your emails unencrypted, please consider sending PGP = encrypted emails for security reasons.
You can find my PGP public key at: https://fair.moe/lain.asc

Every good email client is able to send encrypted emails.
If yours can't, then you should consider switching to a secure email cl= ient, because yours just sucks.

My recommendations are Claws Mail or NeoMutt.
For instructions on how to encrypt your emails:
https://unixsheikh.com/tutorials/gnupg-tutorial.= html


To further this ...=C2=A0=20 lain is 100% on the right track.

To show the path t= o the ini via the command line:

php -i
To show the path to the ini via web:

<?php phpinfo(); ?>

I'm betting they're = different as already has been stated.

I too don= 9;t use php anymore, now I just stick with perl.=C2=A0 ;)

~Paul
-- =
__________________

:(= ){ :|:& };:
--000000000000c014e0060d577d5e--