Cron Help

Cron Help

Posted by: bruce
Posted on: 2009-04-02 02:52:00

Hi Everyone,

Please excuse the newbie.

I'm trying to set up a cron job (for Postie Plugin - Wordpress).

I had all sorts of trouble getting cron to fire the required file (get_mail.php), but after changing paths - a lot - it found it.

I immediately starting getting a different error which made me think that the first line in the script is pointing to the wrong place.

The first line in the php file is /usr/bin which, I presume, is where php lives at DH, but after logging in with SSH and looking in the directory, I do not see php there.

Does anyone know where php lives? Is my thinking towards solving this going in the right direction?

Thanks,

Bruce.

Re: Cron Help

Posted by: sXi
Posted on: 2009-04-02 02:59:00

In reply to:

Is my thinking towards solving this going in the right direction?


You're spot on. You can find it by calling which php in shell.

/usr/local/bin/php




How To Install PHP.INI / ionCube on DreamHost

Re: Cron Help

Posted by: bruce
Posted on: 2009-04-02 03:43:00

Great. Thanks.

I will try and change the path.

Bruce.

Tags: mail phpcron jobphp filesshdhexcusenewbieall sorts