From nobody Tue Dec 26 09:09:18 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 4SzprR4nD0z54QrZ for ; Tue, 26 Dec 2023 09:09:59 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (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 4SzprQ6qMyz3LYJ for ; Tue, 26 Dec 2023 09:09:58 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2ccb4adbffbso20112271fa.0 for ; Tue, 26 Dec 2023 01:09:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703581795; x=1704186595; 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=SOh1jzLFCtirohaIELRVYREhQVEEyCGUb1PbULbA5wo=; b=NuwU+pl+dcGZr0p9w7S0TVez8Lh4krxtFmoSZTaZAdGmT0vaLbgCxq2fSJ7+POwIGv XYID/tFQblASCyLLfy/23EouHvviH1I692XxUH7QmvYH9VqLFY5//+qM2VUN4RANAG56 oAho0wr6CI47UBGVBsGRPzyATmm8UlwpOfMPJJIwFRtR0HdyKMaJ0EIqpJY5aBYnxdGy e+q5MxmvjZjkdCKmBiVEtaLxtoLT9va3gvLfQ+yId5I5FZGJIiufnoBqqM5fl0IZxp5I 7CFpm4CW2eQWYkGWg0K54gcAtmVbSNruKHAvZz1qOjzvhPJZE4s6BHrKo+JlVHrnMuVV jiRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703581795; x=1704186595; 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=SOh1jzLFCtirohaIELRVYREhQVEEyCGUb1PbULbA5wo=; b=Ahko0WU7wrvwf3focKUtpgji32kDiHefUzzrqZI6Dq6RFw2dijnkchAuEYZJdWE0Un hR0gKjE/jX4hiXMcHcXvt5/M3sz1uanP7tXc2c72SxtUxJ60TJ34whgH4dlwEADrIZ7O V65U1nDZv9fZI3jtLFboIUx2gCiLlUXANx2M1GpN1nl0/dNDg8CSLFfE9Y666dpyAsjY cF89wLxm3IZWAL0otreG5y50TdmkBqOhGpgkEAetc/j/9SNKWbEEAv4YgPZ9lNNiGKrQ TZ9+lyNTDVFhg6/gx/zvl606krDPjKXyvx777rAG7XIKkTAjkRyavyPTsD8YHF3h4rYC Nafw== X-Gm-Message-State: AOJu0YybnFqzQdQt+PJKm1/AxqXiyvgTSqc14Pg4yP87GcB8nB9JVs4p gvRwiZw8KgtJMHsXgrFeX60wFvQMgac4i1GK0A8= X-Google-Smtp-Source: AGHT+IHaSYjvaEOaFN33FaESLQyZq3+K4QAtWoE5ebzk4RjE83Ex8EFm+ZWH/6QmYUYLFIa39PgzO3AkvFvqv9VxiE0= X-Received: by 2002:a05:651c:32c:b0:2cc:938b:af6 with SMTP id b12-20020a05651c032c00b002cc938b0af6mr2483220ljp.92.1703581794877; Tue, 26 Dec 2023 01:09:54 -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: Odhiambo Washington Date: Tue, 26 Dec 2023 12:09:18 +0300 Message-ID: Subject: Re: Re: PHP Issue - for the sysadmins To: Paul Procacci Cc: "lain." , questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000bac65b060d660bb5" 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: 4SzprQ6qMyz3LYJ --000000000000bac65b060d660bb5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 25, 2023 at 6:48=E2=80=AFPM Paul Procacci = wrote: > > > 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 Washing= ton 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, an= d >> 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. ;) > [12:01 ~ ]$ php -i phpinfo() PHP Version =3D> 8.2.14 [snip] Server API =3D> Command Line Interface Virtual Directory Support =3D> enabled Configuration File (php.ini) Path =3D> /usr/local/etc *Loaded Configuration File =3D> /usr/local/etc/php.iniScan this dir for additional .ini files =3D> /usr/local/etc/php* Additional .ini files parsed =3D> /usr/local/etc/php/ext-10-opcache.ini, /usr/local/etc/php/ext-18-session.ini, /usr/local/etc/php/ext-20-apcu.ini, /usr/local/etc/php/ext-20-bcmath.ini, /usr/local/etc/php/ext-20-bz2.ini, /usr/local/etc/php/ext-20-calendar.ini, /usr/local/etc/php/ext-20-ctype.ini, /usr/local/etc/php/ext-20-curl.ini, /usr/local/etc/php/ext-20-dom.ini, /usr/local/etc/php/ext-20-exif.ini, /usr/local/etc/php/ext-20-ffi.ini, /usr/local/etc/php/ext-20-fileinfo.ini, /usr/local/etc/php/ext-20-filter.ini, /usr/local/etc/php/ext-20-ftp.ini, /usr/local/etc/php/ext-20-gd.ini, /usr/local/etc/php/ext-20-gettext.ini, /usr/local/etc/php/ext-20-gmp.ini, /usr/local/etc/php/ext-20-iconv.ini, /usr/local/etc/php/ext-20-imagick.ini, /usr/local/etc/php/ext-20-intl.ini, /usr/local/etc/php/ext-20-ldap.ini, /usr/local/etc/php/ext-20-mbstring.ini, /usr/local/etc/php/ext-20-mysqli.ini, /usr/local/etc/php/ext-20-pdo.ini, /usr/local/etc/php/ext-20-pgsql.ini, /usr/local/etc/php/ext-20-phar.ini, /usr/local/etc/php/ext-20-posix.ini, /usr/local/etc/php/ext-20-pspell.ini, /usr/local/etc/php/ext-20-simplexml.ini, /usr/local/etc/php/ext-20-soap.ini, /usr/local/etc/php/ext-20-sockets.ini, /usr/local/etc/php/ext-20-sodium.ini, /usr/local/etc/php/ext-20-sqlite3.ini, /usr/local/etc/php/ext-20-sysvmsg.ini, /usr/local/etc/php/ext-20-sysvsem.ini, /usr/local/etc/php/ext-20-sysvshm.ini, /usr/local/etc/php/ext-20-tidy.ini, /usr/local/etc/php/ext-20-tokenizer.ini, /usr/local/etc/php/ext-20-xml.ini, /usr/local/etc/php/ext-20-xmlwriter.ini, /usr/local/etc/php/ext-20-zip.ini, /usr/local/etc/php/ext-20-zlib.ini, /usr/local/etc/php/ext-30-imap.ini, /usr/local/etc/php/ext-30-memcache.ini, /usr/local/etc/php/ext-30-memcached.ini, /usr/local/etc/php/ext-30-pdo_mysql.ini, /usr/local/etc/php/ext-30-pdo_pgsql.ini, /usr/local/etc/php/ext-30-pdo_sqlite.ini, /usr/local/etc/php/ext-30-redis.ini, /usr/local/etc/php/ext-30-xmlreader.ini, /usr/local/etc/php/ext-30-xsl.ini So it's using the same config as shown with via the web. --=20 Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] --000000000000bac65b060d660bb5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Dec 25, 2023 at 6:48=E2=80=AF= PM Paul Procacci <pprocacci@gmail= .com> wrote:


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 ;)


