From nobody Mon Dec 25 13:02:06 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 4SzJ3W2L8Jz54fvH for ; Mon, 25 Dec 2023 13:02:47 +0000 (UTC) (envelope-from odhiambo@gmail.com) Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SzJ3V4ykpz4g5J for ; Mon, 25 Dec 2023 13:02:46 +0000 (UTC) (envelope-from odhiambo@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=Vi9Mndmw; spf=pass (mx1.freebsd.org: domain of odhiambo@gmail.com designates 2a00:1450:4864:20::232 as permitted sender) smtp.mailfrom=odhiambo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2cca5e7b390so31430761fa.3 for ; Mon, 25 Dec 2023 05:02:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703509364; x=1704114164; darn=freebsd.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=km6nG2VmunyjcjuqxLCfuneLUzd67qCJ/7X0FyDm/Q8=; b=Vi9MndmwpO4TzPdXRBCZzuMMeMhhJ8tMhRNnlE6ImaMAlKzzCXWaJ5hLUWsmhmZZaG QFkYGiK5Ap7wMWyTk9T/Cq1W2E7mJIBGb4QoZ+7+JDQfg46ND1qxYrOLTfbMhdy5M7ci GThmQJs0JYCJ+lPqIB4v9CjGlXpeLFVOl7Js4gnTVEmmBIQqzgkANthc2pDAP80r+oko R174m5DoYtMGMhlINS7wPnBP2DRCABCfrcIHjoPp7WApM3sKlo72b28K/B3wBrlhacRt UiAxh1L3kqW6zdW9Jqs7AO1I/s/41oUqGnf4Fl5S+Lrif0ERNI3JUIKFEbB8vIIf7L7R 1GNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703509364; x=1704114164; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=km6nG2VmunyjcjuqxLCfuneLUzd67qCJ/7X0FyDm/Q8=; b=q3GASuCE0OJdZo/hiG6UMM6vC+L7N5qcqS8NgqBf/u4OEOw8Y/xLvJQENT/SbCyicb zm8ix1V21rQvMxzQZkYYHCpPOjHZHju+ZpTgHdPTkdw9zmvTZZlovcM7cJD4MMkRybMB wcZXr5VGhNa6oMb3vP6TTJk085IcKCvCOm7cNCCDogNDDianIyAprrMqKN/0+Qmb5B+P Uc0gzquF+pPvSbQpcy8kJVKvr9eN1CS+DTwj8xAhFUicMucH5HiE80cAwtfz75XqDFj7 PBDpP6Z+7sIYNsG7EFw1ppDo110vhm6SgALbprn7PzEs/D8O14wjvW5j6OgFf9eQsR39 fXng== X-Gm-Message-State: AOJu0Yx4qilLZnUrT29727wjNyN8p01xcFqK5zQa9TmxfiIePNN5HZcj rropoD7kbs1wln1J4lhaU72ssgDCWkuTBuGuD0F5gI4zBClNDsVG X-Google-Smtp-Source: AGHT+IGEKhXP0wd/mGj6l0UoX5xkx0RPxNhLa0FrKeWQGxE56EiIwTe9Lw6/4tD9HOmDY0YQJE0FVlJ6Yuc7pjskJNM= X-Received: by 2002:a05:651c:390:b0:2cc:6aa9:7c7c with SMTP id e16-20020a05651c039000b002cc6aa97c7cmr1895454ljp.47.1703509363521; Mon, 25 Dec 2023 05:02:43 -0800 (PST) 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 References: In-Reply-To: From: Odhiambo Washington Date: Mon, 25 Dec 2023 16:02:06 +0300 Message-ID: Subject: Re: PHP Issue - for the sysadmins To: questions , php-general@lists.php.net Content-Type: multipart/alternative; boundary="0000000000007bfc05060d552e0f" X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::232:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-Rspamd-Queue-Id: 4SzJ3V4ykpz4g5J X-Spamd-Bar: --- --0000000000007bfc05060d552e0f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 25, 2023 at 1:23=E2=80=AFPM Odhiambo Washington wrote: > 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 > ( > [0] =3D> Core > [1] =3D> date > [2] =3D> libxml > [3] =3D> openssl > [4] =3D> pcre > [5] =3D> hash > [6] =3D> json > [7] =3D> random > [8] =3D> Reflection > [9] =3D> SPL > [10] =3D> session > [11] =3D> standard > [12] =3D> mysqlnd > [13] =3D> apcu > [14] =3D> bcmath > [15] =3D> bz2 > [16] =3D> calendar > [17] =3D> ctype > [18] =3D> curl > [19] =3D> dom > [20] =3D> mbstring > [21] =3D> FFI > [22] =3D> fileinfo > [23] =3D> filter > [24] =3D> ftp > [25] =3D> gd > [26] =3D> gettext > [27] =3D> gmp > [28] =3D> iconv > [29] =3D> imagick > [30] =3D> intl > [31] =3D> ldap > [32] =3D> exif > [33] =3D> mysqli > [34] =3D> PDO > [35] =3D> pgsql > [36] =3D> zlib > [37] =3D> posix > [38] =3D> pspell > [39] =3D> SimpleXML > [40] =3D> soap > [41] =3D> sockets > [42] =3D> sodium > [43] =3D> sqlite3 > [44] =3D> sysvmsg > [45] =3D> sysvsem > [46] =3D> sysvshm > [47] =3D> tidy > [48] =3D> tokenizer > [49] =3D> xml > [50] =3D> xmlwriter > [51] =3D> zip > [52] =3D> Phar > [53] =3D> imap > [54] =3D> memcache > [55] =3D> memcached > [56] =3D> pdo_mysql > [57] =3D> pdo_pgsql > [58] =3D> pdo_sqlite > [59] =3D> redis > [60] =3D> xmlreader > [61] =3D> xsl > [62] =3D> Zend OPcache > ) > ``` > > However, when I put a file containing in a publicly > accessible directory and access it from a browser, the two modules are NO= T > listed as loaded. > What am I missing? > Seeing as I am using php-fpm, I did run `/usr/local/sbin/php-fpm -i` and for sure it does not list the two modules as loaded. I tried `/usr/local/sbin/php-fpm -c /usr/local/etc/php.ini -i` - which also doesn't give a different output. Now I am more stumped. Any ideas? --=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] --0000000000007bfc05060d552e0f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Mon, Dec 25, 2023 at 1:23=E2=80=AF= PM Odhiambo Washington <odhiambo@g= mail.com> wrote:
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
(
=C2=A0 =C2=A0 [0] =3D> Core
=C2=A0 =C2=A0 [1] = =3D> date
=C2=A0 =C2=A0 [2] =3D> libxml
=C2=A0 =C2=A0 [3] =3D&g= t; openssl
=C2=A0 =C2=A0 [4] =3D> pcre
=C2=A0 =C2=A0 [5] =3D> h= ash
=C2=A0 =C2=A0 [6] =3D> json
=C2=A0 =C2=A0 [7] =3D> random=C2=A0 =C2=A0 [8] =3D> Reflection
=C2=A0 =C2=A0 [9] =3D> SPL
= =C2=A0 =C2=A0 [10] =3D> session
=C2=A0 =C2=A0 [11] =3D> standard=C2=A0 =C2=A0 [12] =3D> mysqlnd
=C2=A0 =C2=A0 [13] =3D> apcu
= =C2=A0 =C2=A0 [14] =3D> bcmath
=C2=A0 =C2=A0 [15] =3D> bz2
=C2= =A0 =C2=A0 [16] =3D> calendar
=C2=A0 =C2=A0 [17] =3D> ctype
=C2= =A0 =C2=A0 [18] =3D> curl
=C2=A0 =C2=A0 [19] =3D> dom
=C2=A0 = =C2=A0 [20] =3D> mbstring
=C2=A0 =C2=A0 [21] =3D> FFI
=C2=A0 = =C2=A0 [22] =3D> fileinfo
=C2=A0 =C2=A0 [23] =3D> filter
=C2=A0= =C2=A0 [24] =3D> ftp
=C2=A0 =C2=A0 [25] =3D> gd
=C2=A0 =C2=A0 = [26] =3D> gettext
=C2=A0 =C2=A0 [27] =3D> gmp
=C2=A0 =C2=A0 [28= ] =3D> iconv
=C2=A0 =C2=A0 [29] =3D> imagick
=C2=A0 =C2=A0 [30]= =3D> intl
=C2=A0 =C2=A0 [31] =3D> ldap
=C2=A0 =C2=A0 [32] =3D&= gt; exif
=C2=A0 =C2=A0 [33] =3D> mysqli
=C2=A0 =C2=A0 [34] =3D>= PDO
=C2=A0 =C2=A0 [35] =3D> pgsql
=C2=A0 =C2=A0 [36] =3D> zlib=
=C2=A0 =C2=A0 [37] =3D> posix
=C2=A0 =C2=A0 [38] =3D> pspell=C2=A0 =C2=A0 [39] =3D> SimpleXML
=C2=A0 =C2=A0 [40] =3D> soap=C2=A0 =C2=A0 [41] =3D> sockets
=C2=A0 =C2=A0 [42] =3D> sodium=C2=A0 =C2=A0 [43] =3D> sqlite3
=C2=A0 =C2=A0 [44] =3D> sysvmsg<= br>=C2=A0 =C2=A0 [45] =3D> sysvsem
=C2=A0 =C2=A0 [46] =3D> sysvshm=
=C2=A0 =C2=A0 [47] =3D> tidy
=C2=A0 =C2=A0 [48] =3D> tokenizer=
=C2=A0 =C2=A0 [49] =3D> xml
=C2=A0 =C2=A0 [50] =3D> xmlwriter<= br>=C2=A0 =C2=A0 [51] =3D> zip
=C2=A0 =C2=A0 [52] =3D> Phar
=C2= =A0 =C2=A0 [53] =3D> imap
=C2=A0 =C2=A0 [54] =3D> memcache
=C2= =A0 =C2=A0 [55] =3D> memcached
=C2=A0 =C2=A0 [56] =3D> pdo_mysql=C2=A0 =C2=A0 [57] =3D> pdo_pgsql
=C2=A0 =C2=A0 [58] =3D> pdo_sq= lite
=C2=A0 =C2=A0 [59] =3D> redis
=C2=A0 =C2=A0 [60] =3D> xmlr= eader
=C2=A0 =C2=A0 [61] =3D> xsl
=C2=A0 =C2=A0 [62] =3D> Zend = OPcache
)
```

However, when I put a fi= le 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?

Seeing as I am using php-fpm, I did run `/usr/local/sbin/php-fpm -i` and f= or sure it does not list the two modules as loaded.
I tried `/usr= /local/sbin/php-fpm -c /usr/local/etc/php.ini -i` - which also doesn't = give a different output.
Now I am more stumped.
Any ideas?

--
Best regards,
Odhiambo WASHINGTON,
= Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft."= ,=C2=A0egrep -v '^$|^.*#'= =C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]
--0000000000007bfc05060d552e0f--