Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MySQL for Custom Cpanel module

Discussion in 'cPanel Developers' started by maxcell, Jan 20, 2011.

  1. maxcell

    maxcell Member

    Joined:
    Aug 18, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    51
    I'm working on creating custom cPanel module based on the documentation on the cPanel developer site.

    The documentation mentioned mentioned that system-installed perl modules are not available and that if they are needed they need to be placed in to /usr/local/cpanel/perl.

    I need my module to get some data from the local MySQL server. I don't want to place extra modules in that directory if I don't have to. I would imagine that there some methods in the cpanel namespace that can used to establish a MySQL connection and run queries.

    What would be the best way to do that?

    I noticed that the module EntrySpool.pm had this: use DBI ();

    When I use that in my custom module, it gives me a "not found" error.

    Any help will much appreciated.

    Thanks,
    Max
     
  2. MattDees

    MattDees Well-Known Member

    Joined:
    Apr 29, 2005
    Messages:
    416
    Likes Received:
    1
    Trophy Points:
    243
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Unfortunately mysql utilities are not part of our toolset, mainly due to GPL licensing issues. What data are you looking to grab?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. maxcell

    maxcell Member

    Joined:
    Aug 18, 2008
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    51
    Matt,
    I'm creating a module that will allow users to manage their ColdFusion DSNs. There's a database that I need to access to pull some information for this.

    -Max
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice