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
[-- Attachment #1 --] On Mon, Dec 25, 2023 at 6:48 PM Paul Procacci <pprocacci@gmail.com> wrote: > > > 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. ;) > [12:01 ~ ]$ php -i phpinfo() PHP Version => 8.2.14 [snip] Server API => Command Line Interface Virtual Directory Support => enabled Configuration File (php.ini) Path => /usr/local/etc *Loaded Configuration File => /usr/local/etc/php.iniScan this dir for additional .ini files => /usr/local/etc/php* Additional .ini files parsed => /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. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254 7 3200 0004/+254 7 2274 3223 "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-) [How to ask smart questions: http://www.catb.org/~esr/faqs/smart-questions.html] [-- Attachment #2 --] <div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Dec 25, 2023 at 6:48 PM Paul Procacci <<a href="mailto:pprocacci@gmail.com">pprocacci@gmail.com</a>> 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"><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. <lain@fair.moe> 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> > On Mon, Dec 25, 2023 at 3:12 PM Odhiambo Washington <<a href="mailto:odhiambo@gmail.com" target="_blank">odhiambo@gmail.com</a>><br> > wrote:<br> > > You are right to an extent. I am using php-fpm for the site.<br> > > I thought that php-fpm should inherit all modules loaded by PHP. No?<br> > > How then do I tell php-fpm to do it?<br> > ><br> > <br> > Just to add. This is FreeBSD and there is only one php.ini file -<br> > /usr/local/etc/php.ini<br> > <br> <br> Of course I know you're using FreeBSD, considering you're asking this in<br> a FreeBSD mailing list, so totally not assuming you'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'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'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'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'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'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><?php phpinfo(); ?><br><br></div><div>I'm betting they're different as already has been stated.</div><div><br></div><div>I too don't use php anymore, now I just stick with perl. ;)</div></div></blockquote><div><br></div><br>[12:01 ~ ]$ php -i<br>phpinfo()<br>PHP Version => 8.2.14<br><br>[snip]<br>Server API => Command Line Interface<br>Virtual Directory Support => enabled<br>Configuration File (php.ini) Path => /usr/local/etc<br><b>Loaded Configuration File => /usr/local/etc/php.ini<br>Scan this dir for additional .ini files => /usr/local/etc/php</b><br>Additional .ini files parsed => /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.ini,<br>/usr/local/etc/php/ext-20-ffi.ini,<br>/usr/local/etc/php/ext-20-fileinfo.ini,<br>/usr/local/etc/php/ext-20-filter.ini,<br>/usr/local/etc/php/ext-20-ftp.ini,<br>/usr/local/etc/php/ext-20-gd.ini,<br>/usr/local/etc/php/ext-20-gettext.ini,<br>/usr/local/etc/php/ext-20-gmp.ini,<br>/usr/local/etc/php/ext-20-iconv.ini,<br>/usr/local/etc/php/ext-20-imagick.ini,<br>/usr/local/etc/php/ext-20-intl.ini,<br>/usr/local/etc/php/ext-20-ldap.ini,<br>/usr/local/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.ini,<br>/usr/local/etc/php/ext-20-phar.ini,<br>/usr/local/etc/php/ext-20-posix.ini,<br>/usr/local/etc/php/ext-20-pspell.ini,<br>/usr/local/etc/php/ext-20-simplexml.ini,<br>/usr/local/etc/php/ext-20-soap.ini,<br>/usr/local/etc/php/ext-20-sockets.ini,<br>/usr/local/etc/php/ext-20-sodium.ini,<br>/usr/local/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-sysvshm.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/etc/php/ext-20-zlib.ini,<br>/usr/local/etc/php/ext-30-imap.ini,<br>/usr/local/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-pdo_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> </div><div> So it's using the same config as shown with <?php phpinfo(); ?> via the web.</div></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223<br>"<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">", </span><span style="font-size:12.8px">egrep -v '^$|^.*#' </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:"Lucida Console",Consolas,"Courier New",monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAdA2WNWTiHw0TCg%2BnHcosjOFLiC7k3OxDMwLuLtZ47Dr=rpxA>
