• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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