[12:01 ~ ]$ php -i
phpinfo()
PHP Version = =3D> 8.2.14

[snip]
Server API =3D> Command Line InterfaceVirtual Directory Support =3D> enabled
Configuration File (php.ini)= Path =3D> /usr/local/etc
Loaded Configuration File =3D> /usr/l= ocal/etc/php.ini
Scan this dir for additional .ini files =3D> /usr/lo= cal/etc/php

Additional .ini files parsed =3D> /usr/local/etc/php/= ext-10-opcache.ini,
/usr/local/etc/php/ext-18-session.ini,
/usr/local= /etc/php/ext-20-apcu.ini,
/usr/local/etc/php/ext-20-bcmath.ini,
/usr/= local/etc/php/ext-20-bz2.ini,
/usr/local/etc/php/ext-20-calendar.ini,/usr/local/etc/php/ext-20-ctype.ini,
/usr/local/etc/php/ext-20-curl.ini= ,
/usr/local/etc/php/ext-20-dom.ini,
/usr/local/etc/php/ext-20-exif.i= ni,
/usr/local/etc/php/ext-20-ffi.ini,
/usr/local/etc/php/ext-20-file= info.ini,
/usr/local/etc/php/ext-20-filter.ini,
/usr/local/etc/php/ex= t-20-ftp.ini,
/usr/local/etc/php/ext-20-gd.ini,
/usr/local/etc/php/ex= t-20-gettext.ini,
/usr/local/etc/php/ext-20-gmp.ini,
/usr/local/etc/p= hp/ext-20-iconv.ini,
/usr/local/etc/php/ext-20-imagick.ini,
/usr/loca= l/etc/php/ext-20-intl.ini,
/usr/local/etc/php/ext-20-ldap.ini,
/usr/l= ocal/etc/php/ext-20-mbstring.ini,
/usr/local/etc/php/ext-20-mysqli.ini,<= br>/usr/local/etc/php/ext-20-pdo.ini,
/usr/local/etc/php/ext-20-pgsql.in= i,
/usr/local/etc/php/ext-20-phar.ini,
/usr/local/etc/php/ext-20-posi= x.ini,
/usr/local/etc/php/ext-20-pspell.ini,
/usr/local/etc/php/ext-2= 0-simplexml.ini,
/usr/local/etc/php/ext-20-soap.ini,
/usr/local/etc/p= hp/ext-20-sockets.ini,
/usr/local/etc/php/ext-20-sodium.ini,
/usr/loc= al/etc/php/ext-20-sqlite3.ini,
/usr/local/etc/php/ext-20-sysvmsg.ini,/usr/local/etc/php/ext-20-sysvsem.ini,
/usr/local/etc/php/ext-20-sysvsh= m.ini,
/usr/local/etc/php/ext-20-tidy.ini,
/usr/local/etc/php/ext-20-= tokenizer.ini,
/usr/local/etc/php/ext-20-xml.ini,
/usr/local/etc/php/= ext-20-xmlwriter.ini,
/usr/local/etc/php/ext-20-zip.ini,
/usr/local/e= tc/php/ext-20-zlib.ini,
/usr/local/etc/php/ext-30-imap.ini,
/usr/loca= l/etc/php/ext-30-memcache.ini,
/usr/local/etc/php/ext-30-memcached.ini,<= br>/usr/local/etc/php/ext-30-pdo_mysql.ini,
/usr/local/etc/php/ext-30-pd= o_pgsql.ini,
/usr/local/etc/php/ext-30-pdo_sqlite.ini,
/usr/local/etc= /php/ext-30-redis.ini,
/usr/local/etc/php/ext-30-xmlreader.ini,
/usr/= local/etc/php/ext-30-xsl.ini
=C2=A0
=C2=A0So it's usi= ng the same config as shown with <?php phpinfo(); ?> via the web.


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,= KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft.",=C2=A0<= /span>egrep -v '^$|^.*#'=C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[= How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]
--000000000000bac65b060d660bb5--