The folder structure is like this:-
public_html
|
|_ disability.com
|
|_ cron_birthday.php
Under public_html, there is a folder called disability.com which has the php file.
In the CPanel's Cron Jobs Management, I created a cron job in this way:-
0 0 * * * /usr/local/bin/php -q /home/the_usr_name/public_html/disability.com/cron_birthday.php
The cron job is intended to fire the php script everyday at 12.00 AM.
However, the script isn't fired at all. But when I am hitting the phpfile in the browser by typing the corresponding url, the script exactly does the work it is expected to do. That means, the script is working fine.
Why isn't the cron job running? How can I solve it?
Note:
I even tried the following cron job to run the script in every minute.
0 0 * * * /usr/local/bin/php -q /home/the_usr_name/public_html/disability.com/cron_birthday.php
Still, the cron isn't firing.