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!

Creating plugin with bash

Discussion in 'cPanel Developers' started by Abir, Mar 29, 2018.

Tags:
  1. Abir

    Abir Registered

    Joined:
    Mar 29, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Hey Guys,

    I'm completely new in cPanel/WHM plugin creation. I wanted to create a plugin and I'm not really interested in learning PHP or perl at this point. So I wanted to code the plugin in bash. Is that possible?

    I'm simply trying to achieve a site migration plugin. Any guidance would be deeply appreciated.

    Best regards
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,506
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you provide some more information about the type of plugin you want to develop? For instance, do you want it accessible via the cPanel & WHM user interfaces? Or, is it script you want an administrator to be able to run from the command line?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Abir

    Abir Registered

    Joined:
    Mar 29, 2018
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    Hello Michael,

    Thank you for your reply.

    I want it to integrate with cPanel. It will run under cPanel. For instance, Our devs will use this plugin and issue a migration to our development server. So it's basically going to clone the whole site to another server. But I want them to be able to give some input in a form which will place the values for script. The dev server IP, user and password or what the dev URL would be. Then the plugin will clone the cPanel user's website to dev site and search-replace the urls with wp-cli.

    I'm just confused how I will connect the individual forms with the script. Note that the dev site is not cPanel, it's plain LAMP server.

    I was thinking I can make it work like: script.sh input1 input2 input3. The scripting part isn't the problem. But the cPanel integration part IS.

    Best regards.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,506
    Likes Received:
    1,964
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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