Hi oSTicket Experts,

I know there is an old post about it but I would appreciate it if you could provide me with better direction. We have already installed the osTicket and it is now working except for the email fetching. Our email is hosted on hostgator. I have read on some of the threads that there's a need to adjust the "cron". I can provide screens on the Cpanel and Admin Panel of the osTicket if needed. I am bit confused on what exactly what I need to do. As much I would like to experiment on the settings, I would like to seek advise to avoid possible problem.

This is what I need to clarify,
Add the following entry to cron file normally in /etc/crontab in nix systems and adjust: the time; the webuser; and paths accordingly.

*/5 * * * * nobody /path/to/php /path/to/api/cron.php
/path/to/php = path to php of my hosting environment or path to php of my osTicket Server.
/path/to/api/cron.php = pwd on my osticket or web path (https://my.osticket.url/api/cron.php

Apologies for the confusion but I would really appreciate help.

Thanks!

  • @devedames

    I believe CPanel has an option called Cron Jobs and you'll need to create a new job there. You'll need to configure how often to run it (typical setup is "every 5 minutes indefinitely"), put php as the action (or the full path to PHP executable if just php doesn't work), and /path/to/osticket/api.cron.php as the script to run. If you need further assistance please refer to your host's documentation on how to setup Cron Jobs.

    Cheers.

@devedames

I believe CPanel has an option called Cron Jobs and you'll need to create a new job there. You'll need to configure how often to run it (typical setup is "every 5 minutes indefinitely"), put php as the action (or the full path to PHP executable if just php doesn't work), and /path/to/osticket/api.cron.php as the script to run. If you need further assistance please refer to your host's documentation on how to setup Cron Jobs.

Cheers.

    Hi KevinTheJedi,

    Thank you for your reply.
    Here is the resulting cron job that I have created.

    Just to reclarify, the /path/to/osticket/api/cron.php is a web url?

    Because if it is the local path of my osTicket server it should be like,
    /usr/local/bin/php /var/www/osTicket/upload/api/cron.php ?

      KevinTheJedi

      Just to add clarification, our osTicket Server is On-Prem and the Email is Hosted on Hostgator.

      This is the result if it is a local path.

      I would like to clarify how can the the Hostgator Server will communicate with the local path /var/www/osTicket/upload/api/cron.php of my osTicket Server?

      /usr/local/bin/php /var/www/osTicket/upload/api/cron.php

      This did the trick.

      Write a Reply...