Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Dec 2023 10:47:53 -0500
From:      Paul Procacci <pprocacci@gmail.com>
To:        "lain." <lain@fair.moe>
Cc:        questions@freebsd.org
Subject:   Re: Re: PHP Issue - for the sysadmins
Message-ID:  <CAFbbPujRj4qi3uW-GUwcpOtwzz-GO3Ji%2BH6sKjeus663-eJL-A@mail.gmail.com>
In-Reply-To: <wdz2djrj3gz2f7y2qtza6keef4r6rugimsy3nxw36dpykdx3nm@gbyhmzk2rs2t>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Mon, Dec 25, 2023 at 10:34 AM lain. <lain@fair.moe> wrote:

> On 2023年12月25日 15:24, the silly Odhiambo Washington claimed to have said:
> > On Mon, Dec 25, 2023 at 3:12 PM 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, 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:

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

~Paul
-- 
__________________

:(){ :|:& };:

[-- Attachment #2 --]
<div dir="ltr"><div><div><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 25, 2023 at 10:34 AM lain. &lt;lain@fair.moe&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2023年12月25日 15:24, the silly Odhiambo Washington claimed to have said:<br>
&gt; On Mon, Dec 25, 2023 at 3:12 PM Odhiambo Washington &lt;<a href="mailto:odhiambo@gmail.com" target="_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 this 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 it&#39;s super easy to intercept emails as they flow over the internet?<br>
Never send passwords, tokens, personal information, or other volunerable information 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="https://fair.moe/lain.asc" rel="noreferrer" target="_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 client, 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="https://unixsheikh.com/tutorials/gnupg-tutorial.html" rel="noreferrer" target="_blank">https://unixsheikh.com/tutorials/gnupg-tutorial.html</a><br>;
<br>
</blockquote></div><br clear="all"></div>To further this ...  
lain

is 100% on the right track.<br></div><div><br></div><div>To show the path to 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><div>&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&#39;t use php anymore, now I just stick with perl.  ;)<br><br></div><div>~Paul<br></div><div><div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">__________________<br><br>:(){ :|:&amp; };:</div></div></div></div>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFbbPujRj4qi3uW-GUwcpOtwzz-GO3Ji%2BH6sKjeus663-eJL-A>