Php – How to enable xmlwriter after PHP having been compiled

phpxmlwriter

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?

Best Solution

on Ubuntu as root

apt install php-xmlwriter

worked for me

else

sudo apt install php-xmlwriter