Cron job

Comments

  • If you have no experience with setting up cron jobs on servers, you can use a webcron like Easycron.com who will call your URL at a specific time.

  • hi,
    i was setup crontab in web admin and crontab run command PHP in cli but error,
    -bash: php: command not found
    can you help me ?
    Sorry my english not good

  • @tonyquach said:
    hi,
    i was setup crontab in web admin and crontab run command PHP in cli but error,
    -bash: php: command not found
    can you help me ?
    Sorry my english not good

    Did you setup PHP binary to be accessible globally?

    cp /usr/local/lsws/lsphp71/bin/php /usr/bin/

    Or for PHP 7.2

    cp /usr/local/lsws/lsphp72/bin/php /usr/bin/

  • @usmannasir said:

    @tonyquach said:
    hi,
    i was setup crontab in web admin and crontab run command PHP in cli but error,
    -bash: php: command not found
    can you help me ?
    Sorry my english not good

    Did you setup PHP binary to be accessible globally?

    cp /usr/local/lsws/lsphp71/bin/php /usr/bin/

    Or for PHP 7.2

    cp /usr/local/lsws/lsphp72/bin/php /usr/bin/

    @usmannasir said:

    @tonyquach said:
    hi,
    i was setup crontab in web admin and crontab run command PHP in cli but error,
    -bash: php: command not found
    can you help me ?
    Sorry my english not good

    Did you setup PHP binary to be accessible globally?

    cp /usr/local/lsws/lsphp71/bin/php /usr/bin/

    Or for PHP 7.2

    cp /usr/local/lsws/lsphp72/bin/php /usr/bin/

    Hi, Thanks, i was install it

  • problem to set cron via CyberPanel
  • problem to set cron via CyberPanel

    Details?
  • hello, help me, i dont know how setting cron job command in cyber panel ?
  • hello, help me, i dont know how setting cron job command in cyber panel ?

    http://docs.cyberpanel.net/doku.php?id=setup-cron-job
  • Hello, I have a list with 15 commands to add to the cron job, would it be easy for me to import these commands without having to add one by one on the panel?
    Because every installation of a website that I make in the panel I have to manually add row by row by panel.
  • Hello, I have a list with 15 commands to add to the cron job, would it be easy for me to import these commands without having to add one by one on the panel?
    Because every installation of a website that I make in the panel I have to manually add row by row by panel.

    From the interface, it is only possible to add them one-by-one for now.
  • yum install cronie
    /var/spool/cron/root
  • > @rafaelmarrichi said:
    > Hello, I have a list with 15 commands to add to the cron job, would it be easy for me to import these commands without having to add one by one on the panel?
    > Because every installation of a website that I make in the panel I have to manually add row by row by panel.

    Cron UI doesn't has custom cron index or database but it fetches directly from crontab. So, you can add it via 'crontab -u user -e'. Let me know if you are looking for a bash script for adding commands.
Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!