1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

automatic subdomain

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by nucknuck, Feb 6, 2012.

  1. nucknuck

    nucknuck Basic Pleskian

    21
    23%
    Joined:
    Jan 25, 2011
    Messages:
    66
    Likes Received:
    1
    Hello,

    is there a possibility to create new accounts with a standard subdomain?

    So if I create a new customer and activate a new subscription, that there will exist

    example.org
    test.example.org

    Regards,
    Marcus
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    Try to use Event Manager for subscription creation event for example.
     
  3. nucknuck

    nucknuck Basic Pleskian

    21
    23%
    Joined:
    Jan 25, 2011
    Messages:
    66
    Likes Received:
    1
    Would you like to tell me what event it might be?

    Because I can´t find an event "if subscription is created" - is it "Default domain (the first domain added to a subscription/webspace) created" ?
     
  4. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,576
    Likes Received:
    1,243
    Location:
    Novosibirsk, Russia
    There is "Domain created" event at least.
     
  5. nucknuck

    nucknuck Basic Pleskian

    21
    23%
    Joined:
    Jan 25, 2011
    Messages:
    66
    Likes Received:
    1
    Ok, ...

    /usr/local/psa/bin/subdomain --create subdomain-name

    is according to my failed test not enough.

    What is the way to get it work?
     
Loading...