Zion Ahead

Well-Known Member
Nov 10, 2006
347
0
166
Anyone know how to enable php pdo and if there is any downside to having this compiled in a shared environment?
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
No one knows? :)
According to Php Web site
http://us2.php.net/pdo

"If you're running a PHP 5.1 release, PDO and PDO_SQLITE 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. The recommended configure line for building PHP with PDO support should enable zlib support (for the pecl installer) as well. "

Click on the URL above for more information on how to enable PDO on your server.
 

Zion Ahead

Well-Known Member
Nov 10, 2006
347
0
166
That means I have to completely recompile apache.

Running

./configure --with-zlib --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared

without the rest of the modules is not going to work for me.
 

Zion Ahead

Well-Known Member
Nov 10, 2006
347
0
166
This is what I see in phpinfo (I also added the pdo info at the end):

'./configure' '--prefix=/usr' '--with-xml' '--with-mm' '--enable-bcmath' '--enable-calendar' '--with-curl' '--with-dom' '--with-dom-xslt' '--with-dom-exslt' '--enable-exif' '--with-swf=/usr/local/flash' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-xpm-dir=/usr/X11R6' '--with-gettext' '--with-iconv' '--with-imap=/usr/local/imap-2004g' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-mcrypt' '--with-mhash' '--enable-magic-quotes' '--with-mm' '--with-mysqli' '--with-mysql=/usr' '--with-openssl' '--enable-discard-path' '--with-pdflib' '--with-pear' '--with-pgsql=/usr' '--with-pspell' '--enable-sockets' '--enable-track-vars' '--with-ttf' '--with-freetype-dir=/usr' '--enable-gd-native-ttf' '--enable-versioning' '--with-zip' '--with-zlib' '--with-pdo' '--with-pdo-mysql'

Where do I run this in command prompt?