How to enable xmlwriter after PHP having been compiled?

Viewed 57274

I've got a message that ext/xmlwriter is missing while trying to set up phpMyFAQ on my system of Fedora 15. I looked it up on the PHP manual and got this:

This extension is enabled by default. It may be disabled by using the following option at compile time: --disable-xmlwriter

I used yum to install PHP on my computer and consider recompiling PHP quite an unpleasant work. Can I just enable it by editing something, like php.ini? Or any other ways to accomplish this task without recompiling PHP? And how?

4 Answers

on Ubuntu as root

apt install php-xmlwriter

worked for me

else

sudo apt install php-xmlwriter

In the context of modern PHP, since PHP 7, works the following library to solve this problem - php7.3-xml as an example for PHP 7.3. Works also for another version, change only for your PHP version.

Install for Ubuntu system is like: sudo apt-get install php7.3-xml

If you will install without the version knowledge, install it via sudo apt-get install php-xml.

Related