View Full Version : Path To Php?
flyer
07-18-2005, 06:30 PM
What is the correct value for "path to PHP" on our accounts? My guess is below, but I'm not sure. Thanks.
/usr/bin/php
thevillageinn
07-19-2005, 01:18 AM
right off the top of my head I'm pretty sure that's correct.
dbmasters
02-13-2007, 02:14 PM
can an admin verify this is the path? I need the path for a cron task...
eugene
02-13-2007, 02:17 PM
dan-
Is the cron job one that can be called via a web browser? If so, I posted a reply on how to use curl in cron.
eugene
02-13-2007, 02:24 PM
can an admin verify this is the path? I need the path for a cron task...
Found it.
/usr/bin/curl -s http://yourdomain/pagetocall.php
Ref: http://hostpc.com/community/showpost.php?p=15312&postcount=7
dbmasters
02-13-2007, 08:09 PM
thanks, I hope it works, I need the cron for Eventum (MySQL ticket tracking system) to send it's email alerts...I use Eventum for support for a couple of my big side jobs and my Curium beta testing...2.0 beta is out if anyone wants to join, drop me a line.
alange
02-14-2007, 09:02 AM
At a former DA host, the path was /usr/local/bin/php
I haven't tried it here.
dbmasters
02-14-2007, 01:25 PM
I really wish Joe would check in and verify...or somebody up there...
eugene
02-14-2007, 06:34 PM
I really wish Joe would check in and verify...or somebody up there...
Dan-
I just confirmed it. /usr/local/bin/php
PHP 4.4.4 (cli) (built: Dec 15 2006 10:35:22)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with Zend Extension Manager v1.0.8, Copyright (c) 2003-2005, by Zend Technologies
with Zend Optimizer v2.5.10, Copyright (c) 1998-2005, by Zend Technologies
Joe or any admin that feels the above gives too much info away, please feel free to edit.
yuejon
04-21-2008, 07:36 PM
I need to call a php script directly (and not via URL) with a cron job. I've tried that path as per this thread, but I've not been successful at my attempts at getting it to work :(
Can anyone validate that this command is correct?
/usr/local/bin/php /home/mydomain/domains/mydomain.com/public_html/script.php
Thanks.
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.