user1122910 user1122910 - 5 days ago 6
PHP Question

cron job command

i set my php file in cron jobs with command /home/findia/public_html/ifs/ifs-admin/reminder_mail.php.

But i am getting mail by cron jobs it contains,


/bin/sh: /home/findia/public_html/ifs/ifs-admin/reminder_mail.php: Permission denied

Answer

Inside your cron tab put this command instead:

/usr/bin/php -q /home/findia/public_html/ifs/ifs-admin/reminder_mail.php

Assuming your php binary is in /usr/bin; change it accordingly, if needed.

Comments