• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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