Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable xmlwriter after PHP having been compiled?

Tags:

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?

like image 837
lastland Avatar asked Jun 17 '11 11:06

lastland


3 Answers

on Ubuntu as root

apt install php-xmlwriter

worked for me

else

sudo apt install php-xmlwriter
like image 59
Babak Bandpey Avatar answered Sep 20 '22 15:09

Babak Bandpey


Running the following as recommended by netcoder worked for me

yum install php-xmlwriter

like image 18
Baxny Avatar answered Sep 21 '22 15:09

Baxny


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.

like image 17
bueltge Avatar answered Sep 21 '22 15:09

bueltge