From the output of
--disable-dom are included the configure command. How do I change it to
--enable-dom without recompiling PHP?
Edit: I'm using Fedora 10. The PHP i'm using is the one that came with it.
Just install the package named php-xml, which provides the php-dom support.
You can find a list of downloads at http://rpm.pbone.net/index.php3/stat/4/idpl/10503222/com/php-xml-5.2.6-5.i386.rpm.html
Make sure to adjust configs in order to actually load the modules:
and restart apache.
You cannot - these are compile-time options.
Unless you find another pre-compiled PHP distribution that is compatible with your setup (which you don't detail in your question).
Unless of course the functions that you are looking for are implemented in other ways too, say a set of functions in a php script file that you can
I installed php-xml with YUM (CentOS)
sudo yum install php-xml
sudo service httpd restart
Everything works fine
you could download the SRPM for PHP. Change the spec file so that it has --enable-dom then remake the RPM using rpmbuild tools.
See This Site as an example of patching and rebuild a SRPM.