Need help with migration from CPanel to DirectAdmin

fraggy

New member
Joined
Mar 13, 2009
Messages
4
Hi there,

I`m a hosting reseller and I`ve got to move all our client accounts (with many email adresses!) from a server that runs cpanel to a server that runs DirectAdmin. I`ve got a lot of email accounts to move, so it would be nice if I could do this with a script instead of doing this manually by logging in into my DirectAdmin Panel and adding each mail account (and aliases) one at a time!

I`ve already found something that looks usefull on this forum:

http://www.directadmin.com/forum/showthread.php?threadid=258

But I`m not much of a programmer so I'd need some help with this, although I will try it on my own as much as possible. This script allows to send a http request to my server with various parameters, like http://user:[email protected]/somedir/some.file?query=string&this=that but I would need to know what parameters I need in order to create the mail accounts.

A helping hand would greatly be appreciated.

Note: I do not have full control of the servers, only to their respective administration panels: cpanel and the directadmin panel. And of course I have access to the public_html folder. Due to these limitations, I think this script is my best option, and using an external csv file to feed all usernames, passwords, quotas and aliasses to this script.

Could someone please show me the correct syntax to build the url that is needed to trigger DirectAdmin to create a new mailbox? Is a properly constructed url enough ($_GET variables) or would I need to combine this with a self made form ($_POSTed variables)?

Or perhaps there is an easier way to go about?

Any help would be greatly appreciated!

JM.
 
I don't believe the PHP class for communicating with DirectAdmin was designed to work from the 'net; whether or not it could do anything at all would depend on whether your hosting provider runs PHP as a cgi, or as an apache module. If as an apache module, then I doubt it would work; if it would it would be too easy for anyone to figure out how to control apache.

If PHP is being run as CGI, then anything the api could do as the user should be doable, but I'm not sure.

Why not search these forums for the script designed specifically to convert cPanel users to DirectAdmin users?

Jeff
 
Back
Top