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

how do I get crontab to work?!

Discussion in 'Plesk 10.x for Linux Issues, Fixes, How-To' started by BrunoMiguel, Apr 12, 2011.

  1. BrunoMiguel

    BrunoMiguel New Pleskian

    16
    60%
    Joined:
    Apr 1, 2011
    Messages:
    12
    Likes Received:
    0
    Hello, When I try to run a php script via crontab, created over Plesk, I always get email error message:

    /usr/bin/php: No such file or directory

    I've tried with just "php -q /path/to/script" but get the same error.
    Is there any configuration I have to do?? I've saw this on documentation:

    "If you trust your customers enough to allow execution of scripts in a non-chrooted environment, then you can select the required shell by issuing the following command in the console:

    # /usr/local/psa/admin/bin/server_pref -u -crontab-secure-shell "/bin/sh"

    But, I have no "server_pref" on that path...

    I'm using Plesk 10.2 with CentOS.

    Regards.
     
  2. BrunoMiguel

    BrunoMiguel New Pleskian

    16
    60%
    Joined:
    Apr 1, 2011
    Messages:
    12
    Likes Received:
    0
    ok... I've changed "Access to the server over SSH" to /bin/bash .... BUT, when I login to server via SSH with FTP credentials, I can navigate on all servers directories. How can I change this? I want to use crontabs, but don't want users to get logged to the system with ssh...
     
  3. Mickael Salfati

    Mickael Salfati Regular Pleskian

    27
     
    Joined:
    Apr 6, 2009
    Messages:
    178
    Likes Received:
    1
    Exactly the same issue on plesk 10.2, any news about this issue ? There are some threads on forum regarding this issue ...
     
  4. Mickael Salfati

    Mickael Salfati Regular Pleskian

    27
     
    Joined:
    Apr 6, 2009
    Messages:
    178
    Likes Received:
    1
  5. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
Loading...