well.. I read a lot of post of email problems. But i do not get find a good answer.
So... i hope you can help me.
I got website that got a parallels Plesk control panel.
In here I can set up a Schedule Task (cron job).
I made one:
Task Switched on
Minute: */5
Hour: *
Day of the month: *
Month Enter the value: *
Day of the week *
Command: /var/www/vhosts/xxxxxx/subdomains/support/httpdocs/api/cron.php
This seems to work, I setup a email to report errors to.
Well that i got with this text in it:
/var/www/vhosts/xxxx/subdomains/support/httpdocs/api/cron.php: line 1: ?php: No such file or directory
/var/www/vhosts/xxxx/subdomains/support/httpdocs/api/cron.php: line 2: /aquota.user: Permission denied
/var/www/vhosts/xxxx/subdomains/support/httpdocs/api/cron.php: line 3: cron.php: command not found
/var/www/vhosts/xxxx/subdomains/support/httpdocs/api/cron.php: line 5: syntax error near unexpected token `('
/var/www/vhosts/xxxx/subdomains/support/httpdocs/api/cron.php: line 5: ` File to handle cron job calls (local and remote).'
So.. what need i to do to get this work..
have set the file rights to 777, so that should not be the problem.
Maybe not needed but this is my cron.php file:
<?php
/*********************************************************************
cron.php
File to handle cron job calls (local and remote).
Peter Rotich
Copyright (c) 2006-2010 osTicket
http://www.osticket.com(http://www.osticket.com)
Released under the GNU General Public License WITHOUT ANY WARRANTY.
See LICENSE.TXT for details.
vim: expandtab sw=4 ts=4 sts=4:
$Id: $
**********************************************************************/
@[deleted](realpath(dirname(__FILE__)).'/'); //Change dir.
require('api.inc.php');
require_once(INCLUDE_DIR.'class.cron.php');
Cron:();
Sys:(LOG_DEBUG,'Cron Job','External cron job executed ['.$_SERVER');
?>
seems it does not want to read the php file.. gives error on the lines of the php file.