ntozier Yes, you are right when I am on the Os-ticket dashboard! the mails enter normally.But when I log out I don't get a new open ticket alert and neither does the user!I am not a computer developer please can help me by telling me where the cron file is located and how do I get mails to enter even if I'm offline. Thank you
Cron job customization
ntozier Here is the correct Cron ? I find on google
`#!/usr/bin/php -q
<?php
/*********************************************************************
rcron.php
PHP script used for remote cron calls.
To make this work, setup an API key for localhost with ip: 127.0.0.1
Put this script in the root of your webserver, then call it
remotely like:
wget -q http://server.tld/rcron.php?key=YOURKEY -O/dev/null
If your install is in a subdirectory, like https://server/support/
Then you'll need to add it below before /api
Peter Rotich <peter@osticket.com>
Copyright (c) 2006-2013 osTicket
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:
**********************************************************************/
Configuration: Enter the url and key. That is it.
url => URL to api/task/cron e.g http://yourdomain.com/support/api/tasks/cron
key => API's Key (see admin panel on how to generate a key)
#
#Ensure only we can trigger this
$config = array(
'url'=>'http://127.0.0.1/api/tasks/cron',
'key'=> $_GET['key']
);
#pre-checks
function_exists('curl_version') or die('CURL support required');
#set timeout
set_time_limit(30);
#curl post
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $config['url']);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, '');
curl_setopt($ch, CURLOPT_USERAGENT, 'osTicket API Client v1.7');
curl_setopt($ch, CURLOPT_HEADER, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Expect:', 'X-API-Key: '.$config['key']));
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
$result=curl_exec($ch);
curl_close($ch);
if(preg_match('/HTTP\/.* ([0-9]+) .*/', $result, $status) && $status[1] == 200)
exit(0);
echo $result;
exit(1);
`
- Edited
The rcron.php file is in the download archive that you downloaded to get osTicket.
Docs are
https://docs.osticket.com/en/latest/Getting%20Started/POP3-IMAP%20Settings.html
and there are some comments in the file. Additional comments can be found using search such as in these threads:
https://forum.osticket.com/d/96721-using-api-rcron-php-and-api-ticket-create-php
https://forum.osticket.com/d/79232-how-to-set-up-remote-cron-rcron
ntozier Hello ! I didn't download os-ticket! I rather install it directly through my Cpanel dashboard.Because Os-ticket is available on my O2Switch host, now I have to uninstall and download os-ticket from your site?Because I installed os-ticket twice but I still can't find the rcon.php file! Now I would like to know should I download os-ticket directly from its official website?
imranbot Now I would like to know should I download os-ticket directly from its official website?
You used some third party installer to install the software. We have no means of know what they did (if anything) to the product. I always recommend that people install themselves.
Yes you would either need to contact the installer about where the missing file is, or download the distribution archive to get the file.
ntozier I downloaded os-ticket from their official website! more than five times but I have not found satisfaction.I personalized all my emails but it doesn't work! while when I do free hosting on supportsystem.com all the mails are working.for example: helpdemo.supportsystem.com the bottom when I configure my IMAP and SMTP servers it works normally.but if I go back to my site to try it I realize nothing works! and when I activate the Cron! this only works if an agent is still online.I can't stay sleepless to check the emails anyway. so please help me even if it pays i can pay
You downloaded the archive files from osticket.com, took the rcron.php file out of the archive, installed it on your system, edited it for your use, and setup a third party remote cron schedule?
Go to Admin panel -> Emails -> Templates
Click Add New Template.
name it.
Select the language.
Click Add Template.
This should create a template for that language.
You can then customize said template however you want.
You can alter your email templates however you want.
go to Admin panel -> Emails -> Templates
Click on the template that you want to alter.
Click on each template and edit them.
- Edited
ntozier I'm not talking about email templates but I'm talking about the signature at the foot of the page.
and why the cron files are automatically created on my server! Whenever if the cron task is executed it automatically creates files like this (cron.1, cron.5 and so on in my ftp server) please how to fix this situation thank you
imranbot 'm not talking about email templates but I'm talking about the signature at the foot of the page.
Client side UI
/include/client/footer.inc.php
Agent side UI
/include/staff/footer.inc.php
imranbot and why the cron files are automatically created on my server! Whenever if the cron task is executed it automatically creates files like this (cron.1, cron.5 and so on in my ftp server) please how to fix this situation thank you
The stock cron.php does not create files.
So either your scheduler is set to dump results to a file, or you have something else going on and should ask your host.
The client side is on line 6.
The agent side does not have an image in the footer.