Adding domain using shell

wireboot

Verified User
Joined
Dec 15, 2014
Messages
10
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
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
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
 

wireboot

Verified User
Joined
Dec 15, 2014
Messages
10
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.
 
Top