Im running a PHP web environment on Elastic Beanstalk. Iv tried 6 ways to Sunday to setup a cronjob: following AWS template on cronjobs in the .ebextensions folder, manually creatingn the job in the shell using: crontab -e as suggested here https://stackoverflow.com/questions... and more...
Currently I have this config file in the .ebextensions folder saved as cron-linux.config
files:
"/etc/cron.d/mycron":
mode: "000644"
owner: root
group: root
content: |
*/3 * * * * root /var/www/html/crawler/mine.php >/dev/null 2>&1
commands:
remove_old_cron:
command: "rm -f /etc/cron.d/mycron.bak"
Please help!