Barry Ramsay
Barry Ramsay

Reputation: 310

cron - "is a directory" error

I am running a cron job on my hosting like

/usr/lib/php -q /home/name/public_html/runscript.php

the email alert says

/bin/sh: /usr/lib/php: is a directory

I am not sure if this is an error with the cron statement or not. I can't find much online.

Any help much appreciated.

Upvotes: 2

Views: 2027

Answers (1)

Oscar Korz
Oscar Korz

Reputation: 2487

You probably want to use /usr/bin/php instead.

Upvotes: 2

Related Questions