Deamon Posted September 28, 2012 Report Posted September 28, 2012 Using this command: php/home/USERNAME/public_html/automatichourly.php and getting this error: /bin/sh: php/home/USERNAME/public_html/automatichourly.php: No such file or directory I edited out the username, but if I understand right it is the name that I use to log into cpanel? And I have double checked that automatichourly.php is in the proper folder (it is). lattapewips 1 Quote
Brian Posted September 29, 2012 Report Posted September 29, 2012 Are you setting this cron up manually through CLI or cPanel? If you haven't already I would suggest using cPanels built in utility to setup your cron jobs, it'll use the right path system path to PHP and will also help with the correct syntax. If you're still getting this error and you're using cPanel you may want to submit a ticket over this, as it could be a bug. We'd have to check out your specific account though to verify Quote
Deamon Posted October 9, 2012 Author Report Posted October 9, 2012 I log into the cPanel and scroll down to "Cron Jobs" under Advance. For what it's worth I put a space after php and now it's working. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.