I have recently gotten a free website, and everything is working perfectly, except the crontab jobs. I have tried different solutions found in this forum, with no success.
In crontab jobs I have entered the comand:
php-cron /home/orgutz/public_html/balances.php and I receive an email telling me /bin/sh: php-cron: Command not found
I have changed to /usr/bin/php, /usr/local/bin/php, php, but sometimes I don't even get an email.
I also included a line in the php program: #!/bin/php. Email:No such interpreter.
The program balances.php works perfectly when launched in the browser, and was working also in another server.
I think that the crontab is not finding the path to the php interpreter.
The timing of the crontab is working.
Other programs, about 25 are working smoothly, with HTML, PHP and JavaScript. Also AJAX is working.
Also I checked the status of the server starka, and it is working, and I have Intermediate PHP level.
I have tried all the solutions I searched in the forums, for the PHP path.
I appreciate any help,
Thanks,
In crontab jobs I have entered the comand:
php-cron /home/orgutz/public_html/balances.php and I receive an email telling me /bin/sh: php-cron: Command not found
I have changed to /usr/bin/php, /usr/local/bin/php, php, but sometimes I don't even get an email.
I also included a line in the php program: #!/bin/php. Email:No such interpreter.
The program balances.php works perfectly when launched in the browser, and was working also in another server.
I think that the crontab is not finding the path to the php interpreter.
The timing of the crontab is working.
Other programs, about 25 are working smoothly, with HTML, PHP and JavaScript. Also AJAX is working.
Also I checked the status of the server starka, and it is working, and I have Intermediate PHP level.
I have tried all the solutions I searched in the forums, for the PHP path.
I appreciate any help,
Thanks,