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?
on Ubuntu as root
apt install php-xmlwriter
worked for me
else
sudo apt install php-xmlwriter
Running the following as recommended by netcoder worked for me
yum 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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With