Score:0

Can't enable the PHP DOM extension

fo flag

I have a server that has PHP 7.4.3 installed, but it doesn't load PHP-DOM.

It's not listed in php -m or php -i, nor when I load PHP on a page.

Here's what I tried so far:

  1. Ran sudo apt-get install php-xml several times, it installs without a problem and shows the newest version is already installed.

  2. Ran sudo apt-get install php7.4-xml, it's unable to locate the package.

  3. Added extension=dom.so to php.ini and checked for the --disable-dom flag (not found).

  4. Restarted apache multiple times throughout this process.

How can I enable the PHP DOM extension?

I sit in a Tesla and translated this thread with Ai:

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.