Abir

Registered
Mar 29, 2018
2
0
1
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
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,910
2,233
363
cPanel Access Level
DataCenter Provider
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.
 

Abir

Registered
Mar 29, 2018
2
0
1
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.
 

cPanelMichael

Technical Support Community Manager
Staff member
Apr 11, 2011
47,910
2,233
363
cPanel Access Level
DataCenter Provider
Twitter