Archive for category Uncategorized

PHP Cron: No input file specified

How to Create a Cron Job in cPanel ??

After entering my email address in cpanel’s standard cron interface, the email I received said:
Status: 404 Not Found
X-Powered-By: PHP/5.2.5
Content-type: text/html
No input file specified.

A few minutes of searching the net uncovered my mistake. I had a url variable on the command, which cause it not to work. Instead of

/usr/bin/php home/site_directory/public_html/admin/includes/cronrefresh.phpmethod=automated

use

usr/bin/php /home/site_directory/public_html/admin/includes/cronrefresh.php method=automated .

Exclude the question mark in the url variable and that made it work.

No Comments