Results 1 to 10 of 10
-
05-12-2011, 01:48 PM #1Junior Guru Wannabe
- 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
-
05-12-2011, 02:55 PM #2Junior Guru Wannabe
- 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
-
05-12-2011, 02:59 PM #3Junior Guru Wannabe
- 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
-
05-12-2011, 03:10 PM #4Junior Guru Wannabe
- 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?
-
05-12-2011, 03:10 PM #5Junior Guru Wannabe
- Join Date
- Oct 2009
- Posts
- 77
if there any command to run it in SSH or some thing like that to setup PDO
-
05-12-2011, 03:12 PM #6Junior Guru Wannabe
- Join Date
- Oct 2009
- Posts
- 77
i have cpanel/WHM , centos . self manag
-
05-12-2011, 03:29 PM #7Junior Guru Wannabe
- 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.
-
05-12-2011, 03:40 PM #8WHT Addict
- Join Date
- Jun 2008
- Posts
- 138
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.
-
05-12-2011, 03:56 PM #9Junior Guru Wannabe
- Join Date
- Oct 2009
- Posts
- 77
really thanks guys , you are the best especialy MBGear
-
05-12-2011, 04:01 PM #10Junior Guru Wannabe
- Join Date
- Apr 2011
- Posts
- 74
you're welcome!
Similar Threads
-
php pdo errors
By Calibaba in forum Hosting Security and TechnologyReplies: 4Last Post: 11-27-2008, 08:30 AM -
PHP PDO help...
By That Guy in forum Programming DiscussionReplies: 5Last Post: 04-29-2008, 05:11 AM -
Business Objects Data Integrator XI Developer
By z22 in forum Employment / Job OffersReplies: 0Last Post: 10-16-2007, 04:40 PM -
php pdo?
By Zion Ahead in forum Hosting Security and TechnologyReplies: 15Last Post: 11-29-2006, 09:44 AM -
PDO with PHP 5.05?
By UnrealSilence in forum Hosting Security and TechnologyReplies: 5Last Post: 05-09-2006, 12:57 AM