Re: PHP Issue - for the sysadmins
- In reply to: Odhiambo Washington : "PHP Issue - for the sysadmins"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 25 Dec 2023 13:02:06 UTC
On Mon, Dec 25, 2023 at 1:23 PM Odhiambo Washington <odhiambo@gmail.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 > ( > [0] => Core > [1] => date > [2] => libxml > [3] => openssl > [4] => pcre > [5] => hash > [6] => json > [7] => random > [8] => Reflection > [9] => SPL > [10] => session > [11] => standard > [12] => mysqlnd > [13] => apcu > [14] => bcmath > [15] => bz2 > [16] => calendar > [17] => ctype > [18] => curl > [19] => dom > [20] => mbstring > [21] => FFI > [22] => fileinfo > [23] => filter > [24] => ftp > [25] => gd > [26] => gettext > [27] => gmp > [28] => iconv > [29] => imagick > [30] => intl > [31] => ldap > [32] => exif > [33] => mysqli > [34] => PDO > [35] => pgsql > [36] => zlib > [37] => posix > [38] => pspell > [39] => SimpleXML > [40] => soap > [41] => sockets > [42] => sodium > [43] => sqlite3 > [44] => sysvmsg > [45] => sysvsem > [46] => sysvshm > [47] => tidy > [48] => tokenizer > [49] => xml > [50] => xmlwriter > [51] => zip > [52] => Phar > [53] => imap > [54] => memcache > [55] => memcached > [56] => pdo_mysql > [57] => pdo_pgsql > [58] => pdo_sqlite > [59] => redis > [60] => xmlreader > [61] => xsl > [62] => Zend OPcache > ) > ``` > > 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? > 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? -- 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]