Page 1 of 1

Enable php extension

Posted: Tue Apr 21, 2009 4:06 am
by miro_igov
Hello guys, never had the task to modify php install and now i ended to the wall :banghead:

I need to enable XMLReader to an existing php install. php.net says this:
The XMLReader extension is available in PECL as of PHP 5.0.0 and is included and enabled as of PHP 5.1.0 by default. It can be enabled by adding the argument --enable-xmlreader (or --with-xmlreader before 5.1.0) to your configure line. The libxml extension is required.
Where can i add this argument --enable-xmlreader ? What is that configure line?

Re: Enable php extension

Posted: Tue Apr 21, 2009 5:36 am
by VladSun
What OS (and distro) you are using?
Where can i add this argument --enable-xmlreader ? What is that configure line?
They mean the configure stage of PHP from sources install:

Code: Select all

./configure  .... --enable-xmlreader

Re: Enable php extension

Posted: Tue Apr 21, 2009 5:51 am
by miro_igov
It is redhat.

If they mean install from source how can i do it for already installed php without to loose the current config?

Re: Enable php extension

Posted: Wed Apr 22, 2009 1:48 am
by VladSun
http://pecl.php.net/package/xmlReader
NOTE: This extension is part of core, thus, the PECL extension is dead.
What version of PHP do you use?

You may try to install it either by using pecl or from source:
http://www.jellyandcustard.com/2006/01/ ... l-modules/