• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

subDomain and PHP

Laurent_c

New Pleskian
Good morning

I try to done dynamic subdomain and I can't create some

With php I write this :
<?php
exec('/usr/local/psa/bin/subdomain.sh -c subdomain_name -d domain.com 2>&1',$output);
print_r($output);
?>

I got a denied permission

If you got an basic php script to do it, it will help me very much,

Thank you
 
Me Too!

I would also like to know the answer to this question. If the posted code is not the right/best way, what is?
 
Which user tries to execute the code?
I think only root may do what you want to do here ...
 
Back
Top