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

automate subdomain.sh

Discussion in 'Plesk for Linux - 8.x and Older' started by graham HAYES, Sep 4, 2009.

  1. graham HAYES

    graham HAYES Guest

    I am trying to run the following command to create a subdomain through the command line:
    /usr/local/psa/bin/subdomain.sh --create "SUBDOMAIN" -domain "DOMAIN"
    however i always get this error:

    The file subdomain.php is part of Plesk distribution. It cannot be run outside of Plesk environment.

    I am using plesk 8.6, can someone please help, i am trying to automate the creation of a subdomain, am i doing something wrong?