1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

subDomain and PHP

Discussion in 'Plesk for Linux - 8.x and Older' started by Laurent_c, Apr 24, 2006.

  1. Laurent_c

    Laurent_c New Pleskian

    22
     
    Joined:
    Apr 24, 2006
    Messages:
    4
    Likes Received:
    0
    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
     
  2. daveberk

    daveberk Guest

    0
     
    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?
     
  3. ray007

    ray007 Guest

    0
     
    Which user tries to execute the code?
    I think only root may do what you want to do here ...
     
Loading...