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

event manager can't run domain.sh on domain creation?

Discussion in 'Plesk 9.x for Linux Issues, Fixes, How-To' started by Mshaker, Oct 26, 2010.

  1. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    We want to disable PHP safe mode to each domain that we create. I tried adding an event to the "domain created" but it doesn't work ?

    Event: Domain created
    Priority: Normal
    User: root
    Command: /usr/local/psa/bin/domain.sh -u $NEW_DOMAIN_NAME -php_safe_mode false

    This command works fine if I run it from bash .. why won't it work with the event manager ?
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,557
    Likes Received:
    1,242
    Location:
    Novosibirsk, Russia
    If it works fine in CLI - why you can't create corresponding script and run script in Event manager instead mentioned command?
     
  3. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    This is a plesk bug

    I tried what you said... that doesn't work either.

    Event: Domain created
    Priority: Normal
    User: root
    Command: /opt/scripts/domain_create.sh <new_domain_name>

    cat /opt/scripts/domain_create.sh
    Code:
    #!/bin/bash
    /usr/local/psa/bin/domain.sh -u $1 -php_safe_mode false
    
    This looks to me like a plesk bug. The command works fine for me from bash but does not work when called from the event manager.
     
  4. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    Can someone please comment on this .. is this a confirmed bug ?
     
  5. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    please confirm

    IgorG can you please let me know what the status is on this ? Is this a confirmed bug or is their a workaround?
     
  6. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,557
    Likes Received:
    1,242
    Location:
    Novosibirsk, Russia
  7. Mshaker

    Mshaker Basic Pleskian

    18
    85%
    Joined:
    Oct 21, 2010
    Messages:
    75
    Likes Received:
    0
    Thanks IgorG.. I didn't even know that their was a "Physical hosting created" option in the events dropdown list (I always just used "domain created" .. This should work now.
     
Loading...