Enable php extension

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Enable php extension

Post 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?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Enable php extension

Post 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
There are 10 types of people in this world, those who understand binary and those who don't
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Re: Enable php extension

Post 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?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Enable php extension

Post 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/
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply