Results 1 to 4 of 4

Thread: Adding domain using shell

  1. #1
    Join Date
    Dec 2014

    Adding domain using shell

    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

  2. #2
    Join Date
    Apr 2005
    GMT +7.00

    Use any scripting language: bash, perl, etc to write a script to use directadmin API:
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on
    - Follow and like @Poralix on Facebook

  3. #3
    Join Date
    Jun 2003
    Quote Originally Posted by wireboot View Post
    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.

    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  4. #4
    Join Date
    Dec 2014
    Thank you for your response, but the API does not come into play.
    I found a way. For posterity - /usr/local/directadmin/scripts/ file should be used, it is written the code to add the domain. Just convert it accordingly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts