Jump to content

[SOLVED] Newbie at Cron


Boo-urns

Recommended Posts

Hi,

 

I have been searching tutorials and posts about how to do cron jobs, i know how to sorta set it up in cpanel however how would i tell it to execute the php file?  When i get the e-mail it says: "/bin/sh: /usr/bin/wget: Permission denied

" i do have the permissions at 755 any idea what is wrong? Thanks

 

Corey

Link to comment
Share on other sites

And here is another.

 

/usr/bin/php /home/username/public_html/folder/script.php

 

You should always use full paths in cron as it has only a limited environment and quite often will not have a $PATH variable defined (cant find programs).

Link to comment
Share on other sites

hmmm well now i'm getting this:

 

Status: 404

X-Powered-By: PHP/5.1.6

Content-type: text/html

 

No input file specified.

 

 

The file is uploaded and everything, the php file is just going to go through the member db table and check to see that their account has not expired yet.

 

 

Link to comment
Share on other sites

I've tried it both ways from thorpe and pocobueno1388 and i get the same error

 

Status: 404

X-Powered-By: PHP/5.1.6

Content-type: text/html

 

No input file specified.

 

 

I also tried it through the browser and it worked properly.  Any ideas?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.