The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Support for Oracle on PHP

Discussion in 'General Discussion' started by defferrari, Nov 21, 2007.

  1. defferrari

    defferrari Member

    Joined:
    Nov 20, 2007
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    My company is testing the cPanel, to a future migration, but we need the support Oracle on PHP.

    The cPanel I can configure this? How?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Use EasyApache (WHM -> Software -> Apache Update) to install PHP 5 and PDO support. To enable PDO, at step 5 click the button to get you to the advanced configuration screen and under the PHP 5 section, check the box for PDO.

    Then in WHM -> Software -> Module Installers, click "Manage" next to PHP Pecl and install PDO_OCI

    Refer to Oracle's documentation on PDO do understand how to access Oracle databases via PHP.
     
  3. orware

    orware Member

    Joined:
    Jul 27, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Oracle Instant Client Libraries

    @cPanelDavidG

    In relation to this question, do the appropriate Oracle Instant Client Libraries get installed when PDO gets installed?

    If everything gets installed automatically that would be great.

    Thanks!
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  5. orware

    orware Member

    Joined:
    Jul 27, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    Manually install

    This would be my impression as well from what I've read which is why I was asking if the Oracle Instant Client Libraries would be installed automatically with PDO as part of cPanel/WHM's features (since WHM does do a lot of things for users automatically).

    This would mean then that even if PDO_OCI (or just the OCI module) were enabled it wouldn't mean that they would work, and users would still be required to install the Instant Client (either before or after the PHP modules were enabled)?

    Would there be any problems in downloading and installing the Instant Client libraries manually (in regards to disturbing any cPanel/WHM functions), since it looks like that would be the approach that would need to be taken?
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I don't foresee that causing issues with cPanel/WHM. However, I will note that PDO is not very well maintained by the PHP team so you may encounter issues as a result.
     
  7. orware

    orware Member

    Joined:
    Jul 27, 2005
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I was noticing that as well

    Thanks for the update David, I'd more than likely be using the vanilla OCI extension because of the lack of documentation on PDO, but either way I'd need to get it going...is there an option for OCI in addition to the PDO_OCI option? It's really a small change in the php.ini, but I don't know if the way WHM takes care of things if this would require a recompile or not?
     
  8. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Rule of thumb is if it wouldn't involve a recompile in a regular Linux/FreeBSD PHP environment, then it wont require a recompile in a cPanel/WHM environment, and vice-versa.
     
Loading...

Share This Page