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!

Plugin API

Discussion in 'cPanel Developers' started by 22chris22, Feb 4, 2008.

  1. 22chris22

    22chris22 Registered

    Oct 14, 2007
    Likes Received:
    Trophy Points:
    I am looking to create a cheap script installer. It will be much less than Fantastico.

    If it is possible, can someone tell me how to create a MySQL DB using PHP? I don't think i can do this using just PHP because cPanel does not give sufficient permissions to mysql users. I know I can go the "File Get Contents" route, but thats not secure.
    Thanks for your help.
    #1 22chris22, Feb 4, 2008
    Last edited: Feb 4, 2008
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Nov 29, 2006
    Likes Received:
    Trophy Points:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Are you creating this as a cPanel/WHM plug-in or a stand-alone PHP script? As a user, you will be unable to create databases in the traditional PHP way. However, you may wish to use the XML-API to call an appropriate API2 function that would create the database. The downfall to this: one must be a reseller to use the XML-API.

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