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.
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
Do you know what server you are on? I can check the path to php for you.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
Quote:
/home/access/public_html/dir/cron/check.php access is your username in cpanel? |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
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 |
|
#7
|
|||
|
|||
|
I am trying that now. Will see what happens.
Thank you. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |






Linear Mode

