• 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

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