Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 Customer Forums > Reseller Hosting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-08-2007, 10:38 PM
telex telex is offline
Junior Guru Wannabe
 
Join Date: Mar 2007
Posts: 77
Exclamation Cron path HELP please

I am running script that needs cron.

Instructions I got is:
A typical command looks like this:

path_to_php -f full_path_to_script
Where path_to_php is the full path to PHP executable. Usually this is /usr/local/bin/php. But this might differ on your server so you had better consult with your hosting.

full_path_to_script is the full filesystem path to cron/check.php file.

I have included an auxiliary script that will let you quickly find out what the full path to the cron script on your server is. Please type a URL like this:

http://www.mydomain.com/dir/cron/path.php
And you will see the full path.
I run the script and I got this part correct!
The full path to the cron script is:
/home/access/public_html/cron/check.php

So I setup cron path:
/usr/local/bin/php -f /home/access/public_html/cron/check.php

I get error:
Could not open input file: /home/access/public_html/cron/check.php

I believe that this part might be wrong:
/usr/local/bin/php -f

Anyone can help?

TIA

BTW: I did setup the cron in the Cpanel correctly: day,hour,minutes, email etc.
Reply With Quote
  #2  
Old 05-09-2007, 09:11 PM
H9Anthony
Guest
 
Posts: n/a
Default

Do you know what server you are on? I can check the path to php for you.
Reply With Quote
  #3  
Old 05-09-2007, 10:20 PM
telex telex is offline
Junior Guru Wannabe
 
Join Date: Mar 2007
Posts: 77
Default

How the f...k I 'll find out? Where is the info?

I spend hour going trough everything I can think of and nothing.

I am slightly frustrated. (as you can tell)

TIA
Reply With Quote
  #4  
Old 05-10-2007, 03:13 AM
harrysudana harrysudana is offline
Newbie
 
Join Date: Mar 2007
Location: bali - indonesia
Posts: 20
Default

Quote:
Originally Posted by telex View Post
http://www.mydomain.com/dir/cron/path.php
/home/access/public_html/cron/check.php
Do you mean the path
/home/access/public_html/dir/cron/check.php

access is your username in cpanel?
Reply With Quote
  #5  
Old 05-10-2007, 02:10 PM
telex telex is offline
Junior Guru Wannabe
 
Join Date: Mar 2007
Posts: 77
Default

I am trying to follow this instruction.
http://www.esyndicat.com/support/des...se/view/3.html

Yes access is my username.

I did change to: (it does make a sense)
/home/access/public_html/cr/cron/check.php

See if it works.

Thank you
Reply With Quote
  #6  
Old 05-10-2007, 05:26 PM
H9Ben
Guest
 
Posts: n/a
Default

To run that with PHP you can use:

php /home/access/public_html/cr/cron/check.php

Then if you wanted to run it every 15 minutes it would look like

*/15 * * * * php /home/access/public_html/cr/cron/check.php
Reply With Quote
  #7  
Old 05-11-2007, 01:01 AM
telex telex is offline
Junior Guru Wannabe
 
Join Date: Mar 2007
Posts: 77
Default

I am trying that now. Will see what happens.

Thank you.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
php path for cron up2u Reseller Hosting 2 04-10-2009 11:05 AM
node42 Cron BlueOx Reseller Hosting 6 07-07-2008 02:37 PM
Windows servers, temporary browser path? smallwebsolutions Reseller Hosting 6 05-23-2008 11:07 AM
Server Path : .HTPASSWD Redundant Reseller Hosting 1 05-01-2008 04:19 PM


All times are GMT -5. The time now is 12:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.