Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Dec 2023 12:09:18 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        Paul Procacci <pprocacci@gmail.com>
Cc:        "lain." <lain@fair.moe>, questions@freebsd.org
Subject:   Re: Re: PHP Issue - for the sysadmins
Message-ID:  <CAAdA2WNWTiHw0TCg%2BnHcosjOFLiC7k3OxDMwLuLtZ47Dr=rpxA@mail.gmail.com>
In-Reply-To: <CAFbbPujRj4qi3uW-GUwcpOtwzz-GO3Ji%2BH6sKjeus663-eJL-A@mail.gmail.com>
References:  <CAAdA2WMj0KH=62q_LAwY9KJa1EpHUqw2GbVNUD9U4xZGJjj_TA@mail.gmail.com> <r45pbttkpflt4iyaudaji3x6cprmdkxjktdufchxgnqnwlrf25@kv6fbx2bny7j> <CAAdA2WPy8xzoXWFHHTJtL05uPF1Yf9qQvDV1O%2BBWd1TbcDNhyA@mail.gmail.com> <CAAdA2WP97WKywqtbt_o8-kgWAKz%2B-cJDwFzCsNdFZ-bb57p_RA@mail.gmail.com> <wdz2djrj3gz2f7y2qtza6keef4r6rugimsy3nxw36dpykdx3nm@gbyhmzk2rs2t> <CAFbbPujRj4qi3uW-GUwcpOtwzz-GO3Ji%2BH6sKjeus663-eJL-A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--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 <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 Washing=
ton 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 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:
>
> <?php phpinfo(); ?>
>
> 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 <?php phpinfo(); ?> 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

<div dir=3D"ltr"><div dir=3D"ltr"><br></div><br><div class=3D"gmail_quote">=
<div dir=3D"ltr" class=3D"gmail_attr">On Mon, Dec 25, 2023 at 6:48=E2=80=AF=
PM Paul Procacci &lt;<a href=3D"mailto:pprocacci@gmail.com">pprocacci@gmail=
.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex"><div dir=3D"ltr"><div><div><div dir=3D"ltr"><br></div><br><div class=3D=
"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Dec 25, 2023 at=
 10:34=E2=80=AFAM lain. &lt;lain@fair.moe&gt; wrote:<br></div><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px soli=
d rgb(204,204,204);padding-left:1ex">On 2023=E5=B9=B412=E6=9C=8825=E6=97=A5=
 15:24, the silly Odhiambo Washington claimed to have said:<br>
&gt; On Mon, Dec 25, 2023 at 3:12=E2=80=AFPM Odhiambo Washington &lt;<a hre=
f=3D"mailto:odhiambo@gmail.com" target=3D"_blank">odhiambo@gmail.com</a>&gt=
;<br>
&gt; wrote:<br>
&gt; &gt; You are right to an extent. I am using php-fpm for the site.<br>
&gt; &gt; I thought that php-fpm should inherit all modules loaded by PHP. =
No?<br>
&gt; &gt; How then do I tell php-fpm to do it?<br>
&gt; &gt;<br>
&gt; <br>
&gt; Just to add. This is FreeBSD and there is only one php.ini file -<br>
&gt; /usr/local/etc/php.ini<br>
&gt; <br>
<br>
Of course I know you&#39;re using FreeBSD, considering you&#39;re asking th=
is in<br>
a FreeBSD mailing list, so totally not assuming you&#39;re using Windows 98=
<br>
or something.<br>
<br>
I installed PHP on my FreeBSD server (pkg install php83) just to check.<br>
It does indeed seem to differ a little bit from Linux (I don&#39;t use PHP<=
br>
anymore, I switched to Go some time ago after a solid 2 decades of<br>
coding in PHP).<br>
However, could you check both your CLI output and web output on what ini<br=
>
path it&#39;s returning?<br>
<br>
-- <br>
lain.<br>
<br>
Did you know that?<br>
90% of all emails sent on a daily basis are being sent in plain text, and i=
t&#39;s super easy to intercept emails as they flow over the internet?<br>
Never send passwords, tokens, personal information, or other volunerable in=
formation without proper PGP encryption!<br>
<br>
If you&#39;re writing your emails unencrypted, please consider sending PGP =
encrypted emails for security reasons.<br>
You can find my PGP public key at: <a href=3D"https://fair.moe/lain.asc" re=
l=3D"noreferrer" target=3D"_blank">https://fair.moe/lain.asc</a><br>;
<br>
Every good email client is able to send encrypted emails.<br>
If yours can&#39;t, then you should consider switching to a secure email cl=
ient, because yours just sucks.<br>
<br>
My recommendations are Claws Mail or NeoMutt.<br>
For instructions on how to encrypt your emails:<br>
<a href=3D"https://unixsheikh.com/tutorials/gnupg-tutorial.html" rel=3D"nor=
eferrer" target=3D"_blank">https://unixsheikh.com/tutorials/gnupg-tutorial.=
html</a><br>
<br>
</blockquote></div><br clear=3D"all"></div>To further this ...=C2=A0=20
lain

