Adding domain using shell

wireboot

Verified User
Joined
Dec 15, 2014
Messages
11
How can I add a domain to the Direct Admin using the shell in Linux? Is it at all is it possible? I would like to bypass the PHP scripts and add domains directly from the shell.

Thank you in advance
 
I would like to bypass the PHP scripts and add domains directly from the shell.
Just to clarify... DirectAdmin, unlike many other Control Panels, doesn't use PHP scripts to set up domains, nor does it use Apache to display it's pages.

DirectAdmin is written in either C or C++ (I forget which) and has it's own built-in webserver. It does, however, rely on other scripting languages, including PHP, for some functions.

Jeff
 
Thank you for your response, but the API does not come into play.
I found a way. For posterity - /usr/local/directadmin/scripts/fix_da_user.sh file should be used, it is written the code to add the domain. Just convert it accordingly.
 
Back
Top