• 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

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