is 100% on the right track.<br></div><div><br></div><div>To show the path t=
o the ini via the command line:<br><br></div><div>php -i <br></div><div><br=
></div><div>To show the path to the ini via web:<br></div><div><br></div><d=
iv>&lt;?php phpinfo(); ?&gt;<br><br></div><div>I&#39;m betting they&#39;re =
different as already has been stated.</div><div><br></div><div>I too don&#3=
9;t use php anymore, now I just stick with perl.=C2=A0 ;)</div></div></bloc=
kquote><div><br></div><br>[12:01 ~ ]$ php -i<br>phpinfo()<br>PHP Version =
=3D&gt; 8.2.14<br><br>[snip]<br>Server API =3D&gt; Command Line Interface<b=
r>Virtual Directory Support =3D&gt; enabled<br>Configuration File (php.ini)=
 Path =3D&gt; /usr/local/etc<br><b>Loaded Configuration File =3D&gt; /usr/l=
ocal/etc/php.ini<br>Scan this dir for additional .ini files =3D&gt; /usr/lo=
cal/etc/php</b><br>Additional .ini files parsed =3D&gt; /usr/local/etc/php/=
ext-10-opcache.ini,<br>/usr/local/etc/php/ext-18-session.ini,<br>/usr/local=
/etc/php/ext-20-apcu.ini,<br>/usr/local/etc/php/ext-20-bcmath.ini,<br>/usr/=
local/etc/php/ext-20-bz2.ini,<br>/usr/local/etc/php/ext-20-calendar.ini,<br=
>/usr/local/etc/php/ext-20-ctype.ini,<br>/usr/local/etc/php/ext-20-curl.ini=
,<br>/usr/local/etc/php/ext-20-dom.ini,<br>/usr/local/etc/php/ext-20-exif.i=
ni,<br>/usr/local/etc/php/ext-20-ffi.ini,<br>/usr/local/etc/php/ext-20-file=
info.ini,<br>/usr/local/etc/php/ext-20-filter.ini,<br>/usr/local/etc/php/ex=
t-20-ftp.ini,<br>/usr/local/etc/php/ext-20-gd.ini,<br>/usr/local/etc/php/ex=
t-20-gettext.ini,<br>/usr/local/etc/php/ext-20-gmp.ini,<br>/usr/local/etc/p=
hp/ext-20-iconv.ini,<br>/usr/local/etc/php/ext-20-imagick.ini,<br>/usr/loca=
l/etc/php/ext-20-intl.ini,<br>/usr/local/etc/php/ext-20-ldap.ini,<br>/usr/l=
ocal/etc/php/ext-20-mbstring.ini,<br>/usr/local/etc/php/ext-20-mysqli.ini,<=
br>/usr/local/etc/php/ext-20-pdo.ini,<br>/usr/local/etc/php/ext-20-pgsql.in=
i,<br>/usr/local/etc/php/ext-20-phar.ini,<br>/usr/local/etc/php/ext-20-posi=
x.ini,<br>/usr/local/etc/php/ext-20-pspell.ini,<br>/usr/local/etc/php/ext-2=
0-simplexml.ini,<br>/usr/local/etc/php/ext-20-soap.ini,<br>/usr/local/etc/p=
hp/ext-20-sockets.ini,<br>/usr/local/etc/php/ext-20-sodium.ini,<br>/usr/loc=
al/etc/php/ext-20-sqlite3.ini,<br>/usr/local/etc/php/ext-20-sysvmsg.ini,<br=
>/usr/local/etc/php/ext-20-sysvsem.ini,<br>/usr/local/etc/php/ext-20-sysvsh=
m.ini,<br>/usr/local/etc/php/ext-20-tidy.ini,<br>/usr/local/etc/php/ext-20-=
tokenizer.ini,<br>/usr/local/etc/php/ext-20-xml.ini,<br>/usr/local/etc/php/=
ext-20-xmlwriter.ini,<br>/usr/local/etc/php/ext-20-zip.ini,<br>/usr/local/e=
tc/php/ext-20-zlib.ini,<br>/usr/local/etc/php/ext-30-imap.ini,<br>/usr/loca=
l/etc/php/ext-30-memcache.ini,<br>/usr/local/etc/php/ext-30-memcached.ini,<=
br>/usr/local/etc/php/ext-30-pdo_mysql.ini,<br>/usr/local/etc/php/ext-30-pd=
o_pgsql.ini,<br>/usr/local/etc/php/ext-30-pdo_sqlite.ini,<br>/usr/local/etc=
/php/ext-30-redis.ini,<br>/usr/local/etc/php/ext-30-xmlreader.ini,<br>/usr/=
local/etc/php/ext-30-xsl.ini<br><div>=C2=A0</div><div>=C2=A0So it&#39;s usi=
ng the same config as shown with &lt;?php phpinfo(); ?&gt; via the web.</di=
v></div><br clear=3D"all"><div><br></div><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"l=
tr"><div dir=3D"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,=
KE<br>+254 7 3200 0004/+254 7 2274 3223<br>&quot;<span style=3D"font-size:1=
2.8px">Oh, the cruft.</span><span style=3D"font-size:12.8px">&quot;,=C2=A0<=
/span><span style=3D"font-size:12.8px">egrep -v &#39;^$|^.*#&#39;=C2=A0</sp=
an><span style=3D"background-color:rgb(34,34,34);color:rgb(238,238,238);fon=
t-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monosp=
ace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span style=3D"font=
-size:12.8px">=C2=A0:-)</span></div><div><span style=3D"font-size:12.8px">[=
How to ask smart questions:=C2=A0</span><span style=3D"font-size:12.8px"><a=
 href=3D"http://www.catb.org/~esr/faqs/smart-questions.html" target=3D"_bla=
nk">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></d=
iv></div></div></div>

--000000000000bac65b060d660bb5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNWTiHw0TCg%2BnHcosjOFLiC7k3OxDMwLuLtZ47Dr=rpxA>