Jump to content

PATH TO PHP


Recommended Posts

Guest Geoff
Posted

Hello,

 

This should be a simple question for djbob:

 

What is the path to the php binary on your server?

 

I need this path so that I could execute a cron job. See below:

 

Recurring tasks scheduler (Cron Job)

This is the most convenient method if your hosting provider allows scheduling recurring tasks via crontab on *nix or "Scheduled Tasks" on a Windows server. Please refer to your hosting manual or contact your hosting provider for instructions.

 

 

Add the following entry to cron file normally in /etc/crontab in *nix systems and adjust the time and paths accordingly

 

*/5 * * * * nobody /path/to/php /path/to/api/cron.php

 

For windows users in "Scheduled Tasks" add "c:\php\bin\php.exe c:\website\osticket\api\cron.php"

 

I could not find it in phpinfo().

 

 

Thank you

 

Geoff

Posted

You set up cron jobs from the cpanel Cron Manager. If your running a php script your path will look like this:

 

php -q /home/geoff/public_html/cron_job.php

 

So it doesn't send you an email everytime cron runs, like this:

php -q /home/geoff/public_html/cron_job.php > /dev/null

 

 

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...