From nobody Mon Dec 25 11:56:05 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 4SzGbG5gVDz54ZqZ for ; Mon, 25 Dec 2023 11:56:42 +0000 (UTC) (envelope-from lain@fair.moe) Received: from mail.076.ne.jp (mail.076.ne.jp [45.76.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SzGbF2JN5z4bMb for ; Mon, 25 Dec 2023 11:56:40 +0000 (UTC) (envelope-from lain@fair.moe) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=076.ne.jp header.s=dkim header.b="l /k7x4p"; spf=none (mx1.freebsd.org: domain of lain@fair.moe has no SPF policy when checking 45.76.218.69) smtp.mailfrom=lain@fair.moe; dmarc=none Received: from mail.076.ne.jp (localhost [127.0.0.1]) by mail.076.ne.jp (Postfix) with ESMTP id 4SzGb46w1GzW0rc for ; Mon, 25 Dec 2023 20:56:32 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=076.ne.jp; h= user-agent:in-reply-to:content-transfer-encoding :content-disposition:content-type:mime-version:references :message-id:subject:to:from:date; s=dkim; t=1703505392; x= 1706097393; bh=0JW9kgcoJiwrd29Sr0NVhvDOP4Axj/ZoEKwzUHhEMek=; b=l /k7x4pm8Q9xhw9c4ZyutSIb/OvTzqijFrphgrfeDzcnNQy4uS/oVk1gegloWpDL7 GvuKNFvhzxu/fpbBPd6aBsae9JPh2h1HRZK8SGkj6Ee5IYWgWhlQWEeLgM7NNNR3 IQJ7dSOLxPW3bqO9JGFXmM56JwuBuaH9t2HRNB5GToUgSTp9d8zUBnMeFNYANQZI RYCDKAV1N8DcbLt+M2jLh5D0fedkxnyc1GrQfd5uyu53/Cj5gd5bs319INwbk6ua 4HU7SAzRjKNM/hL84anb1VMHHZULzSCa7nRgW6Z9eMrFn+czWnG27vlqpOMCtJDN ZPIOanYKLhpGpAsc7cwNQ== X-Virus-Scanned: Debian amavisd-new at guest.guest Received: from mail.076.ne.jp ([127.0.0.1]) by mail.076.ne.jp (mail.076.ne.jp [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id DjndfKLwOvVm for ; Mon, 25 Dec 2023 20:56:32 +0900 (JST) Received: from mail.fair.moe (ip1.193.076.moe [219.117.254.193]) by mail.076.ne.jp (Postfix) with ESMTPSA id 4SzGb42bSmzW0bn for ; Mon, 25 Dec 2023 20:56:32 +0900 (JST) Date: Mon, 25 Dec 2023 20:56:05 +0900 From: "lain." To: questions@freebsd.org Subject: Re: PHP Issue - for the sysadmins Message-ID: X-Location: =?utf-8?B?IkVhcnRoL+WcsOeQgyI=?= X-Operating-System: "GNU/Linux" References: 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 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: NeoMutt/20231221 X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MID_RHS_NOT_FQDN(0.50)[]; R_DKIM_ALLOW(-0.20)[076.ne.jp:s=dkim]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[076.ne.jp:+]; DMARC_NA(0.00)[fair.moe]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:20473, ipnet:45.76.192.0/19, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4SzGbF2JN5z4bMb X-Spamd-Bar: -- On 2023=E5=B9=B412=E6=9C=8825=E6=97=A5 13:23, the silly Odhiambo Washington= claimed to have said: > I am perplexed by a situation here: >=20 > When I run php -r "print_r(get_loaded_extensions());", I get the output > below, which has memcache/memcached modules loaded. > ``` > Array > ( > stuff > ) > ``` >=20 > However, when I put a file containing 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. --=20 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 encr= ypted 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