Web Hosting Talk







View Full Version : Helpdesk cron job help


commsgroup
02-26-2005, 09:52 PM
Hi,

Not sure whether this is the right place to post this as I couldn't find anywhere else that was suitable.

We recently installed PMOS helpdesk however I am having trouble setting up the cron so it fetches any support emails.

The manual gives the following information:

---------------------------------------

To use POP3, specify your POP3 email server, as well as the username and password for each email account (you can even specify a POP3 server that isn't local). The default port for POP3 is 110. Once you have done this, a link will appear at the top that allows you to 'Fetch Emails and Create Tickets'. When this link is clicked, the help desk will connect to all the POP3 email accounts you specified, download the emails from your inbox and create tickets. If you specified to do so, these emails will be deleted after the tickets are created. You must use the 'Fetch Emails and Create Tickets' link every time you want to import new tickets. Alternatively, you can automate this process by using a cron job. You must have the PHP stand-alone binary installed (refer to php.net) which allows PHP to be run from the command line. Here is what you would execute:

cd /path/to/helpdesk
/path/to/php/binary /path/to/helpdesk/email-pop.php

A good interval for this cron job to execute is every few minutes or so. You might or might not need the 'cd /path/to/helpdesk/' line in your cronjob. It just makes sure the current working directory is the help desk directory.

-------------------------------------------

I have the cron set as /home/hosting/public_html/support/email-pop.php however am receiving the following error when it runs:

/bin/sh: line 1: /home/hosting/public_html/support/email-pop.php: Permission denied

Is anyone able to help sort out our problem ?

Thanks

Michael

Eric Lim
02-28-2005, 01:59 AM
Maybe posted in the programming forum can get more helps. Did you use:

php /home/hosting/public_html/support/email-pop.php

?

whatever
02-28-2005, 02:13 AM
Withe the PMOS helpdesk, isn't it easy enough to just press 'fetch and receive e-mails' every time... I always found that simple. Also, I think this is the wrong forum...

dollar
02-28-2005, 02:32 AM
do this and post the results:

ls -la /home/hosting/public_html/support/email-pop.php

your permissions are wrong on that file

in addition your cron job should most likely be:

/usr/local/bin/php /home/hosting/public_html/support/email-pop.php

BenEDH
02-28-2005, 04:35 AM
I'd imagine setting that to 774 should work, although 744 should also...