Score:0

Set PHP CLI configuration to load XML modules

in flag

My Linux Ubuntu 20.04 server is running PHP 7.4 using FPM. I have Joomla installed and am trying to run a script inside the cli directory on the site. The xml PHP module is installed under PHP 7.4 FPM, but it is not working correctly under the CLI.

I have tried enabling the module using phpenmod -s cli xml, but the following is printed in the command line: WARNING: Module xml ini file doesn't exist under /etc/php/8.0/mods-available and rm: remove write-protected regular empty file '/var/lib/php/modules/7.4/cli/enabled_by_maint/xml'?.

When I run php7.4 --ini, the following is printed out: Configuration File (php.ini) Path: /etc/php/7.4/cli Loaded Configuration File: /etc/php/7.4/cli/php.ini. There is no xml.ini file located in the cli directory.

What steps do I need to take to get xml working correctly under PHP CLI?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.