Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2009
    Posts
    77

    HOW is setup PHP Data Objects (PDO) in vps

    Hello
    i have vps server and i wanna setup

    PHP Data Objects (PDO)
    in my server

    so how i can do that... and thanks alot for any help

  2. #2
    Join Date
    Apr 2011
    Posts
    74
    "PDO and the PDO_SQLITE driver is enabled by default as of PHP 5.1.0", from php.net

    check this page for more: http://php.net/manual/en/pdo.installation.php

  3. #3
    Join Date
    Oct 2009
    Posts
    77
    thank you , but i know that altough my PHP version 5.2.15
    but PDO did not setup

    so i want to setup it manually

  4. #4
    Join Date
    Apr 2011
    Posts
    74
    Sorry to insist but have you checked a phpinfo page? Are you sure PDO is not there? Best way is to reinstall php since "when building PDO as a shared extension (not recommended) then all PDO drivers must be loaded after PDO itself."

    So installing pdo separately is not really recommended.

    Are you on a cpanel vps? Are you using any control panels? Your operating system? Do you have a managed or self managed vps?

  5. #5
    Join Date
    Oct 2009
    Posts
    77
    if there any command to run it in SSH or some thing like that to setup PDO

  6. #6
    Join Date
    Oct 2009
    Posts
    77
    i have cpanel/WHM , centos . self manag

  7. #7
    Join Date
    Apr 2011
    Posts
    74
    If you have cpanel then you have to recompile php using easyapache. You'll find it I think somewhere in WHM ( Apache Update and do your customizations there like adding PDO..if i remember well there is also an advanced options there ). You can also do it running /scripts/easyapache, but I suggest to do it via browser inside WHM.

    Another option is to use http://php.net/manual/en/install.pecl.phpize.php

    I have not used cpanel for ages, so... to be 100% positive wait for more replies here or check the cpanel forums. There are many related threads there. Hope I have helped a little.

  8. #8
    Like MBGear said, the best option is to use easyapache, you can do it via WHM's interface or command line ( running /scripts/easyapache )

    Please note that easyapache will re-compile both apache and php so you might experience some downtime, I would run it late at night when traffic is low.

  9. #9
    Join Date
    Oct 2009
    Posts
    77
    really thanks guys , you are the best especialy MBGear

  10. #10
    Join Date
    Apr 2011
    Posts
    74
    you're welcome!

Similar Threads

  1. php pdo errors
    By Calibaba in forum Hosting Security and Technology
    Replies: 4
    Last Post: 11-27-2008, 08:30 AM
  2. PHP PDO help...
    By That Guy in forum Programming Discussion
    Replies: 5
    Last Post: 04-29-2008, 05:11 AM
  3. Business Objects Data Integrator XI Developer
    By z22 in forum Employment / Job Offers
    Replies: 0
    Last Post: 10-16-2007, 04:40 PM
  4. php pdo?
    By Zion Ahead in forum Hosting Security and Technology
    Replies: 15
    Last Post: 11-29-2006, 09:44 AM
  5. PDO with PHP 5.05?
    By UnrealSilence in forum Hosting Security and Technology
    Replies: 5
    Last Post: 05-09-2006, 12:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •