Re: PHP Issue - for the sysadmins

From: lain. <lain_at_fair.moe>
Date: Mon, 25 Dec 2023 11:56:05 UTC
On 2023年12月25日 13:23, the silly Odhiambo Washington claimed to have said:
> I am perplexed by a situation here:
> 
> When I run php -r "print_r(get_loaded_extensions());", I get the output
> below, which has memcache/memcached modules loaded.
> ```
> Array
> (
> stuff
> )
> ```
> 
> However, when I put a file containing <?PHP phpinfo(); ?> in a publicly
> accessible directory and access it from a browser, the two modules are NOT
> listed as loaded.
> What am I missing?

If you run PHP in the command line, you're using the regular CLI PHP,
but in the browser you're most likely running PHP-FPM.
PHP and PHP-FPM each run off a separate config.ini file, so it's
possible you've loaded in memcache/memcached in the CLI version, but not
in the FPM version.

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