• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

automate subdomain.sh

G

graham HAYES

Guest
Hi,
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?

Thanks!
 
Back
Top