• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Creating subdomains from a perl script

spaceout

Basic Pleskian
What's the easiest way to accomplish this?

I would like to have a perl script running from one of the domains I have added to my server that can create subdomains. I have tried using the command line interface such as:

PATH/TO/subdomain.sh --create "forum" -domain "domain.zone"

However, since the command line interface requires root or psaadm user access I get a permission error. Is there a simple way around this? Or even not so simple?

Thanks
 
API

I looked at the API and couldn't find any ability for creating subdomains. Maybe I missed something?
 
Yeees, you're right, couldn't find any operation concerning subdomains (other than getting the number and limit)...
Should Plesk add this feature?!
 
Maybe I will be able to use the command line interface somehow. I sure hope so....I really need this capability on a project.

I wonder if there is a way to just make it so another user on the server also has access to use the command line interface in addition to root and psaadm.
 
SUDO did the trick. I had tried using it before but I must not have been doing it correctly. I tried again and it's working fine now :)

Woot!
 
Back
Top