adding extension to apt-installed PHP

der.hans PLUGd at LuftHans.com
Tue Feb 21 00:45:41 MST 2006


Am 17. Feb, 2006 schwätzte alex at crackpot.org so:

> I'm running Debian testing/unstable.  I've recently upgraded to PHP 5.1 via apt.
> I'd like to start using PDO (PHP Data Objects, object-oriented database
> abstraction), but I'm not sure how to get it installed/configured on my system.
>

Check if there's something like dh-make-perl for PHP. I don't see one, but
I'm not looking very hard...

The README.Debian in /usr/share/doc/ used to list what modules were
includeded.

The source package will have the rules/ files, which will have
configuration info used for building the package.

Can you grab the module with the PEAR browser ( or whatever they call it
)?

ciao,

der.hans

> PDO is included in the PHP 5.1 source :
>
> "If you're running a PHP 5.1 release, PDO is included in the distribution; it
> will be automatically enabled when you run configure. It is recommended that
> you build PDO as a shared extension, as this will allow you to take advantage
> of updates that are made available via PECL."
> (http://www.php.net/manual/en/ref.pdo.php).
>
> But : I don't see any mention of it on my system (in php.ini or by using
> 'locate'), so I'm thinking maybe it wasn't included in the version I got via
> apt.  If that is right, is there a way to extend the version I have, or do I
> need to start from scratch and compile my own PHP?  Since PDO can be installed
> as a shared extension, is there a way to compile just the extension and then
> link it into my existing PHP?
>
> In a more general question, how can I find out how the PHP I have was compiled?
>
> thanks!
>
> alex
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change  you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>

-- 
#  https://www.LuftHans.com/        http://www.CiscoLearning.org/
#  Join the League of Professional System Administrators! https://LOPSA.org/
#  In order to live free and happily, you must sacrifice boredom.
#  It is not always an easy sacrifice.


More information about the PLUG-discuss mailing list