XMLwriter for PHP

Print Friendly, PDF & Email

Mike Dawson did the early detective work for this:

A message from Larry Baldwin that we need the XMLWriter class compiled into PHP to enable a feature that he wants.  Is that hard to arrange?  The word “compile” scares me but is it just a matter of enabling/installing a module?

The cs304 phpinfo page has ‘–disable-xmlwriter’ in the Configure Command section, but XMLWriter enabled elsewhere.  It’s also enabled in the file
/etc/php.d/xmlwriter.ini.

Oh, wait, that’s on puma, but Larry’s PHP is on tempest, right?

This may be helpful, the person solves the same problem by installing the php-xml package:

http://www.limesurvey.org/de/forum/installation-a-update-issues/59119-xmlwriter-class-not-enabled

That page suggests that installing php-xml, which was easy enough:

[root@tempest cgi-bin] yum search php-xml
php-xml.x86_64 : A module for PHP applications which use XML
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
[root@tempest cgi-bin] rpm -q php-xml
package php-xml is not installed
[root@tempest cgi-bin] rpm -q php-xmlrpc
package php-xmlrpc is not installed
[root@tempest cgi-bin] yum -y install php-xml php-xmlrpc
Installed:
  php-xml.x86_64 0:5.3.3-14.el6_3                                  php-xmlrpc.x86_64 0:5.3.3-14.el6_3                                 

Complete!
[root@tempest cgi-bin] rpm -q libxslt
libxslt-1.1.26-2.el6_3.1.x86_64
[root@tempest cgi-bin]

Okay, now time to check on xmlwriter in the phpinfo page for Tempest:  http://tempest.wellesley.edu/LocalOnly/phpinfo.php

Ah, unfortunately, Tempest’s php has –disable-xmlwriter while the person who posted the limesurvey forum link above didn’t have that.  So it looks like we’ll have to compile PHP from source.  Yuck!  May want to consult RedHat so that we do this right.  Could also try it on one of our CentOS 6.3 client machines as a test machine.

Scott

 

About CS SysAdmins

The CS Department System Administrators
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *