DA Cron jobs?

chris10121

Verified User
Joined
Feb 17, 2008
Messages
31
Does DirectAdmin have a cron job setup page?

I need to setup a cron job to run once a day.
 
Yes it has.

If you are the admin, switch to userlevel and there u see the link to
the page where you can setup cronjobs.

If you are a user it depend on if the admin or reseller granted you rights to setup a cronjob.
 
Any reason why the following sends an email to me saying

"/bin/sh: php: command not found"

Cron job i entered into directadmin is:

"php -q /home/savehost/domains/save-host.com/(my cron job name here)"

(my cron job name here) is the script I am using but I didn't want to post it in a public area.

I'm using CentOS 5, php 2.5.2
 
try to use:
<full-path-to-php>/php -f <your-script>

/usr/local/bin/php -f /home/savehost/domains/save-host.com/cronscript.php
 
i mean " -f "

Code:
# php --help
Usage: php [options] [-f] <file> [--] [args...]
       php [options] -r <code> [--] [args...]
       php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
       php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
       php [options] -- [args...]
       php [options] -a
... some skipped ...
  -f <file>        Parse and execute <file>.

just try and reply...
 
Back
Top