Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default php and pdo?

    Anyone know how to enable php pdo and if there is any downside to having this compiled in a shared environment?

  2. #2
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    No one knows?

  3. #3
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by Zion Ahead View Post
    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.
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  4. #4
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    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.

  5. #5
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    Can someone please tip me on this. Thank you.

  6. #6
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    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?

  7. #7
    Member
    Join Date
    Nov 2006
    Posts
    340

    Default

    Can someone please help?

Similar Threads & Tags
Similar threads

  1. Php and PDO Extension
    By chapsrulez in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-01-2011, 08:26 AM
  2. PHP 5 PDO Support
    By pphillips in forum New User Questions
    Replies: 5
    Last Post: 02-15-2010, 12:39 AM
  3. PHP 5.2.3 with pdo mysql
    By bpeikes in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-04-2007, 10:40 AM
  4. PDO+PDO_MYSQL on php5.2.1+php-suexec (php-cgi)?
    By PondRicefied in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-16-2007, 09:36 PM
  5. Pdo / Php 5.05
    By Secret Agent in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-10-2006, 03:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube