Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > CPanel - Control Panel

Notices

CPanel - Control Panel All Cpanel questions and issues.

Closed Thread
 
LinkBack Thread Tools
  #1  
Old 12-10-2007, 07:41 PM
Private
 
Join Date: Dec 2007
Posts: 4
Default Help with Cron job needed

I have now tried about everything to get my cron job running but any way I try it, I get an error message.

Here is what I tried first:

php /home/myusername/public_html/promoter/auto_scripts/auto_emails.php?script_act=1

Which results in this error message:
Status: 404
X-Powered-By: PHP/5.2.4
Content-type: text/html

No input file specified.

Next thing I tried was:

GET http://www.mydomain.com/promoter/auto_scripts/auto_emails.php?script_act=1

Which resulted in:
/bin/sh: GET: command not found

The php file works fine when I call it up in my browser.
Can somebody please tell me how to call up that php script in a cron job?

Thanks

Guido
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 12-11-2007, 12:04 AM
Private
 
Join Date: Dec 2007
Posts: 4
Default Re: Help with Cron job needed

Hmm, now I tried

/usr/local/bin/php -q /home/...

and I get the error "Could not open input file:"

I have tried to chmod that file to 777, 755 and 644 but nothing works.

Anybody here who can help?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 12-11-2007, 06:56 AM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,288
Default Re: Help with Cron job needed

MAke sure that "readfile" is enabled in your server. Ask the help desk. Also you can have a look at the error log on the server, it probably has a error message that would enlight you.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 12-11-2007, 03:11 PM
Private
 
Join Date: Dec 2007
Posts: 4
Default Re: Help with Cron job needed

Well, I already contacted the support... here is what they said:
" You will not be able to run a cron this way auto_emails.php?script_act=1, you will need to call a script that will run this command for you."

Doesn't make sense to me... why should it not be possible to run a php script from a cron?

My error log doesn't tell me anything useful, it only shows 404 errors.

I am really confused... hasn't anybody called up a php script with a cron before?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 12-11-2007, 03:36 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,288
Default Re: Help with Cron job needed

Ok, try this:

select in the Cron Jobs section of CP, Standard (not Unix, is more difficult) and select every hour (or whatever the period you want to be). Then in the command line enter this:

cd '/home/yourusername/public_html/'; php -q 'auto_emails.php?script_act=1' > /dev/null ;

Of course, if the script is not in public_html, add the necessary /foldername to the above , immediately after public_html
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 12-11-2007, 03:57 PM
Private
 
Join Date: Dec 2007
Posts: 4
Default Re: Help with Cron job needed

Alright, it works now. When posting to the Warrior Forum they told me to try it this way:

wget http://www....

This works fine.

Guido
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 07-10-2008, 05:37 PM
Private First Class
 
Join Date: Mar 2008
Posts: 7
Default Re: Help with Cron job needed

Hello,

I'm trying to set-up the Cron Jobs to run but I'm not sure want command line to use.

This is the file I need to use:
/home/azbirjx/public_html/purchase-credits.php


I tried "cd '/ home/azbirjx/public_html/'; php -q 'purchase-credits.php' > /dev/null ;"
still not getting any emails.


In the Control Panel in the Cron Job it is indicating the following:
/usr/bin/crontab permissions are wrong. Please set to 4755

Where is this file located and how do I access it so I can change the permissions

Thank you,

playmode
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 07-10-2008, 06:05 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,288
Default Re: Help with Cron job needed

Your command is correct. If no emails are sent hrough the cron job, probably you have not correctly setup the cron job time parametres in your control panel.

On the other hand, the last message indicates that you have no permissions to setup a cron job, not because it is your falut, but because the permissions are wrong. Submit a support ticket describing the problem.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 07-10-2008, 06:45 PM
Private First Class
 
Join Date: Mar 2008
Posts: 7
Default Re: Help with Cron job needed

Hello and thank you for your quick reply!

I sent a support ticket and they responded by telling me to try now!
I guess they fixed whatever needed to be fixed but when I went back to the control panel and clicked on Cron Jobs it was still displaying the message:

In the Control Panel in the Cron Job it is indicating the following:
/usr/bin/crontab permissions are wrong. Please set to 4755


Where is this file located and how do I access it so I can change the permissions? I have sent another email to support but I'm not sure how long they will take to respond to a reply email.

Please help!

Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old 07-10-2008, 06:49 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 9,288
Default Re: Help with Cron job needed

You can't access that file, only the help desk. your ONLY choice is to have them fix it.
__________________
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 10:35 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176