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

    Apr 24, 2006
    Likes Received:
    Good morning

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

    With php I write this :
    exec('/usr/local/psa/bin/subdomain.sh -c subdomain_name -d domain.com 2>&1',$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

    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

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