Hi, I am a website developer for a small company which has both a website owner cpanel account and a reseller account (the host is a friend of ours, so we have some perks
)
I have created a website cms that I want to duplicate it, so that my clients would see a personalized demo. Normally I would create my own control panel to do the following:
- Create the user and the database
- Copy the cms contents (files, assets) into a new folder
- Copy the database contents from the original database
- Change the variables to reflect to the new site.
The problem with cpanel is that I am restricted to create my database and user manually. Is there a way to integrate all of the above into a cpanel module for a specific user use as an automation procedure?
I have also seen the xmlapi.php from github, but I get access denied as a result.
Can someone give me something to begin, some tips or even some code (concerning the interfacing of cpanel) would be welcomed. I know both php and perl, but I would be interested to achieve this in php.
I have created a website cms that I want to duplicate it, so that my clients would see a personalized demo. Normally I would create my own control panel to do the following:
- Create the user and the database
- Copy the cms contents (files, assets) into a new folder
- Copy the database contents from the original database
- Change the variables to reflect to the new site.
The problem with cpanel is that I am restricted to create my database and user manually. Is there a way to integrate all of the above into a cpanel module for a specific user use as an automation procedure?
I have also seen the xmlapi.php from github, but I get access denied as a result.
Can someone give me something to begin, some tips or even some code (concerning the interfacing of cpanel) would be welcomed. I know both php and perl, but I would be interested to achieve this in php.