Skip to content
Advertisement

Enabling php ext-xml?

While trying to use Composer to create a Symfony 4 project I got the following error:

JavaScript

I did search in php.ini for ext-xml to see if I could uncomment it in order to enable it but I did not find any mention of ext-xml. I have not searched anywhere else because I am very unsure about what I am doing.

Any help would be very much appreciated, Steve

Advertisement

Answer

It looks like you’re using ubuntu 16.04 with the ondrej/php ppa to get the latest version of php. In this case, the package names need to match the version of php you’re using:

JavaScript

You can see the different versions available with something like this:

JavaScript

Depending on your configuration, you may need to prefix the installation command with sudo.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement