Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Nov 2003
    Posts
    71

    Default PHP 5 PDO Support

    Is there any reason that cPanel disables PDO support by default in PHP 5 installs?

    --disable-pdo

    In EasyApache there's an option to enabled it (or rather, not disable it) but it's not checked by default. As a software developer this is a concern because most PHP frameworks use PDO. This provides a challenge with software installs on cPanel servers, which as a result need to be recompiled unnecessarily.

    It just seems odd that cPanel would explicitly disable PDO, when it would otherwise be installed by default.
    Blesta
    Professional Billing
    www.blesta.com

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2006
    Location
    Virginia Beach, VA
    Posts
    254
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    If you want it enabled, enable it. Cpanel by default will not select most of the extraneous modules.

  3. #3
    Member
    Join Date
    Nov 2003
    Posts
    71

    Default

    Quote Originally Posted by vanessa View Post
    If you want it enabled, enable it. Cpanel by default will not select most of the extraneous modules.
    I don't think you understand what I'm asking.. PDO is enabled by default in PHP, it's part of the core. cPanel explicitly disables it by default. I just want to know why this is the case. PDO is not an extension like mcrypt or gd.
    Last edited by pphillips; 01-19-2010 at 10:50 AM.
    Blesta
    Professional Billing
    www.blesta.com

  4. #4
    Member
    Join Date
    Nov 2003
    Posts
    71

    Default

    sorry, had to bump - would really like a response on this.

    What is the reason for PDO being disabled by default? Curious what the thought process is on this one. Without the --disable-pdo switch it's in, it's part of PHP. Very different than extensions like gd, mcrypt, curl etc that require a switch to enable them. Here cPanel explicitly disables PDO.. why?

  5. #5
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by pphillips View Post
    sorry, had to bump - would really like a response on this.

    What is the reason for PDO being disabled by default? Curious what the thought process is on this one. Without the --disable-pdo switch it's in, it's part of PHP. Very different than extensions like gd, mcrypt, curl etc that require a switch to enable them. Here cPanel explicitly disables PDO.. why?
    Use of PHP PDO has increased over time; moreover, it was not always at the same level of production quality that it may be at now after maturing through further development. I believe the option was initially disabled because PDO was still labeled as "EXPERIMENTAL" in the official PHP documentation at the time when it was added into EasyApache. To reiterate, as was described by others, PDO is only disabled by default if the administrator chooses to not enable support for it when running EasyApache. Ultimately it is the responsibility of the server administrator to decide if they wish to have a specific option enabled or disabled. If the PHP PDO option is desired it may be enabled as needed; please be aware that PDO drivers can be easily installed via PHP PECL using the Modules Installer in WHM.

    If you would like to see PHP PDO enabled by default I would consider submitting a feature request as I believe this will be the best chance to have the change considered; a feature request may be submitted one per unique thread via the following forums area: Feature Requests for cPanel and WHM - cPanel Forums

  6. #6
    Member
    Join Date
    Nov 2003
    Posts
    71

    Default

    Thanks for the reply cPanelDon, excellent explanation and I've submitted the feature request.

Similar Threads & Tags
Similar threads

  1. EasyApache PHP default PDO support
    By pphillips in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 02-15-2010, 12:38 AM
  2. PDO driver support
    By kbun in forum New User Questions
    Replies: 5
    Last Post: 09-05-2009, 11:31 AM
  3. 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
  4. php and pdo?
    By Zion Ahead in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-29-2006, 04:24 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