How to enable xmlwriter after compiling PHP?

I have a message that is ext/xmlwritermissing when trying to configure phpMyFAQ on my Fedora 15 system. I looked at it in the PHP manual and got the following:

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

I used yum to install PHP on my computer and considered recompiling PHP to pretty nasty work. Can I just turn it on by editing something, for example php.ini? Or any other ways to solve this problem without recompiling PHP? And How?

+6
source share
4 answers

, netcoder,

yum install php-xmlwriter

+14

:

1) , libxml:

php -i | grep "xml"


:

1   /etc/php.d/xmlreader.ini,
2   /etc/php.d/xmlwriter.ini,
3   xmlrpc_error_number => 0 => 0
4   xmlrpc_errors => Off => Off
5   libxml
6   mbstring.http_output_conv_mimetypes => ^(text/|applicatio...
7   Simplexml support => enabled
8   xml
9   libxml2 Version => 2.7.6
10  xmlwriter

5, 9 10 , .

2) ( CentOS):

yum install libxml2

:

/etc/apache2 restart

php-fpm:

/etc/php-fpm restart

, :

yum install php-xmlwriter
yum install php-xml

php xmlwriter , , --disable-xmlwriter .

3) - :

/etc/php.d/xmlwriter.ini

:

; Enable xmlwriter extension module
extension=xmlwriter.so

, - .

+4

Ubuntu root

apt install php-xmlwriter

sudo apt install php-xmlwriter
+2

php, php 7, - php7.3-xml php 7.3. , PHP.

Ubuntu : sudo apt-get install php7.3-xml

0
source

All Articles