Programmatically create sub domains (e.g. bash)

Discussion in 'General' started by Jemt, Jul 27, 2014.

  1. Jemt

    Jemt Member HowtoForge Supporter


    I need to be able to create sub domains programmatically, preferably using bash (shell scripting). Is that possible? A new sub site/domain must be independent of its parent site in regards to permissions - a sub site must not be able to read/write to anything else but its own data.

    I will be using the lastest stable version of ISPConfig on Debian 7.6

    - Thank you very much in advance.

    Jimmy Thomsen
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You can do this with the ispconfig remote api, e.g. with shell scripts in php. You can find the example scripts in the remote_client folder of the ispconfig tar.gz file. yreate a new website for each subdomain in ispconfig to make them independant.
  3. Jemt

    Jemt Member HowtoForge Supporter

    Great, thank you. I will look into the Remote API :)


Share This Page